package com.zcloud.primeport.dto;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

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

/**
* web-client
* @Author dearLin
* @Date 2026-03-19 13:59:16
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClosedAreaPersonApplyAuthCmd extends Command {
    @ApiModelProperty(value = "用户", name = "userId", required = true)
    @NotNull(message = "用户不能为空")
    private Long userId;
    @ApiModelProperty(value = "权限(1:有 2：无)", name = "mkmjPermission", required = true)
    @NotNull(message = "权限不能为空")
    private Integer mkmjPermission;
    @ApiModelProperty(value = "授权范围", name = "areaList")
    private List<FgsPersonArea> areaList;
    private Long corpId;
    private Long departmentId;
    @Data
    public static class FgsPersonArea {
        private Long fgsPersonAuthId;
        private Long closedAreaId;
        private String closedAreaName;
    }
}

