package com.njcn.rdms.module.project.controller.admin.project.vo.project;

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

import java.util.Collections;
import java.util.List;

@Schema(description = "管理后台 - 项目上下文中的当前角色 Response VO")
@Data
public class ProjectContextRoleRespVO {

    @Schema(description = "对象角色编号", example = "3201")
    private Long roleId;
    @Schema(description = "对象角色编码（主角色 code，权限判断兼容字段）", example = "project_manager")
    private String roleCode;
    @Schema(description = "对象角色名称（主角色 name）", example = "项目经理")
    private String roleName;
    @Schema(description = "是否游客上下文", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    private Boolean guestFlag;
    @ArraySchema(schema = @Schema(description = "非主角色的中文名列表，多角色场景使用；单角色时为空数组", example = "创建者"))
    private List<String> additionalRoleNames = Collections.emptyList();

}
