项目整机拼装与资源文件上传
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.linkerbot.vibemake.bean;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@@ -67,6 +68,26 @@ public final class Contracts {
|
||||
|
||||
public record TypeView(String code, String name) {}
|
||||
|
||||
public record ResourceFile(
|
||||
@NotBlank String relativePath, @NotNull @PositiveOrZero Long sizeBytes) {}
|
||||
|
||||
public record ResourceUploadInput(@NotEmpty List<@NotNull @Valid ResourceFile> files) {}
|
||||
|
||||
public record ResourceConfirmInput(
|
||||
@NotBlank @Pattern(regexp = "[a-f0-9]{32}") String batchCode,
|
||||
@NotEmpty List<@NotNull @Valid ResourceFile> files) {}
|
||||
|
||||
public record ResourceFileSignature(
|
||||
String relativePath, String objectKey, Map<String, String> formFields) {}
|
||||
|
||||
public record ResourceUploadSignature(
|
||||
String batchCode,
|
||||
String uploadUrl,
|
||||
LocalDateTime expiresAt,
|
||||
List<ResourceFileSignature> files) {}
|
||||
|
||||
public record ResourceFileView(String relativePath, long sizeBytes, String url) {}
|
||||
|
||||
public record ProjectView(
|
||||
String projectCode,
|
||||
String name,
|
||||
@@ -74,6 +95,12 @@ public final class Contracts {
|
||||
String coverUrl,
|
||||
String urdfMainUrl,
|
||||
String urdfBaseUrl,
|
||||
String modelGlbUrl,
|
||||
String modelPartsBaseUrl,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) List<ResourceFileView> modelPartsFiles,
|
||||
String assemblyJsonUrl,
|
||||
String walkingResourcesBaseUrl,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) List<ResourceFileView> walkingResourcesFiles,
|
||||
String projectType,
|
||||
PublicUser owner,
|
||||
String repoStatus,
|
||||
|
||||
Reference in New Issue
Block a user