feat: 新增代理分配套餐上架状态(shelf_status)功能
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m56s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m56s
- 新增数据库迁移:为 shop_package_allocation 表添加 shelf_status 字段 - 更新模型/DTO:ShopPackageAllocation 增加 ShelfStatus 字段及相关枚举 - 更新套餐分配 Service:支持上架/下架状态管理逻辑 - 更新套餐 Store/Service:根据 shelf_status 过滤可售套餐 - 更新购买验证 Service:引入上架状态校验逻辑 - 归档 OpenSpec 变更:2026-03-02-agent-allocation-shelf-status - 同步更新主规范文档:allocation-shelf-status、package-management、purchase-validation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- 回滚:移除 tb_shop_package_allocation 表的 shelf_status 字段
|
||||
ALTER TABLE tb_shop_package_allocation
|
||||
DROP COLUMN IF EXISTS shelf_status;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- 为 tb_shop_package_allocation 表新增代理独立上下架状态字段
|
||||
-- 背景:代理调用上下架接口时应只修改自己的分配记录,不影响平台全局套餐状态
|
||||
ALTER TABLE tb_shop_package_allocation
|
||||
ADD COLUMN shelf_status INT NOT NULL DEFAULT 1;
|
||||
|
||||
COMMENT ON COLUMN tb_shop_package_allocation.shelf_status IS '上架状态 1-上架 2-下架';
|
||||
Reference in New Issue
Block a user