fix: 修复分页字段/角色DTO/套餐详情/批量分配Bug,新增C端测试登录接口和Hurl价格验证测试
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Has been cancelled

- 修复B-2:27个分页DTO字段名统一(list→items, page_size→size,删除total_pages)
- 修复B-1:角色接口统一返回DTO(id小写,消除GORM大写字段名)
- 修复C-1:套餐详情接口(GET /packages/:id)补充代理佣金字段
- 修复C-2:批量分配已存在记录由500改为静默跳过
- 修复C-3:创建系列授权响应在事务提交后构建,packages数组不再为空
- 新增C端开发测试登录接口(POST /api/c/v1/auth/dev-login,仅logging.development=true时生效)
- 新增Hurl测试:card-price-verification-flow.hurl(导入卡→分配→C端价格验证)
- 新增测试Excel数据文件和dev.env测试变量
This commit is contained in:
2026-03-31 09:54:08 +08:00
parent 33e7f99fdc
commit 2ef8b8a705
54 changed files with 1697 additions and 260 deletions

25
tests/hurl/env/dev.env vendored Normal file
View File

@@ -0,0 +1,25 @@
# ============================================================
# 环境变量 - 开发环境
# ============================================================
# 服务地址
base_url=http://localhost:3000
# 平台管理员
admin_username=admin
admin_password=Admin@123456
# 一级代理测试账号(创建店铺时自动创建)
agent1_username=hurl_test_agent1
agent1_password=Agent1@123456
agent1_phone=18899990001
# 二级代理测试账号(创建店铺时自动创建)
agent2_username=hurl_test_agent2
agent2_password=Agent2@123456
agent2_phone=18899990002
# 价格验证测试用 IoT 卡card-price-verification-flow.hurl 使用)
# 对应 testdata/hurl-test-cards.xlsx 中的固定 ICCID
test_iccid_1=8986001234560001
test_iccid_2=8986001234560002