mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-11 15:15:34 +08:00
refactor(trace): 前端 Result/DaxResult TS 类型移除 traceId
- web.d.ts Result 移除 traceId 字段(后端已不返回, 由 x-trace-id 响应头透传)
- unipay-request DaxResult 接口移除 traceId 字段
- DevelopTrade/DevelopGateway 的 traceId 展示已随 54350648 一并移除
This commit is contained in:
@@ -23,7 +23,6 @@ export interface DaxResult<T = unknown> {
|
||||
resTime?: string;
|
||||
/** 请求ID(回显) */
|
||||
reqId?: string;
|
||||
traceId?: string;
|
||||
}
|
||||
|
||||
function createUnipayClient(baseURL: string, options?: RequestClientOptions) {
|
||||
|
||||
4
apps/daxpay-admin/src/types/web.d.ts
vendored
4
apps/daxpay-admin/src/types/web.d.ts
vendored
@@ -10,14 +10,14 @@ export interface PageParam {
|
||||
|
||||
/**
|
||||
* 通用响应类
|
||||
*
|
||||
* traceId 不再通过响应体返回, 改由响应头 `x-trace-id` 透传, 用于排障关联。
|
||||
*/
|
||||
export interface Result<T = any> {
|
||||
/** 响应码 */
|
||||
code: number;
|
||||
/** 响应消息 */
|
||||
msg: string;
|
||||
/** 追踪ID */
|
||||
traceId: null | string | undefined;
|
||||
/** 响应数据 */
|
||||
data: T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user