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

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

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author 吴凯程
 * @Date 2024/9/18
 **/
@Data
public class VirtualGridRelateUpdateDTO {

    /**
     * 主键
     */
    @ApiModelProperty(value = "网格主键", name = "id")
    @Valid
    @NotNull(message = "网格主键不能为空")
    private Long gridId;
    /**
     * 是否个人
     */
    @ApiModelProperty(value = "是否个人", notes = "")
    @Valid
    @NotNull(message = "是否个人不能为空")
    private Boolean hasRetail;
    /**
     * 是否企业
     */
    @ApiModelProperty(value = "是否企业", notes = "")
    @Valid
    @NotNull(message = "是否企业不能为空")
    private Boolean hasBusiness;
    /**
     * 是否商户
     */
    @ApiModelProperty(value = "是否商户", notes = "")
    @Valid
    @NotNull(message = "是否商户不能为空")
    private Boolean hasRetailBusiness;
    /**
     * 网格名
     */
    @ApiModelProperty(value = "网格名", notes = "")
    private String gridName;


    @ApiModelProperty(value = "客户管护列表", notes = "")
    @NotNull(message = "客户管护列表不能为空")
    @Size(min = 1, message = "客户管护列表不能为空")
    private List<VirtualCustUserDTO> virtualCustUserDTOList;

}
