feat: 优化日志页面/支付配置/设备列表/菜单详情数据解析
- 支付配置: privateKeyPath改为privateKey,支持textarea粘贴和pem文件上传
- 审计日志: 优化列表展示(head字段/result解析)和详情弹窗
- 橘视厅调用日志: 接口路径截断显示/JSON格式化/耗时颜色分级
- 第三方设备列表: 新增来源/WiFi MAC/UID/心跳时间列,状态改为已激活/未激活
- 菜单/角色/用户详情: 统一用 data.{entity} 提取业务对象
- 设备权益: 去除双层data嵌套,适配后端统一响应结构
This commit is contained in:
@@ -10,15 +10,17 @@ export interface AuditLogItem {
|
||||
actorUserId: number
|
||||
/** 操作人名 */
|
||||
name?: string
|
||||
/** 请求方法 */
|
||||
/** 操作描述(中文,如"创建天卡订单(设备端)") */
|
||||
head?: string
|
||||
/** 请求方法枚举(如 DAYCARD_ORDER_CREATE) */
|
||||
method?: string
|
||||
/** 接口路径 */
|
||||
api?: string
|
||||
/** 请求参数 */
|
||||
param?: string
|
||||
/** 中文描述 */
|
||||
/** 中文描述(旧字段,多为空) */
|
||||
paramDesc?: string
|
||||
/** 操作结果 */
|
||||
/** 操作结果(完整返回字符串,含 code=/msg=) */
|
||||
result?: string
|
||||
/** 变更前 */
|
||||
before?: string
|
||||
@@ -41,6 +43,8 @@ export interface AuditLogListParams extends ManagePageParams {
|
||||
actorUserId?: number
|
||||
api?: string
|
||||
method?: string
|
||||
head?: string
|
||||
ip?: string
|
||||
ticketNo?: string
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ export interface DeviceListParams extends ManagePageParams {
|
||||
status?: string
|
||||
deviceName?: string
|
||||
mac?: string
|
||||
deviceSn?: string
|
||||
/** 设备来源:DIRECT / PARTNER */
|
||||
source?: string
|
||||
/** 合作伙伴UUID(source=PARTNER 时筛选) */
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { ManageListResponse, ManagePageParams } from './types'
|
||||
*/
|
||||
export interface JstCallLogItem {
|
||||
id: number
|
||||
/** 请求URL */
|
||||
/** 请求URL(可能带反引号和query参数) */
|
||||
apiPath: string
|
||||
/** 请求方法 */
|
||||
requestMethod?: string
|
||||
@@ -20,6 +20,12 @@ export interface JstCallLogItem {
|
||||
success: number
|
||||
/** 耗时(ms) */
|
||||
duration?: number
|
||||
/** 关联数据ID */
|
||||
dataId?: number
|
||||
/** 请求头(JSON字符串) */
|
||||
requestHeaders?: string
|
||||
/** 客户端IP */
|
||||
clientIp?: string
|
||||
/** 错误信息 */
|
||||
errorMessage?: string
|
||||
/** 关联设备MAC */
|
||||
@@ -28,8 +34,14 @@ export interface JstCallLogItem {
|
||||
deviceSn?: string
|
||||
/** 关联设备UID */
|
||||
deviceUid?: string
|
||||
/** 设备所属门店 */
|
||||
/** 门店组织ID */
|
||||
storeOrgId?: number
|
||||
/** 设备所属门店名称 */
|
||||
storeOrgName?: string
|
||||
/** 门店编码 */
|
||||
storeOrgCode?: string
|
||||
/** 门店类型 */
|
||||
storeOrgType?: string
|
||||
createTime: string
|
||||
}
|
||||
|
||||
@@ -42,6 +54,8 @@ export interface JstCallLogListParams extends ManagePageParams {
|
||||
endTime?: string
|
||||
apiPath?: string
|
||||
requestBody?: string
|
||||
/** 结果筛选:1=成功,0=失败 */
|
||||
success?: number
|
||||
}
|
||||
|
||||
/** 橘视厅调用日志列表 */
|
||||
|
||||
@@ -16,7 +16,8 @@ export interface PayConfigInfo {
|
||||
mchId: string
|
||||
apiV3Key: string
|
||||
certSerialNo: string
|
||||
privateKeyPath: string
|
||||
/** 商户 API 私钥(apiclient_key.pem 的 PEM 内容) */
|
||||
privateKey: string
|
||||
notifyUrl: string
|
||||
status: string
|
||||
remark: string
|
||||
@@ -49,7 +50,8 @@ export interface PayConfigSaveData {
|
||||
mchId: string
|
||||
apiV3Key: string
|
||||
certSerialNo?: string
|
||||
privateKeyPath?: string
|
||||
/** 商户 API 私钥(apiclient_key.pem 的 PEM 内容) */
|
||||
privateKey?: string
|
||||
notifyUrl: string
|
||||
status?: string
|
||||
remark?: string
|
||||
|
||||
Reference in New Issue
Block a user