fix: 修正零售价架构错误 + 清理旧微信配置 + 归档提案 + 前端接口文档
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m12s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m12s
1. 修正 retail_price 架构:
- 删除 batch-pricing 接口的 pricing_target 字段和 retail_price 分支
(上级只能改下级成本价,不能改零售价)
- 新增 PATCH /api/admin/packages/:id/retail-price 接口
(代理自己改自己的零售价,校验 retail_price >= cost_price)
2. 清理旧微信 YAML 配置(已全部迁移到数据库 tb_wechat_config):
- 删除 config.yaml 中 wechat.official_account 配置节
- 删除 NewOfficialAccountApp() 旧工厂函数
- 清理 personal_customer service 中的死代码(旧登录/绑定微信方法)
- 清理 docker-compose.prod.yml 中旧微信环境变量和证书挂载注释
3. 归档四个已完成提案到 openspec/changes/archive/
4. 新增前端接口变更说明文档(docs/前端接口变更说明.md)
5. 修正归档提案和 specs 中关于 pricing_target 的错误描述
This commit is contained in:
@@ -56,6 +56,11 @@ type UpdatePackageShelfStatusRequest struct {
|
||||
ShelfStatus int `json:"shelf_status" validate:"required,oneof=1 2" required:"true" description:"上架状态 (1:上架, 2:下架)"`
|
||||
}
|
||||
|
||||
// UpdateRetailPriceRequest 更新零售价请求
|
||||
type UpdateRetailPriceRequest struct {
|
||||
RetailPrice int64 `json:"retail_price" validate:"required,min=0" required:"true" minimum:"0" description:"零售价(单位:分)"`
|
||||
}
|
||||
|
||||
// CommissionTierInfo 返佣梯度信息
|
||||
type CommissionTierInfo struct {
|
||||
CurrentRate string `json:"current_rate" description:"当前返佣比例"`
|
||||
@@ -111,6 +116,12 @@ type UpdatePackageShelfStatusParams struct {
|
||||
UpdatePackageShelfStatusRequest
|
||||
}
|
||||
|
||||
// UpdateRetailPriceParams 更新零售价聚合参数
|
||||
type UpdateRetailPriceParams struct {
|
||||
IDReq
|
||||
UpdateRetailPriceRequest
|
||||
}
|
||||
|
||||
// PackagePageResult 套餐分页结果
|
||||
type PackagePageResult struct {
|
||||
List []*PackageResponse `json:"list" description:"套餐列表"`
|
||||
|
||||
Reference in New Issue
Block a user