package com.njcn.rdms.module.system.api.permission.dto;

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

@Schema(description = "RPC 服务 - 对象作用域角色摘要 Response DTO")
@Data
public class ObjectRoleRespDTO {

    @Schema(description = "角色 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;

    @Schema(description = "角色编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "product_manager")
    private String code;

    @Schema(description = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "产品经理")
    private String name;

    @Schema(description = "权限作用域类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "object")
    private String scopeType;

    @Schema(description = "对象类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "product")
    private String objectType;

    @Schema(description = "是否显示在角色下拉中：1 显示 / 0 不显示；业务自动赋予角色为 0",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer visible;

}
