package com.doumee.dao.business.model.dto; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.Size; import java.util.Date; /** * @author T14 */ @Data @ApiModel("创建或者修改公司") public class CompanyCreatOrUpdateRequest { @ApiModelProperty(value = "主键", example = "1") private Integer id; @ApiModelProperty(value = "名称") @NotBlank(message = "客户名称企业全称不允许为空") @Size(max = 30,message = "客户名称企业全称不允许超过30字") private String name; @ApiModelProperty(value = "企业简称") private String shortName; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "管理员账号ID(关联system_user表)", example = "1") private Integer managerId; @ApiModelProperty(value = "管理员账号(关联system_user表)", example = "1") private String managerUserName; @ApiModelProperty(value = "联系人") private String linkname; @ApiModelProperty(value = "联系人电话") private String linkephone; @ApiModelProperty(value = "统一社会信用代码,不可重复") private String creditCode; @ApiModelProperty(value = "主播数量限制", example = "1") private Integer userNum; @ApiModelProperty(value = "系统使用有效期") @JsonFormat(pattern = "yyyy-MM-dd") private Date oepnValidDate; @ApiModelProperty(value = "账户开通类型 0试用账户 1正式账户", example = "1") private Integer oepnType; @ApiModelProperty(value = "销售人员编码(关联system_user表)", example = "1") private Integer salesmanId; }