|
1 | | -// Code generated by swaggo/swag. DO NOT EDIT. |
2 | | - |
| 1 | +// Package docs Code generated by swaggo/swag. DO NOT EDIT |
3 | 2 | package docs |
4 | 3 |
|
5 | 4 | import "github.com/swaggo/swag" |
@@ -321,6 +320,50 @@ const docTemplate = `{ |
321 | 320 | } |
322 | 321 | } |
323 | 322 | } |
| 323 | + }, |
| 324 | + "patch": { |
| 325 | + "description": "reset password, reset jwt credential", |
| 326 | + "consumes": [ |
| 327 | + "application/json" |
| 328 | + ], |
| 329 | + "produces": [ |
| 330 | + "application/json" |
| 331 | + ], |
| 332 | + "tags": [ |
| 333 | + "account" |
| 334 | + ], |
| 335 | + "summary": "reset password", |
| 336 | + "parameters": [ |
| 337 | + { |
| 338 | + "description": "json", |
| 339 | + "name": "json", |
| 340 | + "in": "body", |
| 341 | + "required": true, |
| 342 | + "schema": { |
| 343 | + "$ref": "#/definitions/apis.RegisterRequest" |
| 344 | + } |
| 345 | + } |
| 346 | + ], |
| 347 | + "responses": { |
| 348 | + "200": { |
| 349 | + "description": "OK", |
| 350 | + "schema": { |
| 351 | + "$ref": "#/definitions/apis.TokenResponse" |
| 352 | + } |
| 353 | + }, |
| 354 | + "400": { |
| 355 | + "description": "验证码错误", |
| 356 | + "schema": { |
| 357 | + "$ref": "#/definitions/common.MessageResponse" |
| 358 | + } |
| 359 | + }, |
| 360 | + "500": { |
| 361 | + "description": "Internal Server Error", |
| 362 | + "schema": { |
| 363 | + "$ref": "#/definitions/common.MessageResponse" |
| 364 | + } |
| 365 | + } |
| 366 | + } |
324 | 367 | } |
325 | 368 | }, |
326 | 369 | "/register/questions": { |
@@ -710,6 +753,29 @@ const docTemplate = `{ |
710 | 753 | } |
711 | 754 | } |
712 | 755 | } |
| 756 | + }, |
| 757 | + "patch": { |
| 758 | + "tags": [ |
| 759 | + "shamir" |
| 760 | + ], |
| 761 | + "summary": "trigger for refresh uploaded shares", |
| 762 | + "responses": { |
| 763 | + "204": { |
| 764 | + "description": "No Content" |
| 765 | + }, |
| 766 | + "403": { |
| 767 | + "description": "非管理员", |
| 768 | + "schema": { |
| 769 | + "$ref": "#/definitions/common.MessageResponse" |
| 770 | + } |
| 771 | + }, |
| 772 | + "500": { |
| 773 | + "description": "Internal Server Error", |
| 774 | + "schema": { |
| 775 | + "$ref": "#/definitions/common.MessageResponse" |
| 776 | + } |
| 777 | + } |
| 778 | + } |
713 | 779 | } |
714 | 780 | }, |
715 | 781 | "/shamir/shares": { |
@@ -1173,6 +1239,47 @@ const docTemplate = `{ |
1173 | 1239 | } |
1174 | 1240 | } |
1175 | 1241 | }, |
| 1242 | + "/users/{user_id}/_modify": { |
| 1243 | + "patch": { |
| 1244 | + "description": "modify user, owner or admin", |
| 1245 | + "produces": [ |
| 1246 | + "application/json" |
| 1247 | + ], |
| 1248 | + "tags": [ |
| 1249 | + "user" |
| 1250 | + ], |
| 1251 | + "summary": "modify user", |
| 1252 | + "parameters": [ |
| 1253 | + { |
| 1254 | + "type": "integer", |
| 1255 | + "description": "UserID", |
| 1256 | + "name": "user_id", |
| 1257 | + "in": "path", |
| 1258 | + "required": true |
| 1259 | + } |
| 1260 | + ], |
| 1261 | + "responses": { |
| 1262 | + "201": { |
| 1263 | + "description": "Created", |
| 1264 | + "schema": { |
| 1265 | + "$ref": "#/definitions/models.User" |
| 1266 | + } |
| 1267 | + }, |
| 1268 | + "403": { |
| 1269 | + "description": "不是管理员", |
| 1270 | + "schema": { |
| 1271 | + "$ref": "#/definitions/common.MessageResponse" |
| 1272 | + } |
| 1273 | + }, |
| 1274 | + "500": { |
| 1275 | + "description": "Internal Server Error", |
| 1276 | + "schema": { |
| 1277 | + "$ref": "#/definitions/common.MessageResponse" |
| 1278 | + } |
| 1279 | + } |
| 1280 | + } |
| 1281 | + } |
| 1282 | + }, |
1176 | 1283 | "/verify/apikey": { |
1177 | 1284 | "get": { |
1178 | 1285 | "description": "verify with email in query, return verification code", |
@@ -1442,6 +1549,9 @@ const docTemplate = `{ |
1442 | 1549 | }, |
1443 | 1550 | "apis.LoginRequest": { |
1444 | 1551 | "type": "object", |
| 1552 | + "required": [ |
| 1553 | + "password" |
| 1554 | + ], |
1445 | 1555 | "properties": { |
1446 | 1556 | "email": { |
1447 | 1557 | "description": "email in email blacklist", |
@@ -1475,11 +1585,11 @@ const docTemplate = `{ |
1475 | 1585 | "type": "string" |
1476 | 1586 | }, |
1477 | 1587 | "answer": { |
1478 | | - "description": "答案描述,单选、判断、多选\n如果是单选题,则只有一个答案\n如果是多选题,则有一个或多个答案\n如果是判断题,则只有一个答案,且只能是 true 或者 false", |
| 1588 | + "description": "答案索引,单选、判断、多选,从 0 开始", |
1479 | 1589 | "type": "array", |
1480 | 1590 | "minItems": 1, |
1481 | 1591 | "items": { |
1482 | | - "type": "string" |
| 1592 | + "type": "integer" |
1483 | 1593 | } |
1484 | 1594 | }, |
1485 | 1595 | "group": { |
@@ -1587,6 +1697,9 @@ const docTemplate = `{ |
1587 | 1697 | }, |
1588 | 1698 | "apis.RegisterRequest": { |
1589 | 1699 | "type": "object", |
| 1700 | + "required": [ |
| 1701 | + "password" |
| 1702 | + ], |
1590 | 1703 | "properties": { |
1591 | 1704 | "email": { |
1592 | 1705 | "description": "email in email blacklist", |
@@ -1798,12 +1911,19 @@ const docTemplate = `{ |
1798 | 1911 | "field": { |
1799 | 1912 | "type": "string" |
1800 | 1913 | }, |
1801 | | - "tag": { |
| 1914 | + "message": { |
1802 | 1915 | "type": "string" |
1803 | 1916 | }, |
1804 | | - "value": { |
| 1917 | + "param": { |
1805 | 1918 | "type": "string" |
1806 | | - } |
| 1919 | + }, |
| 1920 | + "struct_field": { |
| 1921 | + "type": "string" |
| 1922 | + }, |
| 1923 | + "tag": { |
| 1924 | + "type": "string" |
| 1925 | + }, |
| 1926 | + "value": {} |
1807 | 1927 | } |
1808 | 1928 | }, |
1809 | 1929 | "common.HttpError": { |
|
0 commit comments