feat(guidelines): 更新工作指引并添加批量成员管理功能

- 简化 AGENTS.md 内容,统一引用 CLAUDE.md 作为主要指引
- 更新 CLAUDE.md 中的工作方式和验证流程说明
- 添加产品和项目成员批量新增/移出的错误码定义
- 扩展系统角色 API 响应 DTO,增加可见性字段
- 实现产品团队成员批量新增和批量移出控制器接口
- 添加产品成员批量操作的服务层实现和业务校验逻辑
- 实现项目团队成员批量操作的相关控制器接口
- 优化产品成员列表查询,过滤不可见角色行
- 添加批量操作的审计日志记录功能
This commit is contained in:
2026-05-18 21:16:11 +08:00
parent 75886d7af5
commit 1ef86fc1cb
17 changed files with 625 additions and 285 deletions

View File

@@ -22,4 +22,8 @@ public class ObjectRoleRespDTO {
@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;
}

View File

@@ -41,6 +41,10 @@ public class RoleRespVO {
@Schema(description = "角色类型,参见 RoleTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer type;
@Schema(description = "是否显示在角色下拉中1 显示 / 0 不显示;业务自动赋予角色为 0前端下拉应过滤掉",
requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer visible;
@Schema(description = "备注", example = "我是一个角色")
private String remark;

View File

@@ -62,6 +62,12 @@ public class RoleDO extends BaseDO {
* 枚举 {@link RoleTypeEnum}
*/
private Integer type;
/**
* 是否显示在角色下拉中1 显示 / 0 不显示
*
* 业务流程自动赋予的角色(如创建者、隐式观察者)设为 0前端下拉过滤掉避免用户手动选择
*/
private Integer visible;
/**
* 备注
*/