package cn.iocoder.yudao.module.mes.controller.admin.pd.product.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
|
@Schema(description = "管理后台 - 产品档案新增/修改 Request VO")
|
@Data
|
public class MesPdProductSaveReqVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "1024")
|
private Long id;
|
|
@Schema(description = "档案类型(1电力服务/2供电产品/3增值能源产品)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "档案类型不能为空")
|
private Integer archiveType;
|
|
@Schema(description = "档案名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotEmpty(message = "档案名称不能为空")
|
private String name;
|
|
@Schema(description = "规格型号")
|
private String spec;
|
|
@Schema(description = "单位")
|
private String unit;
|
|
@Schema(description = "基准价格")
|
private BigDecimal price;
|
|
@Schema(description = "启用状态(1启用/0禁用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "启用状态不能为空")
|
private Integer status;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
}
|