lejianwen 1 год назад
Родитель
Сommit
cd74cd19ef

+ 21 - 7
docs/admin/admin_docs.go

@@ -3569,7 +3569,7 @@ const docTemplateadmin = `{
3569 3569
                         "token": []
3570 3570
                     }
3571 3571
                 ],
3572
-                "description": "登录凭证删除",
3572
+                "description": "登录凭证批量删除",
3573 3573
                 "consumes": [
3574 3574
                     "application/json"
3575 3575
                 ],
@@ -3579,7 +3579,7 @@ const docTemplateadmin = `{
3579 3579
                 "tags": [
3580 3580
                     "登录凭证"
3581 3581
                 ],
3582
-                "summary": "登录凭证删除",
3582
+                "summary": "登录凭证批量删除",
3583 3583
                 "parameters": [
3584 3584
                     {
3585 3585
                         "description": "登录凭证信息",
@@ -3587,7 +3587,7 @@ const docTemplateadmin = `{
3587 3587
                         "in": "body",
3588 3588
                         "required": true,
3589 3589
                         "schema": {
3590
-                            "$ref": "#/definitions/model.UserToken"
3590
+                            "$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
3591 3591
                         }
3592 3592
                     }
3593 3593
                 ],
@@ -3798,12 +3798,12 @@ const docTemplateadmin = `{
3798 3798
             "properties": {
3799 3799
                 "new_password": {
3800 3800
                     "type": "string",
3801
-                    "maxLength": 20,
3801
+                    "maxLength": 32,
3802 3802
                     "minLength": 4
3803 3803
                 },
3804 3804
                 "old_password": {
3805 3805
                     "type": "string",
3806
-                    "maxLength": 20,
3806
+                    "maxLength": 32,
3807 3807
                     "minLength": 4
3808 3808
                 }
3809 3809
             }
@@ -4038,7 +4038,7 @@ const docTemplateadmin = `{
4038 4038
                 },
4039 4039
                 "username": {
4040 4040
                     "type": "string",
4041
-                    "maxLength": 10,
4041
+                    "maxLength": 32,
4042 4042
                     "minLength": 2
4043 4043
                 }
4044 4044
             }
@@ -4066,11 +4066,25 @@ const docTemplateadmin = `{
4066 4066
                 },
4067 4067
                 "password": {
4068 4068
                     "type": "string",
4069
-                    "maxLength": 20,
4069
+                    "maxLength": 32,
4070 4070
                     "minLength": 4
4071 4071
                 }
4072 4072
             }
4073 4073
         },
4074
+        "admin.UserTokenBatchDeleteForm": {
4075
+            "type": "object",
4076
+            "required": [
4077
+                "ids"
4078
+            ],
4079
+            "properties": {
4080
+                "ids": {
4081
+                    "type": "array",
4082
+                    "items": {
4083
+                        "type": "integer"
4084
+                    }
4085
+                }
4086
+            }
4087
+        },
4074 4088
         "model.AddressBook": {
4075 4089
             "type": "object",
4076 4090
             "properties": {

+ 21 - 7
docs/admin/admin_swagger.json

@@ -3562,7 +3562,7 @@
3562 3562
                         "token": []
3563 3563
                     }
3564 3564
                 ],
3565
-                "description": "登录凭证删除",
3565
+                "description": "登录凭证批量删除",
3566 3566
                 "consumes": [
3567 3567
                     "application/json"
3568 3568
                 ],
@@ -3572,7 +3572,7 @@
3572 3572
                 "tags": [
3573 3573
                     "登录凭证"
3574 3574
                 ],
3575
-                "summary": "登录凭证删除",
3575
+                "summary": "登录凭证批量删除",
3576 3576
                 "parameters": [
3577 3577
                     {
3578 3578
                         "description": "登录凭证信息",
@@ -3580,7 +3580,7 @@
3580 3580
                         "in": "body",
3581 3581
                         "required": true,
3582 3582
                         "schema": {
3583
-                            "$ref": "#/definitions/model.UserToken"
3583
+                            "$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
3584 3584
                         }
3585 3585
                     }
3586 3586
                 ],
@@ -3791,12 +3791,12 @@
3791 3791
             "properties": {
3792 3792
                 "new_password": {
3793 3793
                     "type": "string",
3794
-                    "maxLength": 20,
3794
+                    "maxLength": 32,
3795 3795
                     "minLength": 4
3796 3796
                 },
3797 3797
                 "old_password": {
3798 3798
                     "type": "string",
3799
-                    "maxLength": 20,
3799
+                    "maxLength": 32,
3800 3800
                     "minLength": 4
3801 3801
                 }
3802 3802
             }
@@ -4031,7 +4031,7 @@
4031 4031
                 },
4032 4032
                 "username": {
4033 4033
                     "type": "string",
4034
-                    "maxLength": 10,
4034
+                    "maxLength": 32,
4035 4035
                     "minLength": 2
4036 4036
                 }
4037 4037
             }
@@ -4059,11 +4059,25 @@
4059 4059
                 },
4060 4060
                 "password": {
4061 4061
                     "type": "string",
4062
-                    "maxLength": 20,
4062
+                    "maxLength": 32,
4063 4063
                     "minLength": 4
4064 4064
                 }
4065 4065
             }
4066 4066
         },
4067
+        "admin.UserTokenBatchDeleteForm": {
4068
+            "type": "object",
4069
+            "required": [
4070
+                "ids"
4071
+            ],
4072
+            "properties": {
4073
+                "ids": {
4074
+                    "type": "array",
4075
+                    "items": {
4076
+                        "type": "integer"
4077
+                    }
4078
+                }
4079
+            }
4080
+        },
4067 4081
         "model.AddressBook": {
4068 4082
             "type": "object",
4069 4083
             "properties": {

+ 16 - 7
docs/admin/admin_swagger.yaml

@@ -78,11 +78,11 @@ definitions:
78 78
   admin.ChangeCurPasswordForm:
79 79
     properties:
80 80
       new_password:
81
-        maxLength: 20
81
+        maxLength: 32
82 82
         minLength: 4
83 83
         type: string
84 84
       old_password:
85
-        maxLength: 20
85
+        maxLength: 32
86 86
         minLength: 4
87 87
         type: string
88 88
     required:
@@ -238,7 +238,7 @@ definitions:
238 238
         - $ref: '#/definitions/model.StatusCode'
239 239
         minimum: 0
240 240
       username:
241
-        maxLength: 10
241
+        maxLength: 32
242 242
         minLength: 2
243 243
         type: string
244 244
     required:
@@ -258,13 +258,22 @@ definitions:
258 258
       id:
259 259
         type: integer
260 260
       password:
261
-        maxLength: 20
261
+        maxLength: 32
262 262
         minLength: 4
263 263
         type: string
264 264
     required:
265 265
     - id
266 266
     - password
267 267
     type: object
268
+  admin.UserTokenBatchDeleteForm:
269
+    properties:
270
+      ids:
271
+        items:
272
+          type: integer
273
+        type: array
274
+    required:
275
+    - ids
276
+    type: object
268 277
   model.AddressBook:
269 278
     properties:
270 279
       alias:
@@ -2871,14 +2880,14 @@ paths:
2871 2880
     post:
2872 2881
       consumes:
2873 2882
       - application/json
2874
-      description: 登录凭证删除
2883
+      description: 登录凭证批量删除
2875 2884
       parameters:
2876 2885
       - description: 登录凭证信息
2877 2886
         in: body
2878 2887
         name: body
2879 2888
         required: true
2880 2889
         schema:
2881
-          $ref: '#/definitions/model.UserToken'
2890
+          $ref: '#/definitions/admin.UserTokenBatchDeleteForm'
2882 2891
       produces:
2883 2892
       - application/json
2884 2893
       responses:
@@ -2892,7 +2901,7 @@ paths:
2892 2901
             $ref: '#/definitions/response.Response'
2893 2902
       security:
2894 2903
       - token: []
2895
-      summary: 登录凭证删除
2904
+      summary: 登录凭证批量删除
2896 2905
       tags:
2897 2906
       - 登录凭证
2898 2907
   /admin/user_token/list:

+ 2 - 2
docs/api/api_docs.go

@@ -1356,7 +1356,7 @@ const docTemplateapi = `{
1356 1356
                 },
1357 1357
                 "password": {
1358 1358
                     "type": "string",
1359
-                    "maxLength": 20,
1359
+                    "maxLength": 32,
1360 1360
                     "minLength": 4
1361 1361
                 },
1362 1362
                 "type": {
@@ -1364,7 +1364,7 @@ const docTemplateapi = `{
1364 1364
                 },
1365 1365
                 "username": {
1366 1366
                     "type": "string",
1367
-                    "maxLength": 10,
1367
+                    "maxLength": 32,
1368 1368
                     "minLength": 2
1369 1369
                 },
1370 1370
                 "uuid": {

+ 2 - 2
docs/api/api_swagger.json

@@ -1349,7 +1349,7 @@
1349 1349
                 },
1350 1350
                 "password": {
1351 1351
                     "type": "string",
1352
-                    "maxLength": 20,
1352
+                    "maxLength": 32,
1353 1353
                     "minLength": 4
1354 1354
                 },
1355 1355
                 "type": {
@@ -1357,7 +1357,7 @@
1357 1357
                 },
1358 1358
                 "username": {
1359 1359
                     "type": "string",
1360
-                    "maxLength": 10,
1360
+                    "maxLength": 32,
1361 1361
                     "minLength": 2
1362 1362
                 },
1363 1363
                 "uuid": {

+ 2 - 2
docs/api/api_swagger.yaml

@@ -62,13 +62,13 @@ definitions:
62 62
       id:
63 63
         type: string
64 64
       password:
65
-        maxLength: 20
65
+        maxLength: 32
66 66
         minLength: 4
67 67
         type: string
68 68
       type:
69 69
         type: string
70 70
       username:
71
-        maxLength: 10
71
+        maxLength: 32
72 72
         minLength: 2
73 73
         type: string
74 74
       uuid:

+ 1 - 1
http/controller/api/webClient.go

@@ -94,7 +94,7 @@ func (i *WebClient) SharedPeer(c *gin.Context) {
94 94
 // @Produce  json
95 95
 // @Success 200 {object} response.Response
96 96
 // @Failure 500 {object} response.Response
97
-// @Router /server-config [get]
97
+// @Router /server-config-v2 [get]
98 98
 // @Security token
99 99
 func (i *WebClient) ServerConfigV2(c *gin.Context) {
100 100
 	response.Success(