package cn.bootx.platform.iam.param.permission;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 权限码分配参数
 * @author xxm
 * @since 2024/7/5
 */
@Data
@Accessors(chain = true)
@Schema(title = "权限码分配参数")
public class PermCodeAssignParam {

    /** 角色ID */
    @Schema(description = "角色ID")
    private Long roleId;
    /** 菜单ID */
    @Schema(description = "权限码")
    private List<Long> codeIds;
    /** 是否更新子孙角色 */
    @Schema(description = "是否更新子孙角色")
    private boolean updateChildren;
}
