Skip to content

Commit 4517e07

Browse files
author
wangyecheng@yaoyanshe.com
committed
Update swagger for changePassword
1 parent 6174a23 commit 4517e07

File tree

3 files changed

+251
-31
lines changed

3 files changed

+251
-31
lines changed

server/docs/docs.go

Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,9 +1476,7 @@ var doc = `{
14761476
}
14771477
],
14781478
"responses": {
1479-
"200": {
1480-
"description": ""
1481-
}
1479+
"200": {}
14821480
}
14831481
}
14841482
},
@@ -1511,9 +1509,7 @@ var doc = `{
15111509
}
15121510
],
15131511
"responses": {
1514-
"200": {
1515-
"description": ""
1516-
}
1512+
"200": {}
15171513
}
15181514
}
15191515
},
@@ -2884,7 +2880,7 @@ var doc = `{
28842880
}
28852881
},
28862882
"/user/changePassword": {
2887-
"put": {
2883+
"post": {
28882884
"security": [
28892885
{
28902886
"ApiKeyAuth": []
@@ -2956,6 +2952,33 @@ var doc = `{
29562952
}
29572953
}
29582954
},
2955+
"/user/getUserInfo": {
2956+
"get": {
2957+
"security": [
2958+
{
2959+
"ApiKeyAuth": []
2960+
}
2961+
],
2962+
"consumes": [
2963+
"application/json"
2964+
],
2965+
"produces": [
2966+
"application/json"
2967+
],
2968+
"tags": [
2969+
"SysUser"
2970+
],
2971+
"summary": "获取用户信息",
2972+
"responses": {
2973+
"200": {
2974+
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
2975+
"schema": {
2976+
"type": "string"
2977+
}
2978+
}
2979+
}
2980+
}
2981+
},
29592982
"/user/getUserList": {
29602983
"post": {
29612984
"security": [
@@ -3024,7 +3047,7 @@ var doc = `{
30243047
}
30253048
}
30263049
},
3027-
"/user/setUserAuthority": {
3050+
"/user/setUserAuthorities": {
30283051
"post": {
30293052
"security": [
30303053
{
@@ -3041,6 +3064,44 @@ var doc = `{
30413064
"SysUser"
30423065
],
30433066
"summary": "设置用户权限",
3067+
"parameters": [
3068+
{
3069+
"description": "用户UUID, 角色ID",
3070+
"name": "data",
3071+
"in": "body",
3072+
"required": true,
3073+
"schema": {
3074+
"$ref": "#/definitions/request.SetUserAuthorities"
3075+
}
3076+
}
3077+
],
3078+
"responses": {
3079+
"200": {
3080+
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
3081+
"schema": {
3082+
"type": "string"
3083+
}
3084+
}
3085+
}
3086+
}
3087+
},
3088+
"/user/setUserAuthority": {
3089+
"post": {
3090+
"security": [
3091+
{
3092+
"ApiKeyAuth": []
3093+
}
3094+
],
3095+
"consumes": [
3096+
"application/json"
3097+
],
3098+
"produces": [
3099+
"application/json"
3100+
],
3101+
"tags": [
3102+
"SysUser"
3103+
],
3104+
"summary": "更改用户权限",
30443105
"parameters": [
30453106
{
30463107
"description": "用户UUID, 角色ID",
@@ -3838,6 +3899,12 @@ var doc = `{
38383899
"authorityId": {
38393900
"type": "string"
38403901
},
3902+
"authorityIds": {
3903+
"type": "array",
3904+
"items": {
3905+
"type": "string"
3906+
}
3907+
},
38413908
"headerImg": {
38423909
"type": "string"
38433910
},
@@ -3907,10 +3974,21 @@ var doc = `{
39073974
"authorityId": {
39083975
"description": "角色ID",
39093976
"type": "string"
3977+
}
3978+
}
3979+
},
3980+
"request.SetUserAuthorities": {
3981+
"type": "object",
3982+
"properties": {
3983+
"authorityIds": {
3984+
"description": "角色ID",
3985+
"type": "array",
3986+
"items": {
3987+
"type": "string"
3988+
}
39103989
},
3911-
"uuid": {
3912-
"description": "用户UUID",
3913-
"type": "string"
3990+
"id": {
3991+
"type": "integer"
39143992
}
39153993
}
39163994
},
@@ -4524,6 +4602,12 @@ var doc = `{
45244602
"description": "活跃颜色",
45254603
"type": "string"
45264604
},
4605+
"authorities": {
4606+
"type": "array",
4607+
"items": {
4608+
"$ref": "#/definitions/system.SysAuthority"
4609+
}
4610+
},
45274611
"authority": {
45284612
"$ref": "#/definitions/system.SysAuthority"
45294613
},

server/docs/swagger.json

Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,9 +1460,7 @@
14601460
}
14611461
],
14621462
"responses": {
1463-
"200": {
1464-
"description": ""
1465-
}
1463+
"200": {}
14661464
}
14671465
}
14681466
},
@@ -1495,9 +1493,7 @@
14951493
}
14961494
],
14971495
"responses": {
1498-
"200": {
1499-
"description": ""
1500-
}
1496+
"200": {}
15011497
}
15021498
}
15031499
},
@@ -2868,7 +2864,7 @@
28682864
}
28692865
},
28702866
"/user/changePassword": {
2871-
"put": {
2867+
"post": {
28722868
"security": [
28732869
{
28742870
"ApiKeyAuth": []
@@ -2940,6 +2936,33 @@
29402936
}
29412937
}
29422938
},
2939+
"/user/getUserInfo": {
2940+
"get": {
2941+
"security": [
2942+
{
2943+
"ApiKeyAuth": []
2944+
}
2945+
],
2946+
"consumes": [
2947+
"application/json"
2948+
],
2949+
"produces": [
2950+
"application/json"
2951+
],
2952+
"tags": [
2953+
"SysUser"
2954+
],
2955+
"summary": "获取用户信息",
2956+
"responses": {
2957+
"200": {
2958+
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
2959+
"schema": {
2960+
"type": "string"
2961+
}
2962+
}
2963+
}
2964+
}
2965+
},
29432966
"/user/getUserList": {
29442967
"post": {
29452968
"security": [
@@ -3008,7 +3031,7 @@
30083031
}
30093032
}
30103033
},
3011-
"/user/setUserAuthority": {
3034+
"/user/setUserAuthorities": {
30123035
"post": {
30133036
"security": [
30143037
{
@@ -3025,6 +3048,44 @@
30253048
"SysUser"
30263049
],
30273050
"summary": "设置用户权限",
3051+
"parameters": [
3052+
{
3053+
"description": "用户UUID, 角色ID",
3054+
"name": "data",
3055+
"in": "body",
3056+
"required": true,
3057+
"schema": {
3058+
"$ref": "#/definitions/request.SetUserAuthorities"
3059+
}
3060+
}
3061+
],
3062+
"responses": {
3063+
"200": {
3064+
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
3065+
"schema": {
3066+
"type": "string"
3067+
}
3068+
}
3069+
}
3070+
}
3071+
},
3072+
"/user/setUserAuthority": {
3073+
"post": {
3074+
"security": [
3075+
{
3076+
"ApiKeyAuth": []
3077+
}
3078+
],
3079+
"consumes": [
3080+
"application/json"
3081+
],
3082+
"produces": [
3083+
"application/json"
3084+
],
3085+
"tags": [
3086+
"SysUser"
3087+
],
3088+
"summary": "更改用户权限",
30283089
"parameters": [
30293090
{
30303091
"description": "用户UUID, 角色ID",
@@ -3822,6 +3883,12 @@
38223883
"authorityId": {
38233884
"type": "string"
38243885
},
3886+
"authorityIds": {
3887+
"type": "array",
3888+
"items": {
3889+
"type": "string"
3890+
}
3891+
},
38253892
"headerImg": {
38263893
"type": "string"
38273894
},
@@ -3891,10 +3958,21 @@
38913958
"authorityId": {
38923959
"description": "角色ID",
38933960
"type": "string"
3961+
}
3962+
}
3963+
},
3964+
"request.SetUserAuthorities": {
3965+
"type": "object",
3966+
"properties": {
3967+
"authorityIds": {
3968+
"description": "角色ID",
3969+
"type": "array",
3970+
"items": {
3971+
"type": "string"
3972+
}
38943973
},
3895-
"uuid": {
3896-
"description": "用户UUID",
3897-
"type": "string"
3974+
"id": {
3975+
"type": "integer"
38983976
}
38993977
}
39003978
},
@@ -4508,6 +4586,12 @@
45084586
"description": "活跃颜色",
45094587
"type": "string"
45104588
},
4589+
"authorities": {
4590+
"type": "array",
4591+
"items": {
4592+
"$ref": "#/definitions/system.SysAuthority"
4593+
}
4594+
},
45114595
"authority": {
45124596
"$ref": "#/definitions/system.SysAuthority"
45134597
},

0 commit comments

Comments
 (0)