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

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

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

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

@Data
public class TopGridUpdateDTO {

    @ApiModelProperty(value = "网格主键", name = "id")
    @Valid
    @NotNull(message = "网格主键不能为空")
    private Long gridId;

    /**
     * 网格名
     */
    @ApiModelProperty(value = "网格名", notes = "")
    private String gridName;

    @ApiModelProperty(value = "网格责任类型", notes = "1责任 2竞争")
    private String gridDutyType;

    @Valid
    @ApiModelProperty(value = "关联行政区划", notes = "")
    private List<RegionAdminDivisionDTO> adminDivisionDTOList;

    @ApiModelProperty(value = "删除关联行政区划", notes = "")
    private List<String> deleteAdminDivisionList;

    @Valid
    @ApiModelProperty(value = "关联机构用户", notes = "")
    private List<GridUserRelateDTO> gridUserRelateDTOList;

}
