@djvlc/openapi-user-client 1.7.15 → 1.8.1
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.
- package/dist/index.d.mts +1725 -3725
- package/dist/index.d.ts +1725 -3725
- package/dist/index.js +1436 -2991
- package/dist/index.mjs +1286 -2673
- package/openapi/dist/user-api.yaml +1252 -1521
- package/openapi/src/components/schemas/_index.yaml +850 -1025
- package/openapi/src/openapi.yaml +30 -20
- package/openapi/src/paths/actions.yaml +15 -50
- package/openapi/src/paths/activities.yaml +132 -94
- package/openapi/src/paths/health.yaml +19 -61
- package/openapi/src/paths/pages.yaml +98 -30
- package/openapi/src/paths/queries.yaml +32 -52
- package/openapi/src/paths/tenant.yaml +15 -49
- package/openapi/src/paths/track.yaml +9 -53
- package/package.json +2 -2
package/openapi/src/openapi.yaml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
|
-
title:
|
|
3
|
+
title: 平台用户端 API
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
description: |
|
|
6
|
-
|
|
6
|
+
平台用户端 API 文档 (User API)
|
|
7
7
|
|
|
8
8
|
提供以下功能:
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- 数据查询(
|
|
12
|
-
- 活动状态查询
|
|
13
|
-
-
|
|
14
|
-
- 租户解析(Tenant
|
|
15
|
-
- 健康检查(Health
|
|
9
|
+
- 页面运行时(Pages)- 页面解析与渲染
|
|
10
|
+
- 动作网关(Actions)- 统一动作执行入口
|
|
11
|
+
- 数据查询(Queries)- 数据代理查询
|
|
12
|
+
- 活动运行时(Activities)- 活动状态查询
|
|
13
|
+
- 埋点追踪(Track)- 用户行为追踪
|
|
14
|
+
- 租户解析(Tenant)- 多租户解析
|
|
15
|
+
- 健康检查(Health)- 服务健康状态
|
|
16
16
|
|
|
17
17
|
核心原则:
|
|
18
18
|
- 所有业务动作只走 Action Gateway(鉴权/风控/幂等/审计/签名)
|
|
@@ -31,24 +31,28 @@ servers:
|
|
|
31
31
|
|
|
32
32
|
tags:
|
|
33
33
|
- name: Pages
|
|
34
|
-
description:
|
|
34
|
+
description: 页面运行时 - 页面解析与渲染
|
|
35
35
|
- name: Actions
|
|
36
|
-
description:
|
|
36
|
+
description: 动作网关 - 统一动作执行入口
|
|
37
37
|
- name: Queries
|
|
38
|
-
description:
|
|
38
|
+
description: 数据查询 - 数据代理查询
|
|
39
39
|
- name: Activities
|
|
40
|
-
description: 活动状态查询
|
|
40
|
+
description: 活动运行时 - 活动状态查询
|
|
41
41
|
- name: Track
|
|
42
|
-
description:
|
|
42
|
+
description: 埋点追踪 - 用户行为追踪
|
|
43
43
|
- name: Tenant
|
|
44
|
-
description: 租户解析
|
|
44
|
+
description: 租户解析 - 多租户解析
|
|
45
45
|
- name: Health
|
|
46
|
-
description: 健康检查
|
|
46
|
+
description: 健康检查 - 服务健康状态
|
|
47
47
|
|
|
48
48
|
paths:
|
|
49
|
-
#
|
|
49
|
+
# 页面解析
|
|
50
50
|
/page/resolve:
|
|
51
51
|
$ref: './paths/pages.yaml#/resolve'
|
|
52
|
+
/page/manifest:
|
|
53
|
+
$ref: './paths/pages.yaml#/manifest'
|
|
54
|
+
/page/config:
|
|
55
|
+
$ref: './paths/pages.yaml#/config'
|
|
52
56
|
|
|
53
57
|
# Action Gateway(统一入口)
|
|
54
58
|
/actions/execute:
|
|
@@ -77,6 +81,12 @@ paths:
|
|
|
77
81
|
$ref: './paths/activities.yaml#/claimRecords'
|
|
78
82
|
/activities/{activityId}/lottery:
|
|
79
83
|
$ref: './paths/activities.yaml#/lotteryRecords'
|
|
84
|
+
/activities/{activityId}/status:
|
|
85
|
+
$ref: './paths/activities.yaml#/activityStatus'
|
|
86
|
+
/activities/{activityId}/claim/status:
|
|
87
|
+
$ref: './paths/activities.yaml#/claimStatus'
|
|
88
|
+
/activities/{activityId}/signin/status:
|
|
89
|
+
$ref: './paths/activities.yaml#/signinStatus'
|
|
80
90
|
|
|
81
91
|
# 埋点上报
|
|
82
92
|
/track:
|
|
@@ -93,10 +103,10 @@ paths:
|
|
|
93
103
|
# 健康检查
|
|
94
104
|
/health:
|
|
95
105
|
$ref: './paths/health.yaml#/health'
|
|
96
|
-
/health/ready:
|
|
97
|
-
$ref: './paths/health.yaml#/ready'
|
|
98
106
|
/health/live:
|
|
99
107
|
$ref: './paths/health.yaml#/live'
|
|
108
|
+
/health/ready:
|
|
109
|
+
$ref: './paths/health.yaml#/ready'
|
|
100
110
|
|
|
101
111
|
components:
|
|
102
112
|
schemas:
|
|
@@ -108,7 +118,7 @@ components:
|
|
|
108
118
|
type: http
|
|
109
119
|
scheme: bearer
|
|
110
120
|
bearerFormat: JWT
|
|
111
|
-
description: JWT
|
|
121
|
+
description: 请输入 JWT 访问令牌
|
|
112
122
|
ApiKey:
|
|
113
123
|
type: apiKey
|
|
114
124
|
in: header
|
|
@@ -4,9 +4,9 @@ execute:
|
|
|
4
4
|
post:
|
|
5
5
|
tags: [Actions]
|
|
6
6
|
operationId: executeAction
|
|
7
|
-
summary:
|
|
7
|
+
summary: 执行动作
|
|
8
8
|
description: |
|
|
9
|
-
|
|
9
|
+
统一的动作执行入口,支持领取、签到等业务动作。
|
|
10
10
|
|
|
11
11
|
执行流程(Pipeline):
|
|
12
12
|
1. Auth(登录态/票据/签名)
|
|
@@ -15,36 +15,6 @@ execute:
|
|
|
15
15
|
4. Execute(执行器:Claim/Signin/Lottery...)
|
|
16
16
|
5. Audit(审计落库 + outbox)
|
|
17
17
|
6. Normalize(统一错误码/返回)
|
|
18
|
-
|
|
19
|
-
支持的动作类型:
|
|
20
|
-
- claim: 领取
|
|
21
|
-
- signin: 签到
|
|
22
|
-
- lottery: 抽奖
|
|
23
|
-
- reserve: 预约
|
|
24
|
-
- bind: 绑定
|
|
25
|
-
- task_complete: 任务完成
|
|
26
|
-
- vote: 投票
|
|
27
|
-
- share: 分享
|
|
28
|
-
- form_submit: 表单提交
|
|
29
|
-
- navigate: 页面跳转(内置)
|
|
30
|
-
- setState: 状态更新(内置)
|
|
31
|
-
- showToast: 提示消息(内置)
|
|
32
|
-
- custom: 自定义动作
|
|
33
|
-
parameters:
|
|
34
|
-
- name: Idempotency-Key
|
|
35
|
-
in: header
|
|
36
|
-
required: false
|
|
37
|
-
schema:
|
|
38
|
-
type: string
|
|
39
|
-
minLength: 16
|
|
40
|
-
maxLength: 128
|
|
41
|
-
description: 幂等键(与 body.idempotencyKey 二选一,推荐 header 传递)
|
|
42
|
-
- name: X-Trace-Id
|
|
43
|
-
in: header
|
|
44
|
-
required: false
|
|
45
|
-
schema:
|
|
46
|
-
type: string
|
|
47
|
-
description: 链路追踪 ID(OTel,全链路透传)
|
|
48
18
|
requestBody:
|
|
49
19
|
required: true
|
|
50
20
|
content:
|
|
@@ -53,7 +23,7 @@ execute:
|
|
|
53
23
|
$ref: '../components/schemas/_index.yaml#/ExecuteActionRequest'
|
|
54
24
|
responses:
|
|
55
25
|
'200':
|
|
56
|
-
description:
|
|
26
|
+
description: 执行结果
|
|
57
27
|
content:
|
|
58
28
|
application/json:
|
|
59
29
|
schema:
|
|
@@ -62,29 +32,19 @@ execute:
|
|
|
62
32
|
$ref: '../components/responses/_index.yaml#/BadRequest'
|
|
63
33
|
'401':
|
|
64
34
|
$ref: '../components/responses/_index.yaml#/Unauthorized'
|
|
65
|
-
'403':
|
|
66
|
-
$ref: '../components/responses/_index.yaml#/Forbidden'
|
|
67
|
-
'409':
|
|
68
|
-
description: 幂等冲突(重复请求)
|
|
69
|
-
content:
|
|
70
|
-
application/json:
|
|
71
|
-
schema:
|
|
72
|
-
$ref: '../components/schemas/_index.yaml#/IdempotencyConflictResponse'
|
|
73
|
-
'422':
|
|
74
|
-
$ref: '../components/responses/_index.yaml#/UnprocessableEntity'
|
|
75
35
|
'429':
|
|
76
36
|
$ref: '../components/responses/_index.yaml#/TooManyRequests'
|
|
77
37
|
'500':
|
|
78
38
|
$ref: '../components/responses/_index.yaml#/InternalError'
|
|
39
|
+
security:
|
|
40
|
+
- BearerAuth: []
|
|
79
41
|
|
|
80
42
|
validate:
|
|
81
43
|
post:
|
|
82
44
|
tags: [Actions]
|
|
83
45
|
operationId: validateActionParams
|
|
84
46
|
summary: 验证动作参数
|
|
85
|
-
description:
|
|
86
|
-
验证动作参数是否符合 Schema 定义(不执行动作)。
|
|
87
|
-
用于前端表单提交前的预校验。
|
|
47
|
+
description: 验证参数是否符合 Schema 定义,不执行动作
|
|
88
48
|
requestBody:
|
|
89
49
|
required: true
|
|
90
50
|
content:
|
|
@@ -100,26 +60,31 @@ validate:
|
|
|
100
60
|
$ref: '../components/schemas/_index.yaml#/ValidateActionResponse'
|
|
101
61
|
'400':
|
|
102
62
|
$ref: '../components/responses/_index.yaml#/BadRequest'
|
|
63
|
+
security:
|
|
64
|
+
- BearerAuth: []
|
|
103
65
|
|
|
104
66
|
definitions:
|
|
105
67
|
get:
|
|
106
68
|
tags: [Actions]
|
|
107
69
|
operationId: getActionDefinition
|
|
108
70
|
summary: 获取动作定义
|
|
109
|
-
description:
|
|
71
|
+
description: 按版本 ID 获取动作定义详情
|
|
110
72
|
parameters:
|
|
111
73
|
- name: actionDefinitionVersionId
|
|
112
74
|
in: query
|
|
113
75
|
required: true
|
|
76
|
+
description: 动作定义版本 ID
|
|
114
77
|
schema:
|
|
115
78
|
type: string
|
|
116
|
-
|
|
79
|
+
example: 202401efgh87654321
|
|
117
80
|
responses:
|
|
118
81
|
'200':
|
|
119
|
-
description:
|
|
82
|
+
description: 动作定义版本信息
|
|
120
83
|
content:
|
|
121
84
|
application/json:
|
|
122
85
|
schema:
|
|
123
|
-
$ref: '../components/schemas/_index.yaml#/
|
|
86
|
+
$ref: '../components/schemas/_index.yaml#/ActionDefinitionVersionResponse'
|
|
124
87
|
'404':
|
|
125
88
|
$ref: '../components/responses/_index.yaml#/NotFound'
|
|
89
|
+
security:
|
|
90
|
+
- BearerAuth: []
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
# Activities 活动状态 API(User 端)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
activityInfo:
|
|
4
4
|
get:
|
|
5
|
-
tags:
|
|
6
|
-
|
|
7
|
-
summary:
|
|
8
|
-
|
|
9
|
-
description: |
|
|
10
|
-
查询用户在指定活动中的参与状态。
|
|
11
|
-
|
|
12
|
-
返回内容包括:
|
|
13
|
-
- 是否可参与
|
|
14
|
-
- 剩余次数
|
|
15
|
-
- 类型特定状态(领取/签到/抽奖等)
|
|
5
|
+
tags: [Activities]
|
|
6
|
+
operationId: getActivityInfo
|
|
7
|
+
summary: 获取活动信息(公开)
|
|
8
|
+
description: 获取活动的公开信息,不需要登录
|
|
16
9
|
parameters:
|
|
17
10
|
- name: activityId
|
|
18
11
|
in: path
|
|
@@ -25,99 +18,77 @@ activityState:
|
|
|
25
18
|
content:
|
|
26
19
|
application/json:
|
|
27
20
|
schema:
|
|
28
|
-
|
|
29
|
-
properties:
|
|
30
|
-
success:
|
|
31
|
-
type: boolean
|
|
32
|
-
data:
|
|
33
|
-
$ref: '../components/schemas/_index.yaml#/UserActivityState'
|
|
21
|
+
$ref: '../components/schemas/_index.yaml#/ActivityInfoResponse'
|
|
34
22
|
'404':
|
|
35
23
|
$ref: '../components/responses/_index.yaml#/NotFound'
|
|
36
|
-
security:
|
|
37
|
-
- BearerAuth: []
|
|
24
|
+
security: []
|
|
38
25
|
|
|
39
|
-
|
|
26
|
+
activityState:
|
|
40
27
|
get:
|
|
41
|
-
tags:
|
|
42
|
-
|
|
43
|
-
summary:
|
|
44
|
-
|
|
45
|
-
description: |
|
|
46
|
-
获取活动的公开信息,不需要登录。
|
|
47
|
-
|
|
48
|
-
返回内容包括:
|
|
49
|
-
- 活动基本信息
|
|
50
|
-
- 时间范围
|
|
51
|
-
- 奖品列表(脱敏)
|
|
28
|
+
tags: [Activities]
|
|
29
|
+
operationId: getActivityState
|
|
30
|
+
summary: 获取用户活动状态
|
|
31
|
+
description: 查询用户在指定活动中的参与状态
|
|
52
32
|
parameters:
|
|
53
33
|
- name: activityId
|
|
54
34
|
in: path
|
|
55
35
|
required: true
|
|
56
36
|
schema:
|
|
57
37
|
type: string
|
|
38
|
+
- name: uid
|
|
39
|
+
in: query
|
|
40
|
+
required: false
|
|
41
|
+
description: 用户 UID
|
|
42
|
+
schema:
|
|
43
|
+
type: string
|
|
58
44
|
responses:
|
|
59
45
|
'200':
|
|
60
46
|
description: 成功
|
|
61
47
|
content:
|
|
62
48
|
application/json:
|
|
63
49
|
schema:
|
|
64
|
-
|
|
65
|
-
properties:
|
|
66
|
-
success:
|
|
67
|
-
type: boolean
|
|
68
|
-
data:
|
|
69
|
-
$ref: '../components/schemas/_index.yaml#/PublicActivityInfo'
|
|
50
|
+
$ref: '../components/schemas/_index.yaml#/ActivityStatusResponse'
|
|
70
51
|
'404':
|
|
71
52
|
$ref: '../components/responses/_index.yaml#/NotFound'
|
|
72
|
-
security: []
|
|
73
53
|
|
|
74
54
|
signinCalendar:
|
|
75
55
|
get:
|
|
76
|
-
tags:
|
|
77
|
-
- Activities
|
|
78
|
-
summary: 获取签到日历
|
|
56
|
+
tags: [Activities]
|
|
79
57
|
operationId: getSigninCalendar
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
返回内容包括:
|
|
84
|
-
- 当前周期的签到记录
|
|
85
|
-
- 连续签到天数
|
|
86
|
-
- 累计签到天数
|
|
87
|
-
- 奖励进度
|
|
58
|
+
summary: 获取签到日历
|
|
59
|
+
description: 获取用户的签到日历数据
|
|
88
60
|
parameters:
|
|
89
61
|
- name: activityId
|
|
90
62
|
in: path
|
|
91
63
|
required: true
|
|
92
64
|
schema:
|
|
93
65
|
type: string
|
|
66
|
+
- name: uid
|
|
67
|
+
in: query
|
|
68
|
+
required: true
|
|
69
|
+
description: 用户 UID
|
|
70
|
+
schema:
|
|
71
|
+
type: string
|
|
94
72
|
- name: month
|
|
95
73
|
in: query
|
|
96
|
-
|
|
74
|
+
required: false
|
|
75
|
+
description: 月份(YYYY-MM)
|
|
97
76
|
schema:
|
|
98
77
|
type: string
|
|
99
|
-
|
|
78
|
+
example: '2024-01'
|
|
100
79
|
responses:
|
|
101
80
|
'200':
|
|
102
81
|
description: 成功
|
|
103
82
|
content:
|
|
104
83
|
application/json:
|
|
105
84
|
schema:
|
|
106
|
-
|
|
107
|
-
properties:
|
|
108
|
-
success:
|
|
109
|
-
type: boolean
|
|
110
|
-
data:
|
|
111
|
-
$ref: '../components/schemas/_index.yaml#/SigninCalendar'
|
|
112
|
-
security:
|
|
113
|
-
- BearerAuth: []
|
|
85
|
+
$ref: '../components/schemas/_index.yaml#/SigninCalendarResponse'
|
|
114
86
|
|
|
115
87
|
claimRecords:
|
|
116
88
|
get:
|
|
117
|
-
tags:
|
|
118
|
-
- Activities
|
|
119
|
-
summary: 获取领取记录
|
|
89
|
+
tags: [Activities]
|
|
120
90
|
operationId: getClaimRecords
|
|
91
|
+
summary: 获取领取记录
|
|
121
92
|
description: 获取用户在指定活动中的领取记录
|
|
122
93
|
parameters:
|
|
123
94
|
- name: activityId
|
|
@@ -125,13 +96,23 @@ claimRecords:
|
|
|
125
96
|
required: true
|
|
126
97
|
schema:
|
|
127
98
|
type: string
|
|
99
|
+
- name: pageToken
|
|
100
|
+
in: query
|
|
101
|
+
required: false
|
|
102
|
+
description: 分页游标
|
|
103
|
+
schema:
|
|
104
|
+
type: string
|
|
128
105
|
- name: pageSize
|
|
129
106
|
in: query
|
|
107
|
+
required: false
|
|
108
|
+
description: 每页条数
|
|
130
109
|
schema:
|
|
131
|
-
type:
|
|
132
|
-
|
|
133
|
-
- name:
|
|
110
|
+
type: number
|
|
111
|
+
example: 20
|
|
112
|
+
- name: uid
|
|
134
113
|
in: query
|
|
114
|
+
required: false
|
|
115
|
+
description: 用户 UID,不传则返回空
|
|
135
116
|
schema:
|
|
136
117
|
type: string
|
|
137
118
|
responses:
|
|
@@ -140,25 +121,13 @@ claimRecords:
|
|
|
140
121
|
content:
|
|
141
122
|
application/json:
|
|
142
123
|
schema:
|
|
143
|
-
|
|
144
|
-
properties:
|
|
145
|
-
success:
|
|
146
|
-
type: boolean
|
|
147
|
-
data:
|
|
148
|
-
type: array
|
|
149
|
-
items:
|
|
150
|
-
$ref: '../components/schemas/_index.yaml#/ClaimRecordInfo'
|
|
151
|
-
meta:
|
|
152
|
-
$ref: '../components/schemas/_index.yaml#/PaginationMeta'
|
|
153
|
-
security:
|
|
154
|
-
- BearerAuth: []
|
|
124
|
+
$ref: '../components/schemas/_index.yaml#/PaginatedRecordsResponse'
|
|
155
125
|
|
|
156
126
|
lotteryRecords:
|
|
157
127
|
get:
|
|
158
|
-
tags:
|
|
159
|
-
- Activities
|
|
160
|
-
summary: 获取抽奖记录
|
|
128
|
+
tags: [Activities]
|
|
161
129
|
operationId: getLotteryRecords
|
|
130
|
+
summary: 获取抽奖记录
|
|
162
131
|
description: 获取用户在指定活动中的抽奖记录
|
|
163
132
|
parameters:
|
|
164
133
|
- name: activityId
|
|
@@ -168,11 +137,91 @@ lotteryRecords:
|
|
|
168
137
|
type: string
|
|
169
138
|
- name: pageSize
|
|
170
139
|
in: query
|
|
140
|
+
required: false
|
|
141
|
+
description: 每页条数
|
|
171
142
|
schema:
|
|
172
|
-
type:
|
|
143
|
+
type: number
|
|
173
144
|
default: 20
|
|
145
|
+
example: 20
|
|
174
146
|
- name: pageToken
|
|
175
147
|
in: query
|
|
148
|
+
required: false
|
|
149
|
+
description: 分页游标
|
|
150
|
+
schema:
|
|
151
|
+
type: string
|
|
152
|
+
responses:
|
|
153
|
+
'200':
|
|
154
|
+
description: 成功
|
|
155
|
+
content:
|
|
156
|
+
application/json:
|
|
157
|
+
schema:
|
|
158
|
+
$ref: '../components/schemas/_index.yaml#/PaginatedRecordsResponse'
|
|
159
|
+
|
|
160
|
+
activityStatus:
|
|
161
|
+
get:
|
|
162
|
+
tags: [Activities]
|
|
163
|
+
operationId: getActivityStatus
|
|
164
|
+
summary: 获取活动状态(兼容)
|
|
165
|
+
description: 获取活动的当前状态信息
|
|
166
|
+
parameters:
|
|
167
|
+
- name: activityId
|
|
168
|
+
in: path
|
|
169
|
+
required: true
|
|
170
|
+
schema:
|
|
171
|
+
type: string
|
|
172
|
+
responses:
|
|
173
|
+
'200':
|
|
174
|
+
description: 成功
|
|
175
|
+
content:
|
|
176
|
+
application/json:
|
|
177
|
+
schema:
|
|
178
|
+
$ref: '../components/schemas/_index.yaml#/ActivityStatusResponse'
|
|
179
|
+
'404':
|
|
180
|
+
$ref: '../components/responses/_index.yaml#/NotFound'
|
|
181
|
+
security: []
|
|
182
|
+
|
|
183
|
+
claimStatus:
|
|
184
|
+
get:
|
|
185
|
+
tags: [Activities]
|
|
186
|
+
operationId: getClaimStatus
|
|
187
|
+
summary: 获取领取状态
|
|
188
|
+
description: 获取用户在指定活动中的领取状态
|
|
189
|
+
parameters:
|
|
190
|
+
- name: activityId
|
|
191
|
+
in: path
|
|
192
|
+
required: true
|
|
193
|
+
schema:
|
|
194
|
+
type: string
|
|
195
|
+
- name: uid
|
|
196
|
+
in: query
|
|
197
|
+
required: true
|
|
198
|
+
description: 用户 UID
|
|
199
|
+
schema:
|
|
200
|
+
type: string
|
|
201
|
+
responses:
|
|
202
|
+
'200':
|
|
203
|
+
description: 成功
|
|
204
|
+
content:
|
|
205
|
+
application/json:
|
|
206
|
+
schema:
|
|
207
|
+
$ref: '../components/schemas/_index.yaml#/ClaimStatusResponse'
|
|
208
|
+
|
|
209
|
+
signinStatus:
|
|
210
|
+
get:
|
|
211
|
+
tags: [Activities]
|
|
212
|
+
operationId: getSigninStatus
|
|
213
|
+
summary: 获取签到状态
|
|
214
|
+
description: 获取用户在指定活动中的签到状态
|
|
215
|
+
parameters:
|
|
216
|
+
- name: activityId
|
|
217
|
+
in: path
|
|
218
|
+
required: true
|
|
219
|
+
schema:
|
|
220
|
+
type: string
|
|
221
|
+
- name: uid
|
|
222
|
+
in: query
|
|
223
|
+
required: true
|
|
224
|
+
description: 用户 UID
|
|
176
225
|
schema:
|
|
177
226
|
type: string
|
|
178
227
|
responses:
|
|
@@ -181,15 +230,4 @@ lotteryRecords:
|
|
|
181
230
|
content:
|
|
182
231
|
application/json:
|
|
183
232
|
schema:
|
|
184
|
-
|
|
185
|
-
properties:
|
|
186
|
-
success:
|
|
187
|
-
type: boolean
|
|
188
|
-
data:
|
|
189
|
-
type: array
|
|
190
|
-
items:
|
|
191
|
-
$ref: '../components/schemas/_index.yaml#/LotteryRecordInfo'
|
|
192
|
-
meta:
|
|
193
|
-
$ref: '../components/schemas/_index.yaml#/PaginationMeta'
|
|
194
|
-
security:
|
|
195
|
-
- BearerAuth: []
|
|
233
|
+
$ref: '../components/schemas/_index.yaml#/SigninStatusResponse'
|
|
@@ -2,87 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
health:
|
|
4
4
|
get:
|
|
5
|
-
tags:
|
|
6
|
-
- Health
|
|
7
|
-
summary: 健康检查
|
|
5
|
+
tags: [Health]
|
|
8
6
|
operationId: healthCheck
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
返回:
|
|
13
|
-
- 服务状态(healthy/degraded/unhealthy)
|
|
14
|
-
- 版本信息
|
|
15
|
-
- 运行时间
|
|
16
|
-
- 依赖服务状态
|
|
7
|
+
summary: 健康检查
|
|
8
|
+
description: 综合健康检查,返回服务状态和时间戳
|
|
17
9
|
responses:
|
|
18
10
|
'200':
|
|
19
|
-
description:
|
|
20
|
-
content:
|
|
21
|
-
application/json:
|
|
22
|
-
schema:
|
|
23
|
-
$ref: '../components/schemas/_index.yaml#/HealthResponse'
|
|
24
|
-
'503':
|
|
25
|
-
description: 服务不健康
|
|
11
|
+
description: 健康
|
|
26
12
|
content:
|
|
27
13
|
application/json:
|
|
28
14
|
schema:
|
|
29
|
-
$ref: '../components/schemas/_index.yaml#/
|
|
15
|
+
$ref: '../components/schemas/_index.yaml#/HealthCheckResponse'
|
|
30
16
|
security: []
|
|
31
17
|
|
|
32
|
-
|
|
18
|
+
live:
|
|
33
19
|
get:
|
|
34
|
-
tags:
|
|
35
|
-
|
|
36
|
-
summary:
|
|
37
|
-
|
|
38
|
-
description: |
|
|
39
|
-
Kubernetes readiness probe。
|
|
40
|
-
检查服务是否准备好接收流量。
|
|
20
|
+
tags: [Health]
|
|
21
|
+
operationId: livenessCheck
|
|
22
|
+
summary: 存活检查
|
|
23
|
+
description: Kubernetes liveness probe
|
|
41
24
|
responses:
|
|
42
25
|
'200':
|
|
43
|
-
description:
|
|
26
|
+
description: 存活
|
|
44
27
|
content:
|
|
45
28
|
application/json:
|
|
46
29
|
schema:
|
|
47
|
-
|
|
48
|
-
properties:
|
|
49
|
-
ready:
|
|
50
|
-
type: boolean
|
|
51
|
-
example: true
|
|
52
|
-
'503':
|
|
53
|
-
description: 服务未就绪
|
|
54
|
-
content:
|
|
55
|
-
application/json:
|
|
56
|
-
schema:
|
|
57
|
-
type: object
|
|
58
|
-
properties:
|
|
59
|
-
ready:
|
|
60
|
-
type: boolean
|
|
61
|
-
example: false
|
|
62
|
-
reason:
|
|
63
|
-
type: string
|
|
30
|
+
$ref: '../components/schemas/_index.yaml#/LivenessResponse'
|
|
64
31
|
security: []
|
|
65
32
|
|
|
66
|
-
|
|
33
|
+
ready:
|
|
67
34
|
get:
|
|
68
|
-
tags:
|
|
69
|
-
|
|
70
|
-
summary:
|
|
71
|
-
|
|
72
|
-
description: |
|
|
73
|
-
Kubernetes liveness probe。
|
|
74
|
-
检查服务是否存活。
|
|
35
|
+
tags: [Health]
|
|
36
|
+
operationId: readinessCheck
|
|
37
|
+
summary: 就绪检查
|
|
38
|
+
description: Kubernetes readiness probe
|
|
75
39
|
responses:
|
|
76
40
|
'200':
|
|
77
|
-
description:
|
|
41
|
+
description: 就绪
|
|
78
42
|
content:
|
|
79
43
|
application/json:
|
|
80
44
|
schema:
|
|
81
|
-
|
|
82
|
-
properties:
|
|
83
|
-
alive:
|
|
84
|
-
type: boolean
|
|
85
|
-
example: true
|
|
86
|
-
'503':
|
|
87
|
-
description: 服务不存活
|
|
45
|
+
$ref: '../components/schemas/_index.yaml#/ReadinessResponse'
|
|
88
46
|
security: []
|