package com.cf.imes.module.executor.controller.admin.manage.pack.vo;


import com.cf.imes.framework.common.validation.NumberValid;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

@Schema(description = "管理后台 - 新增外部配件  Request VO")
@Data
@ToString(callSuper = true)
public class OtherPackReqVO {


    @Schema(description = "生产单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "生产单号为空，请重新新增外部配件")
    private Long orderId;


    @Schema(description = "配件名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "配件名称不能为空")
    @Size(max = 64, message = "配件名称长度不能超过 64 个字符")
    private String name;


    @Schema(description = "配件数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NumberValid(name = "配件数量")
    private Double num;


    @Schema(description = "配件单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "配件单位不能为空")
    @Size(max = 32, message = "配件单位长度不能超过 32 个字符")
    private String unit;

    @Schema(description = "包裹编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String packNo;


    @Schema(description = "备注")
    private String remark;




}
