package cn.ey.biz.module.system.api.code.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class CodeCustomerDTO {

    @ApiModelProperty(value = "客户ID", required = true)
    @NotNull(message = "客户ID字段不能为空")
    private ClientID clientID;

    @ApiModelProperty(value = "用户名称", required = true)
    @NotNull(message = "用户名称配置项必须存在")
    private ClientName clientName;

    @ApiModelProperty(value = "更新说明", required = true)
    private String explanation;

    private String updater;

    private String date;

    @Data
    public static class ClientID {
        private Integer notNull; // 客户ID字段不为空 0:未选择 1:已选择
    }

    @Data
    public static class ClientName {
        private Integer mustEn; // 用户名称必须是英文 0:未选择 1:已选择
    }
}
