feat: 实现套餐管理模块,包含套餐系列、双状态管理、废弃模型清理
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 5m24s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 5m24s
- 新增套餐系列管理 (CRUD + 状态切换) - 新增套餐管理 (CRUD + 启用/禁用 + 上架/下架双状态) - 清理 8 个废弃分佣模型及对应数据库表 - Package 模型新增建议成本价、建议售价、上架状态字段 - 完整的 Store/Service/Handler 三层实现 - 包含单元测试和集成测试 - 归档 add-package-module change - 新增多个 OpenSpec changes (订单支付、店铺套餐分配、一次性分佣、卡设备系列绑定)
This commit is contained in:
@@ -39,7 +39,7 @@ func TestShopService_Create(t *testing.T) {
|
||||
District: "朝阳区",
|
||||
Address: "朝阳路100号",
|
||||
InitUsername: generateUniqueUsername("admin", t),
|
||||
InitPhone: "13800138001",
|
||||
InitPhone: generateUniquePhone(),
|
||||
InitPassword: "password123",
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ func TestShopService_Create(t *testing.T) {
|
||||
ContactName: "王五",
|
||||
ContactPhone: "13800000003",
|
||||
InitUsername: generateUniqueUsername("agent", t),
|
||||
InitPhone: "13800138002",
|
||||
InitPhone: generateUniquePhone(),
|
||||
InitPassword: "password123",
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ func TestShopService_Create(t *testing.T) {
|
||||
ContactName: "测试",
|
||||
ContactPhone: "13800000008",
|
||||
InitUsername: generateUniqueUsername("level8", t),
|
||||
InitPhone: "13800138008",
|
||||
InitPhone: generateUniquePhone(),
|
||||
InitPassword: "password123",
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ func TestShopService_Create(t *testing.T) {
|
||||
ContactName: "测试",
|
||||
ContactPhone: "13800000009",
|
||||
InitUsername: generateUniqueUsername("invalid", t),
|
||||
InitPhone: "13800138009",
|
||||
InitPhone: generateUniquePhone(),
|
||||
InitPassword: "password123",
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ func TestShopService_Create(t *testing.T) {
|
||||
ContactName: "测试",
|
||||
ContactPhone: "13800000010",
|
||||
InitUsername: generateUniqueUsername("unauth", t),
|
||||
InitPhone: "13800138010",
|
||||
InitPhone: generateUniquePhone(),
|
||||
InitPassword: "password123",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user