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

+ 21 - 7
docs/admin/admin_docs.go

@@ -3569,7 +3569,7 @@ const docTemplateadmin = `{
3569
                         "token": []
3569
                         "token": []
3570
                     }
3570
                     }
3571
                 ],
3571
                 ],
3572
-                "description": "登录凭证删除",
3572
+                "description": "登录凭证批量删除",
3573
                 "consumes": [
3573
                 "consumes": [
3574
                     "application/json"
3574
                     "application/json"
3575
                 ],
3575
                 ],
@@ -3579,7 +3579,7 @@ const docTemplateadmin = `{
3579
                 "tags": [
3579
                 "tags": [
3580
                     "登录凭证"
3580
                     "登录凭证"
3581
                 ],
3581
                 ],
3582
-                "summary": "登录凭证删除",
3582
+                "summary": "登录凭证批量删除",
3583
                 "parameters": [
3583
                 "parameters": [
3584
                     {
3584
                     {
3585
                         "description": "登录凭证信息",
3585
                         "description": "登录凭证信息",
@@ -3587,7 +3587,7 @@ const docTemplateadmin = `{
3587
                         "in": "body",
3587
                         "in": "body",
3588
                         "required": true,
3588
                         "required": true,
3589
                         "schema": {
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
             "properties": {
3798
             "properties": {
3799
                 "new_password": {
3799
                 "new_password": {
3800
                     "type": "string",
3800
                     "type": "string",
3801
-                    "maxLength": 20,
3801
+                    "maxLength": 32,
3802
                     "minLength": 4
3802
                     "minLength": 4
3803
                 },
3803
                 },
3804
                 "old_password": {
3804
                 "old_password": {
3805
                     "type": "string",
3805
                     "type": "string",
3806
-                    "maxLength": 20,
3806
+                    "maxLength": 32,
3807
                     "minLength": 4
3807
                     "minLength": 4
3808
                 }
3808
                 }
3809
             }
3809
             }
@@ -4038,7 +4038,7 @@ const docTemplateadmin = `{
4038
                 },
4038
                 },
4039
                 "username": {
4039
                 "username": {
4040
                     "type": "string",
4040
                     "type": "string",
4041
-                    "maxLength": 10,
4041
+                    "maxLength": 32,
4042
                     "minLength": 2
4042
                     "minLength": 2
4043
                 }
4043
                 }
4044
             }
4044
             }
@@ -4066,11 +4066,25 @@ const docTemplateadmin = `{
4066
                 },
4066
                 },
4067
                 "password": {
4067
                 "password": {
4068
                     "type": "string",
4068
                     "type": "string",
4069
-                    "maxLength": 20,
4069
+                    "maxLength": 32,
4070
                     "minLength": 4
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
         "model.AddressBook": {
4088
         "model.AddressBook": {
4075
             "type": "object",
4089
             "type": "object",
4076
             "properties": {
4090
             "properties": {

+ 21 - 7
docs/admin/admin_swagger.json

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

+ 16 - 7
docs/admin/admin_swagger.yaml

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

+ 2 - 2
docs/api/api_docs.go

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

+ 2 - 2
docs/api/api_swagger.json

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

+ 2 - 2
docs/api/api_swagger.yaml

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

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

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