package com.haitonggauto.rtosc.dto; import com.haitonggauto.rtosc.common.utils.ValidationGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotBlank; @Data @ApiModel("提单号验证") public class BillNumValidVo { @ApiModelProperty(value = "船ID") @NotBlank(groups = {ValidationGroup.insert.class, ValidationGroup.update.class}, message = "船ID不能为空") private String shipId; @ApiModelProperty(value = "航次ID") @NotBlank(groups = {ValidationGroup.insert.class, ValidationGroup.update.class}, message = "航次ID不能为空") private String voyageId; @NotBlank(groups = {ValidationGroup.insert.class, ValidationGroup.update.class}, message = "货代ID不能为空") @ApiModelProperty(value = "货代ID", required = true) private String freightId; @NotBlank(groups = {ValidationGroup.insert.class, ValidationGroup.update.class}, message = "提单号不能为空") @ApiModelProperty(value = "提单号", required = true) private String billNum; }