@djvlc/openapi-user-client 1.7.8 → 1.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,8 +7,16 @@ BadRequest:
7
7
  schema:
8
8
  $ref: '../schemas/_index.yaml#/ErrorResponse'
9
9
  example:
10
- code: BAD_REQUEST
10
+ success: false
11
+ code: VALIDATION_INVALID_PARAMS
11
12
  message: 请求参数无效
13
+ data:
14
+ - field: pageId
15
+ message: 页面 ID 不能为空
16
+ code: REQUIRED
17
+ timestamp: 1702300000000
18
+ path: /api/user/pages/resolve
19
+ requestId: uuid-string
12
20
 
13
21
  Unauthorized:
14
22
  description: 未认证
@@ -17,8 +25,12 @@ Unauthorized:
17
25
  schema:
18
26
  $ref: '../schemas/_index.yaml#/ErrorResponse'
19
27
  example:
20
- code: UNAUTHORIZED
28
+ success: false
29
+ code: AUTH_TOKEN_MISSING
21
30
  message: 请先登录
31
+ timestamp: 1702300000000
32
+ path: /api/user/pages/resolve
33
+ requestId: uuid-string
22
34
 
23
35
  Forbidden:
24
36
  description: 无权限
@@ -27,8 +39,12 @@ Forbidden:
27
39
  schema:
28
40
  $ref: '../schemas/_index.yaml#/ErrorResponse'
29
41
  example:
30
- code: FORBIDDEN
42
+ success: false
43
+ code: PERMISSION_DENIED
31
44
  message: 无访问权限
45
+ timestamp: 1702300000000
46
+ path: /api/user/pages/resolve
47
+ requestId: uuid-string
32
48
 
33
49
  NotFound:
34
50
  description: 资源不存在
@@ -37,8 +53,12 @@ NotFound:
37
53
  schema:
38
54
  $ref: '../schemas/_index.yaml#/ErrorResponse'
39
55
  example:
40
- code: NOT_FOUND
56
+ success: false
57
+ code: RESOURCE_PAGE_NOT_FOUND
41
58
  message: 资源不存在
59
+ timestamp: 1702300000000
60
+ path: /api/user/pages/resolve
61
+ requestId: uuid-string
42
62
 
43
63
  UnprocessableEntity:
44
64
  description: 请求无法处理
@@ -47,8 +67,12 @@ UnprocessableEntity:
47
67
  schema:
48
68
  $ref: '../schemas/_index.yaml#/ErrorResponse'
49
69
  example:
50
- code: UNPROCESSABLE_ENTITY
70
+ success: false
71
+ code: BUSINESS_ACTIVITY_NOT_STARTED
51
72
  message: 参数验证失败
73
+ timestamp: 1702300000000
74
+ path: /api/user/actions/execute
75
+ requestId: uuid-string
52
76
 
53
77
  TooManyRequests:
54
78
  description: 请求过于频繁
@@ -57,8 +81,12 @@ TooManyRequests:
57
81
  schema:
58
82
  $ref: '../schemas/_index.yaml#/ErrorResponse'
59
83
  example:
60
- code: TOO_MANY_REQUESTS
84
+ success: false
85
+ code: RISK_RATE_LIMITED
61
86
  message: 请求过于频繁,请稍后再试
87
+ timestamp: 1702300000000
88
+ path: /api/user/actions/execute
89
+ requestId: uuid-string
62
90
 
63
91
  InternalError:
64
92
  description: 服务器内部错误
@@ -67,8 +95,13 @@ InternalError:
67
95
  schema:
68
96
  $ref: '../schemas/_index.yaml#/ErrorResponse'
69
97
  example:
70
- code: INTERNAL_ERROR
98
+ success: false
99
+ code: SYSTEM_INTERNAL_ERROR
71
100
  message: 服务器内部错误
101
+ timestamp: 1702300000000
102
+ path: /api/user/pages/resolve
103
+ requestId: uuid-string
104
+ traceId: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
72
105
 
73
106
  ServiceUnavailable:
74
107
  description: 服务不可用
@@ -77,8 +110,12 @@ ServiceUnavailable:
77
110
  schema:
78
111
  $ref: '../schemas/_index.yaml#/ErrorResponse'
79
112
  example:
80
- code: SERVICE_UNAVAILABLE
113
+ success: false
114
+ code: SYSTEM_SERVICE_UNAVAILABLE
81
115
  message: 页面暂时不可用
116
+ timestamp: 1702300000000
117
+ path: /api/user/pages/resolve
118
+ requestId: uuid-string
82
119
 
83
120
  GatewayTimeout:
84
121
  description: 网关超时
@@ -87,5 +124,9 @@ GatewayTimeout:
87
124
  schema:
88
125
  $ref: '../schemas/_index.yaml#/ErrorResponse'
89
126
  example:
90
- code: GATEWAY_TIMEOUT
127
+ success: false
128
+ code: SYSTEM_TIMEOUT
91
129
  message: 查询超时
130
+ timestamp: 1702300000000
131
+ path: /api/user/data/query
132
+ requestId: uuid-string