fetch(modify):修复BUG
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m27s

This commit is contained in:
sexygoat
2026-02-03 14:39:45 +08:00
parent 2c6fe4375b
commit de9753f42d
28 changed files with 4344 additions and 5092 deletions

View File

@@ -22,7 +22,9 @@ export interface PlatformAccount {
phone: string
user_type: number // 用户类型 (1:超级管理员, 2:平台用户, 3:代理账号, 4:企业账号)
enterprise_id?: number | null // 关联企业ID
enterprise_name?: string // ⭐ 新增:企业名称
shop_id?: number | null // 关联店铺ID
shop_name?: string // ⭐ 新增:店铺名称
status: AccountStatus // 状态 (0:禁用, 1:启用)
}
@@ -97,10 +99,12 @@ export interface CustomerAccount {
// 账号查询参数
export interface AccountQueryParams extends PaginationParams {
keyword?: string // 关键词(用户名、姓名、手机号)
roleId?: string | number
status?: AccountStatus
createTimeRange?: [string, string]
username?: string // 用户名模糊查询
phone?: string // 手机号模糊查询
user_type?: number // 用户类型 (1-4)
status?: AccountStatus // 状态 (0:禁用, 1:启用)
shop_id?: number // 按店铺ID筛选
enterprise_id?: number // 按企业ID筛选
}
// 代理商查询参数

View File

@@ -505,3 +505,31 @@ export interface BatchSetCardSeriesBindingResponse {
fail_count: number // 失败数量
failed_items: CardSeriesBindingFailedItem[] | null // 失败详情列表
}
// ========== IoT卡网关操作相关 ==========
// 查询流量使用响应
export interface GatewayFlowUsageResponse {
extend?: string // 扩展字段(广电国网特殊参数)
unit?: string // 流量单位MB
usedFlow?: number // 已用流量
}
// 查询实名认证状态响应
export interface GatewayRealnameStatusResponse {
extend?: string // 扩展字段(广电国网特殊参数)
status?: string // 实名认证状态
}
// 查询卡实时状态响应
export interface GatewayCardStatusResponse {
cardStatus?: string // 卡状态(准备、正常、停机)
extend?: string // 扩展字段(广电国网特殊参数)
iccid?: string // ICCID
}
// 获取实名认证链接响应
export interface GatewayRealnameLinkResponse {
extend?: string // 扩展字段(广电国网特殊参数)
link?: string // 实名认证跳转链接HTTPS URL
}

View File

@@ -225,3 +225,28 @@ export interface BatchSetDeviceSeriesBindingResponse {
fail_count: number // 失败数量
failed_items: DeviceSeriesBindingFailedItem[] | null // 失败详情列表
}
// ========== 设备操作相关 ==========
// 设置限速请求参数
export interface SetSpeedLimitRequest {
download_speed: number // 下行速率KB/s
upload_speed: number // 上行速率KB/s
}
// 切换SIM卡请求参数
export interface SwitchCardRequest {
target_iccid: string // 目标卡 ICCID
}
// 设置WiFi请求参数
export interface SetWiFiRequest {
enabled: number // 启用状态0:禁用, 1:启用)
ssid: string // WiFi 名称1-32字符
password: string // WiFi 密码8-63字符
}
// 空响应(设备操作成功)
export interface DeviceOperationResponse {
message?: string // 提示信息
}

View File

@@ -68,3 +68,26 @@ export interface ShopPageResult {
size?: number // 每页数量
total?: number // 总记录数
}
// ========== 店铺默认角色相关 ==========
// 店铺角色响应
export interface ShopRoleResponse {
role_id: number // 角色ID
role_name: string // 角色名称
role_desc: string // 角色描述
shop_id: number // 店铺ID
status: number // 状态 (0:禁用, 1:启用)
role_type?: number // 角色类型 (1:平台角色, 2:客户角色) - 可选,用于UI显示
}
// 店铺角色列表响应
export interface ShopRolesResponse {
shop_id: number // 店铺ID
roles: ShopRoleResponse[] | null // 角色列表
}
// 分配店铺角色请求
export interface AssignShopRolesRequest {
role_ids: number[] | null // 角色ID列表
}