fix:更细工位所有结构细化完成时间、工位升级时间、清单下发时间
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
package com.sdm.common.entity.req.project;
|
||||
|
||||
import com.sdm.common.entity.BaseReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 批量更新工位扩展属性请求参数
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "批量更新工位扩展属性请求参数")
|
||||
public class BatchUpdateWorkspaceExtraReq extends BaseReq {
|
||||
|
||||
@Schema(description = "工位扩展属性列表,每个工位都有自己独立的扩展属性", required = true)
|
||||
@NotEmpty(message = "工位扩展属性列表不能为空")
|
||||
@Valid
|
||||
private List<WorkspaceExtraData> workspaceExtras;
|
||||
|
||||
/**
|
||||
* 工位扩展属性数据
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "工位扩展属性数据")
|
||||
public static class WorkspaceExtraData {
|
||||
@Schema(description = "工位UUID", required = true)
|
||||
@NotNull(message = "工位UUID不能为空")
|
||||
private String workspaceUuid;
|
||||
|
||||
@Schema(description = "该工位的扩展属性列表", required = true)
|
||||
@NotEmpty(message = "扩展属性列表不能为空")
|
||||
@Valid
|
||||
private List<WorkspaceExtraItem> extras;
|
||||
}
|
||||
|
||||
/**
|
||||
* 工位扩展属性项
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "工位扩展属性项")
|
||||
public static class WorkspaceExtraItem {
|
||||
@Schema(description = "属性名称", required = true, example = "structureRefinementCompletionTime")
|
||||
@NotEmpty(message = "属性名称不能为空")
|
||||
private String propertyName;
|
||||
|
||||
@Schema(description = "属性值(为空时更新为null)")
|
||||
private String propertyValue;
|
||||
|
||||
@Schema(description = "值类型", example = "string")
|
||||
private String valueType;
|
||||
|
||||
@Schema(description = "属性分类")
|
||||
private String propertyClass;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user