package cc.mrbird.febs.mall.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @Data @ApiModel(value = "ApiConnectSaveDto", description = "参数") public class ApiConnectSaveDto { @NotNull(message = "ID不能为空") @ApiModelProperty(value = "ID", example = "丽丽") private Long id; @NotBlank(message = "姓名不可为空") @ApiModelProperty(value = "姓名", example = "丽丽") private String name; @NotBlank(message = "电话不可为空") @ApiModelProperty(value = "电话", example = "丽丽") private String phone; @NotBlank(message = "地址不可为空") @ApiModelProperty(value = "地址", example = "丽丽") private String address; }