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

View File

@@ -832,7 +832,7 @@ components:
$ref: '#/components/schemas/DtoBoundCardInfo'
type: array
current_month_usage_mb:
description: 本月已用流量MBasset_type=card时有效
description: 系统累计的自然月流量MBasset_type=card时有效
type: number
device_protect_status:
description: 保护期状态asset_type=device时有效none/stop/start
@@ -1533,6 +1533,9 @@ components:
created_at:
description: 创建时间
type: string
data_reset_day:
description: 上游流量重置日(1-28)
type: integer
description:
description: 运营商描述
type: string
@@ -2150,6 +2153,12 @@ components:
carrier_type:
description: 运营商类型 (CMCC:中国移动, CUCC:中国联通, CTCC:中国电信, CBN:中国广电)
type: string
data_reset_day:
description: 上游流量重置日(1-28)运营商每月清零网关计数器的日期默认1
maximum: 28
minimum: 1
nullable: true
type: integer
description:
description: 运营商描述
maxLength: 500
@@ -3101,6 +3110,10 @@ components:
description: 电池电量百分比无电池时为null
nullable: true
type: integer
client_number:
description: 当前已连接客户端数
nullable: true
type: integer
connect_time:
description: 本次联网时间(秒)
nullable: true
@@ -3383,6 +3396,10 @@ components:
description: 电池电量百分比
nullable: true
type: integer
client_number:
description: 当前已连接客户端数
nullable: true
type: integer
connect_time:
description: 设备本次联网时间(秒)
nullable: true
@@ -6733,6 +6750,12 @@ components:
minLength: 1
nullable: true
type: string
data_reset_day:
description: 上游流量重置日(1-28),运营商每月清零网关计数器的日期
maximum: 28
minimum: 1
nullable: true
type: integer
description:
description: 运营商描述
maxLength: 500
@@ -18520,7 +18543,7 @@ paths:
summary: 获取轮询任务统计
tags:
- 轮询管理-监控
/api/admin/refunds/:
/api/admin/refunds:
get:
parameters:
- description: 页码默认1