@@ -200,7 +200,7 @@ const docTemplate = `{
200
200
"application/json"
201
201
],
202
202
"tags": [
203
- "Record "
203
+ "ChatRecord "
204
204
],
205
205
"summary": "list records by chat ID",
206
206
"parameters": [
@@ -260,7 +260,7 @@ const docTemplate = `{
260
260
"application/json"
261
261
],
262
262
"tags": [
263
- "Record "
263
+ "ChatRecord "
264
264
],
265
265
"summary": "list my records",
266
266
"parameters": [
@@ -297,6 +297,53 @@ const docTemplate = `{
297
297
}
298
298
}
299
299
},
300
+ "/api/drivers": {
301
+ "get": {
302
+ "description": "list my driver exams",
303
+ "consumes": [
304
+ "application/json"
305
+ ],
306
+ "produces": [
307
+ "application/json"
308
+ ],
309
+ "tags": [
310
+ "Driver"
311
+ ],
312
+ "summary": "list my driver exams",
313
+ "parameters": [
314
+ {
315
+ "type": "string",
316
+ "description": "Bearer和token空格拼接",
317
+ "name": "Authorization",
318
+ "in": "header",
319
+ "required": true
320
+ }
321
+ ],
322
+ "responses": {
323
+ "200": {
324
+ "description": "OK",
325
+ "schema": {
326
+ "type": "array",
327
+ "items": {
328
+ "$ref": "#/definitions/models.Exam"
329
+ }
330
+ }
331
+ },
332
+ "400": {
333
+ "description": "Bad Request",
334
+ "schema": {
335
+ "$ref": "#/definitions/common.HttpError"
336
+ }
337
+ },
338
+ "401": {
339
+ "description": "Unauthorized",
340
+ "schema": {
341
+ "$ref": "#/definitions/common.HttpError"
342
+ }
343
+ }
344
+ }
345
+ }
346
+ },
300
347
"/api/drivers/punishments/": {
301
348
"get": {
302
349
"description": "List driver punishments",
@@ -1106,7 +1153,7 @@ const docTemplate = `{
1106
1153
"application/json"
1107
1154
],
1108
1155
"tags": [
1109
- "Record "
1156
+ "ChatRecord "
1110
1157
],
1111
1158
"summary": "list my records",
1112
1159
"parameters": [
@@ -1151,7 +1198,7 @@ const docTemplate = `{
1151
1198
"application/json"
1152
1199
],
1153
1200
"tags": [
1154
- "Record "
1201
+ "ChatRecord "
1155
1202
],
1156
1203
"summary": "Add records",
1157
1204
"parameters": [
@@ -1596,6 +1643,9 @@ const docTemplate = `{
1596
1643
"properties": {
1597
1644
"id": {
1598
1645
"type": "integer"
1646
+ },
1647
+ "normal": {
1648
+ "type": "boolean"
1599
1649
}
1600
1650
}
1601
1651
},
@@ -1756,6 +1806,9 @@ const docTemplate = `{
1756
1806
"is_public": {
1757
1807
"type": "boolean"
1758
1808
},
1809
+ "normal": {
1810
+ "type": "boolean"
1811
+ },
1759
1812
"score": {
1760
1813
"type": "integer"
1761
1814
},
@@ -1886,6 +1939,8 @@ const docTemplate = `{
1886
1939
"time.Duration": {
1887
1940
"type": "integer",
1888
1941
"enum": [
1942
+ -9223372036854775808,
1943
+ 9223372036854775807,
1889
1944
1,
1890
1945
1000,
1891
1946
1000000,
@@ -1894,6 +1949,8 @@ const docTemplate = `{
1894
1949
3600000000000
1895
1950
],
1896
1951
"x-enum-varnames": [
1952
+ "minDuration",
1953
+ "maxDuration",
1897
1954
"Nanosecond",
1898
1955
"Microsecond",
1899
1956
"Millisecond",
0 commit comments