refactor(terminology): 统一术语标准并优化代码类型安全
- 将B2B统一为TOB术语 - 将状态值统一为大写格式 - 优化类型声明,避免使用any - 将float类型替换为decimal以提高精度 - 新增术语标准化文档 - 优化路由结构和菜单分类 - 添加TypeORM实体类 - 增强加密模块安全性 - 重构前端路由结构 - 完善任务模板和验收标准
This commit is contained in:
@@ -2,51 +2,51 @@
|
||||
|
||||
## Merchant(商户)状态
|
||||
|
||||
pending
|
||||
→ active
|
||||
→ inactive
|
||||
→ suspended
|
||||
PENDING
|
||||
→ ACTIVE
|
||||
→ INACTIVE
|
||||
→ SUSPENDED
|
||||
|
||||
---
|
||||
|
||||
## User(用户)状态
|
||||
|
||||
pending
|
||||
→ active
|
||||
→ inactive
|
||||
→ locked
|
||||
PENDING
|
||||
→ ACTIVE
|
||||
→ INACTIVE
|
||||
→ LOCKED
|
||||
|
||||
---
|
||||
|
||||
## Store(店铺)状态
|
||||
|
||||
pending
|
||||
→ active
|
||||
→ inactive
|
||||
→ suspended
|
||||
PENDING
|
||||
→ ACTIVE
|
||||
→ INACTIVE
|
||||
→ SUSPENDED
|
||||
|
||||
---
|
||||
|
||||
## Feature(功能)状态
|
||||
|
||||
inactive
|
||||
→ pending_payment
|
||||
→ active
|
||||
→ expired
|
||||
→ suspended
|
||||
INACTIVE
|
||||
→ PENDING_PAYMENT
|
||||
→ ACTIVE
|
||||
→ EXPIRED
|
||||
→ SUSPENDED
|
||||
|
||||
---
|
||||
|
||||
## Order(订单)状态
|
||||
|
||||
pending
|
||||
→ paid
|
||||
→ split
|
||||
→ processing
|
||||
→ shipped
|
||||
→ completed
|
||||
→ refunded
|
||||
→ cancelled
|
||||
PENDING
|
||||
→ PAID
|
||||
→ SPLIT
|
||||
→ PROCESSING
|
||||
→ SHIPPED
|
||||
→ COMPLETED
|
||||
→ REFUNDED
|
||||
→ CANCELLED
|
||||
|
||||
---
|
||||
|
||||
@@ -62,69 +62,69 @@ PENDING
|
||||
|
||||
## SubOrder(子订单)状态
|
||||
|
||||
pending
|
||||
→ processing
|
||||
→ shipped
|
||||
→ completed
|
||||
→ refunded
|
||||
→ cancelled
|
||||
PENDING
|
||||
→ PROCESSING
|
||||
→ SHIPPED
|
||||
→ COMPLETED
|
||||
→ REFUNDED
|
||||
→ CANCELLED
|
||||
|
||||
---
|
||||
|
||||
## Product(商品)状态
|
||||
|
||||
draft
|
||||
→ pending_approval
|
||||
→ active
|
||||
→ inactive
|
||||
→ discontinued
|
||||
DRAFT
|
||||
→ PENDING_APPROVAL
|
||||
→ ACTIVE
|
||||
→ INACTIVE
|
||||
→ DISCONTINUED
|
||||
|
||||
---
|
||||
|
||||
## Inventory(库存)状态
|
||||
|
||||
normal
|
||||
→ low
|
||||
→ out_of_stock
|
||||
→ overstock
|
||||
NORMAL
|
||||
→ LOW
|
||||
→ OUT_OF_STOCK
|
||||
→ OVERSTOCK
|
||||
|
||||
---
|
||||
|
||||
## Payment(支付)状态
|
||||
|
||||
created
|
||||
→ processing
|
||||
→ paid
|
||||
→ failed
|
||||
→ refunded
|
||||
CREATED
|
||||
→ PROCESSING
|
||||
→ PAID
|
||||
→ FAILED
|
||||
→ REFUNDED
|
||||
|
||||
---
|
||||
|
||||
## Bill(账单)状态
|
||||
|
||||
pending
|
||||
→ confirmed
|
||||
→ settled
|
||||
→ disputed
|
||||
PENDING
|
||||
→ CONFIRMED
|
||||
→ SETTLED
|
||||
→ DISPUTED
|
||||
|
||||
---
|
||||
|
||||
## Settlement(结算)状态
|
||||
|
||||
pending
|
||||
→ processing
|
||||
→ completed
|
||||
→ failed
|
||||
PENDING
|
||||
→ PROCESSING
|
||||
→ COMPLETED
|
||||
→ FAILED
|
||||
|
||||
---
|
||||
|
||||
## Task(任务)状态
|
||||
|
||||
pending
|
||||
→ running
|
||||
→ success
|
||||
→ failed
|
||||
→ cancelled
|
||||
PENDING
|
||||
→ RUNNING
|
||||
→ SUCCESS
|
||||
→ FAILED
|
||||
→ CANCELLED
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user