消除重复枚举定义,统一AssetLibraryKind等枚举 #779

Closed
opened 2026-07-23 20:42:23 +08:00 by xiaoxia · 0 comments
Owner

问题描述

AssetLibraryKind枚举在两个文件中重复定义且值不同,容易造成数据不一致和难以排查的bug。

目标

所有枚举统一定义在domain层,全局复用,确保枚举值唯一且一致。

验收标准

  • 全仓库无重复定义的枚举类型
  • 核心枚举统一放在 packages/domain/
  • 前后端枚举值保持一致
  • 新增枚举必须在统一位置定义
## 问题描述 AssetLibraryKind枚举在两个文件中重复定义且值不同,容易造成数据不一致和难以排查的bug。 ## 目标 所有枚举统一定义在domain层,全局复用,确保枚举值唯一且一致。 ## 验收标准 - [ ] 全仓库无重复定义的枚举类型 - [ ] 核心枚举统一放在 `packages/domain/` 下 - [ ] 前后端枚举值保持一致 - [ ] 新增枚举必须在统一位置定义
xiaoxia added this to the 代码质量清理专项 milestone 2026-07-23 20:42:23 +08:00
xiaoxia added the backendP1refactor labels 2026-07-23 20:42:23 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xiaoxia/xiaoxia-saas#779