package com.ruoyi.ibs.grid.domain.dto;

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

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @Author 吴凯程
 * @Date 2024/9/18
 **/

@Data
@Valid
public class GridUserRelateDTO {

    /**
     * 关联类型;2：机构））
     */
    @ApiModelProperty(value = "关联类型", notes = "1客户经理 2机构")
    @NotNull(message = "关联类型不能为空")
    private String relateType;

    /**
     * 客户经理id
     */
    @ApiModelProperty(value = "客户经理id", notes = "")
    private String nickName;

    /**
     * 客户经理姓名
     */
    @ApiModelProperty(value = "客户经理柜员号", notes = "")
    private String userName;

    /**
     * 机构号
     */
    @ApiModelProperty(value = "机构号", notes = "")
    @NotNull(message = "机构号不能为空")
    private Long relateDeptId;

    /**
     * 机构名
     */
    @ApiModelProperty(value = "机构名", notes = "")
    @NotNull(message = "机构名不能为空")
    private String relateDeptName;

    /**
     * 机构层级;（head：总行，branch支行，outlet网点））
     */
    @ApiModelProperty(value = "机构层级", notes = "（head：总行，branch支行，outlet网点））")
    @NotNull(message = "机构层级不能为空")
    private String relateDeptType;

    @ApiModelProperty(value = "操作表示", notes = "0新增 1删除")
    @NotNull(message = "操作表示不能为空")
    private String optFlag;

}
