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.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

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

    @NotNull(message = "主键id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("主键id")
    private Long permissionId;

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

    @ChineseDescription("关联类型：10-机构，20-人员")
    private Integer linkScopeType;

    @ChineseDescription("关联的业务id，例如，类型是10就是机构id")
    private Long linkBusinessId;

    @ChineseDescription("范围类型：1-指定范围，2-指定部门及以下")
    private Integer scopeType;

    @ChineseDescription("租户id")
    private Long tenantId;

    @NotNull(message = "批量删除id集合不能为空", groups = batchDelete.class)
    @ChineseDescription("批量删除用的id集合")
    private List<Long> batchDeleteIdList;

}