package com.yunfeiyun.agmp.fms.domain.reqvo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class TssTraceCodeGenerateReqVo {
    @NotBlank(message = "产品库存标识不能为空")
    private String stockId;
    @NotNull(message = "生成数量不能为空")
    @Min( value = 1,message = "生成数量最小为1张")
    @Max(value = 1000,message = "生成数量最大为1000张")
    private Integer num;
    @NotBlank(message = "溯源码模板标识不能为空")
    private String tracecodetplId;
}
