@djvlc/openapi-admin-client 1.6.9 → 1.6.11

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,12 +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: 请求参数无效
12
- details:
13
+ data:
13
14
  - field: title
14
15
  message: 标题不能为空
15
16
  code: REQUIRED
17
+ timestamp: 1702300000000
18
+ path: /api/admin/pages
19
+ requestId: uuid-string
16
20
 
17
21
  Unauthorized:
18
22
  description: 未授权
@@ -21,8 +25,12 @@ Unauthorized:
21
25
  schema:
22
26
  $ref: '../schemas/_index.yaml#/ErrorResponse'
23
27
  example:
24
- code: UNAUTHORIZED
28
+ success: false
29
+ code: AUTH_TOKEN_MISSING
25
30
  message: 请先登录
31
+ timestamp: 1702300000000
32
+ path: /api/admin/pages
33
+ requestId: uuid-string
26
34
 
27
35
  Forbidden:
28
36
  description: 权限不足
@@ -31,8 +39,12 @@ Forbidden:
31
39
  schema:
32
40
  $ref: '../schemas/_index.yaml#/ErrorResponse'
33
41
  example:
34
- code: FORBIDDEN
42
+ success: false
43
+ code: PERMISSION_DENIED
35
44
  message: 您没有权限执行此操作
45
+ timestamp: 1702300000000
46
+ path: /api/admin/pages
47
+ requestId: uuid-string
36
48
 
37
49
  NotFound:
38
50
  description: 资源不存在
@@ -41,8 +53,12 @@ NotFound:
41
53
  schema:
42
54
  $ref: '../schemas/_index.yaml#/ErrorResponse'
43
55
  example:
44
- code: NOT_FOUND
56
+ success: false
57
+ code: RESOURCE_NOT_FOUND
45
58
  message: 资源不存在
59
+ timestamp: 1702300000000
60
+ path: /api/admin/pages/123
61
+ requestId: uuid-string
46
62
 
47
63
  Conflict:
48
64
  description: 资源冲突
@@ -51,8 +67,12 @@ Conflict:
51
67
  schema:
52
68
  $ref: '../schemas/_index.yaml#/ErrorResponse'
53
69
  example:
70
+ success: false
54
71
  code: CONFLICT
55
72
  message: 资源已被其他用户修改,请刷新后重试
73
+ timestamp: 1702300000000
74
+ path: /api/admin/pages/123
75
+ requestId: uuid-string
56
76
 
57
77
  InternalError:
58
78
  description: 服务器内部错误
@@ -61,5 +81,10 @@ InternalError:
61
81
  schema:
62
82
  $ref: '../schemas/_index.yaml#/ErrorResponse'
63
83
  example:
64
- code: INTERNAL_ERROR
84
+ success: false
85
+ code: SYSTEM_INTERNAL_ERROR
65
86
  message: 服务器内部错误,请稍后重试
87
+ timestamp: 1702300000000
88
+ path: /api/admin/pages
89
+ requestId: uuid-string
90
+ traceId: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01