package cn.stylefeng.team.portal.modular.management.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

@EqualsAndHashCode(callSuper = true)
@Data
public class PermissionUpdateRequest extends BaseRequest {

    @ChineseDescription("门户设计id")
    @NotNull(message = "门户设计id不能为空")
    private Long designId;

    @ChineseDescription("关联类型：10-机构，20-人员")
    @NotNull(message = "关联类型不能为空，选择机构或者人员！")
    private Integer linkScopeType;

    @ChineseDescription("范围类型：1-指定范围，2-指定部门及以下")
    @NotNull(message = "范围类型不能为空")
    private Integer scopeType;

    @ChineseDescription("关联的业务id集合")
    @NotEmpty(message = "关联的业务id集合不能为空")
    private Set<Long> linkBusinessIdList;

}