package com.fufan.mtsaas.modules.base.company.bo.request.back;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;


@Data
public class CompanyPurchaseSaveRequest {
    @NotBlank(message = "采购合同编号不能为空")
    @ApiModelProperty(value = "采购合同编号，字段最大长度：100")
    @Length(max = 100, message = "采购合同编号，超出字段最大长度：100")
    private String purchaseContractNo;
    @NotBlank(message = "购买明细开始日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "开始日期")
    private String startDate;
    @NotBlank(message = "购买明细结束日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "结束日期")
    private String expiryDate;
    @Length(max = 100, message = "购买产品类型，超出字段最大长度：100")
    @ApiModelProperty(value = "购买产品类型，字段最大长度：100")
    private String contractType;
    @Length(max = 500, message = "备注，超出字段最大长度：500")
    @ApiModelProperty(value = "备注，字段最大长度：500")
    private String note;
    @NotNull(message = "购买明细是否有效不能为空")
    @ApiModelProperty(value = "是否有效")
    private Integer isEnabled;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createTime;
    @ApiModelProperty(value = "创建人")
    private String createBy;
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String updateTime;
    @NotNull(message = "购买明细账户数量不能为空")
    @ApiModelProperty(value = "账户数量")
    private Integer maxUser;
}
