From 206657905ce33b845c790291157ce54d7f7c9b03 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Sat, 17 Aug 2024 18:19:41 +0800 Subject: [PATCH] update --- app/hdl/hdl_login.go | 2 +- app/hdl/hdl_register.go | 4 +- app/hdl/hdl_role.go | 26 ++++----- docs/docs.go | 118 ++++++++++++++++++++-------------------- docs/swagger.json | 118 ++++++++++++++++++++-------------------- docs/swagger.yaml | 90 +++++++++++++++--------------- 6 files changed, 179 insertions(+), 179 deletions(-) diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index 392842d..012073d 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -21,7 +21,7 @@ import ( // @Param req body md.LoginReq true "用户名密码" // @Success 200 {object} md.LoginResponse "token" // @Failure 400 {object} md.Response "具体错误" -// @Router /login [post] +// @Router /api/login [post] func Login(c *gin.Context) { var req md.LoginReq err := c.ShouldBindJSON(&req) diff --git a/app/hdl/hdl_register.go b/app/hdl/hdl_register.go index 5cfae17..98ed0c3 100644 --- a/app/hdl/hdl_register.go +++ b/app/hdl/hdl_register.go @@ -24,7 +24,7 @@ import ( // @Param req body md.RegisterForMediumReq true "用户名密码" // @Success 200 string "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /registerForMedium [post] +// @Router /api/registerForMedium [post] func RegisterForMedium(c *gin.Context) { var req md.RegisterForMediumReq err := c.ShouldBindJSON(&req) @@ -118,7 +118,7 @@ func RegisterForMedium(c *gin.Context) { // @Param req body md.RegisterForAgentReq true "用户名密码" // @Success 200 string "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /registerForAgent [post] +// @Router /api/registerForAgent [post] func RegisterForAgent(c *gin.Context) { var req md.RegisterForAgentReq err := c.ShouldBindJSON(&req) diff --git a/app/hdl/hdl_role.go b/app/hdl/hdl_role.go index 3e1d7b6..816817a 100644 --- a/app/hdl/hdl_role.go +++ b/app/hdl/hdl_role.go @@ -108,7 +108,7 @@ func PermissionGroupList(c *gin.Context) { // @Produce json // @Success 200 {string} "具体看返回内容" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/roleList [GET] +// @Router /api/role/roleList [GET] func RoleList(c *gin.Context) { engine := db.DBs[svc.GetMasterId(c)] roleDb := implement.NewRoleDb(engine, 0) @@ -169,7 +169,7 @@ func RoleList(c *gin.Context) { // @Param args body md.AddRoleReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/addRole [POST] +// @Router /api/role/addRole [POST] func AddRole(c *gin.Context) { var req md.AddRoleReq err := c.ShouldBindJSON(&req) @@ -208,7 +208,7 @@ func AddRole(c *gin.Context) { // @Param args body md.UpdateRoleReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/updateRole [POST] +// @Router /api/role/updateRole [POST] func UpdateRole(c *gin.Context) { var req md.UpdateRoleReq err := c.ShouldBindJSON(&req) @@ -250,7 +250,7 @@ func UpdateRole(c *gin.Context) { // @Param args body md.RoleBindPermissionGroupReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/roleBindPermissionGroup [POST] +// @Router /api/role/roleBindPermissionGroup [POST] func RoleBindPermissionGroup(c *gin.Context) { var req md.RoleBindPermissionGroupReq err := c.ShouldBindJSON(&req) @@ -280,7 +280,7 @@ func RoleBindPermissionGroup(c *gin.Context) { // @Param args body md.UpdateRoleStateReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/updateRole [POST] +// @Router /api/role/updateRole [POST] func UpdateRoleState(c *gin.Context) { var req md.UpdateRoleStateReq err := c.ShouldBindJSON(&req) @@ -321,7 +321,7 @@ func UpdateRoleState(c *gin.Context) { // @Param args body md.UpdateRoleStateReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/deleteRole/{$id} [DELETE] +// @Router /api/role/deleteRole/{$id} [DELETE] func DeleteRole(c *gin.Context) { id := c.Param("id") engine := db.DBs[svc.GetMasterId(c)] @@ -356,7 +356,7 @@ func DeleteRole(c *gin.Context) { // @Param args body md.AdminListReq true "请求参数" // @Success 200 {string} "具体看返回内容" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/adminList [POST] +// @Router /api/role/adminList [POST] func AdminList(c *gin.Context) { var req md.AdminListReq err := c.ShouldBindJSON(&req) @@ -430,7 +430,7 @@ func AdminList(c *gin.Context) { // @Param args body md.UpdateAdminStateReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/updateAdminState [POST] +// @Router /api/role/updateAdminState [POST] func UpdateAdminState(c *gin.Context) { var req md.UpdateAdminStateReq err := c.ShouldBindJSON(&req) @@ -472,7 +472,7 @@ func UpdateAdminState(c *gin.Context) { // @Param args body md.UpdateAdminReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/updateAdmin [POST] +// @Router /api/role/updateAdmin [POST] func UpdateAdmin(c *gin.Context) { var req md.UpdateAdminReq err := c.ShouldBindJSON(&req) @@ -515,7 +515,7 @@ func UpdateAdmin(c *gin.Context) { // @Param args body md.AddAdminReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/addAdmin [POST] +// @Router /api/role/addAdmin [POST] func AddAdmin(c *gin.Context) { var req md.AddAdminReq err := c.ShouldBindJSON(&req) @@ -570,7 +570,7 @@ func AddAdmin(c *gin.Context) { // @Produce json // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/deleteAdmin/{$adm_id} [DELETE] +// @Router /api/role/deleteAdmin/{$adm_id} [DELETE] func DeleteAdmin(c *gin.Context) { admId := c.Param("adm_id") err := svc.AdminDelete(c, []int{utils.StrToInt(admId)}) @@ -592,7 +592,7 @@ func DeleteAdmin(c *gin.Context) { // @Param args body md.BindAdminRoleReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/bindAdminRole/ [POST] +// @Router /api/role/bindAdminRole/ [POST] func BindAdminRole(c *gin.Context) { var req md.BindAdminRoleReq err := c.ShouldBindJSON(&req) @@ -621,7 +621,7 @@ func BindAdminRole(c *gin.Context) { // @param adm_id query string true "管理员id" // @Success 200 {string} "具体看返回内容" // @Failure 400 {object} md.Response "具体错误" -// @Router /role/adminInfo [GET] +// @Router /api/role/adminInfo [GET] func AdminInfo(c *gin.Context) { admId := c.DefaultQuery("adm_id", "") engine := db.DBs[svc.GetMasterId(c)] diff --git a/docs/docs.go b/docs/docs.go index 30a2d79..8fd2063 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -25,7 +25,7 @@ const docTemplate = `{ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/login": { + "/api/login": { "post": { "description": "登入", "consumes": [ @@ -65,7 +65,7 @@ const docTemplate = `{ } } }, - "/registerForAgent": { + "/api/registerForAgent": { "post": { "description": "注册模块-渠道代理注册", "consumes": [ @@ -105,7 +105,7 @@ const docTemplate = `{ } } }, - "/registerForMedium": { + "/api/registerForMedium": { "post": { "description": "注册模块-媒体注册", "consumes": [ @@ -145,7 +145,7 @@ const docTemplate = `{ } } }, - "/role/addAdmin": { + "/api/role/addAdmin": { "post": { "description": "权限管理-新增管理员", "consumes": [ @@ -192,7 +192,7 @@ const docTemplate = `{ } } }, - "/role/addRole": { + "/api/role/addRole": { "post": { "description": "权限管理-添加角色", "consumes": [ @@ -239,7 +239,7 @@ const docTemplate = `{ } } }, - "/role/adminInfo": { + "/api/role/adminInfo": { "get": { "description": "权限管理-管理员信息", "consumes": [ @@ -284,7 +284,7 @@ const docTemplate = `{ } } }, - "/role/adminList": { + "/api/role/adminList": { "post": { "description": "权限管理-管理员列表", "consumes": [ @@ -331,7 +331,7 @@ const docTemplate = `{ } } }, - "/role/bindAdminRole/": { + "/api/role/bindAdminRole/": { "post": { "description": "权限管理-管理员绑定角色", "consumes": [ @@ -378,7 +378,7 @@ const docTemplate = `{ } } }, - "/role/deleteAdmin/{$adm_id}": { + "/api/role/deleteAdmin/{$adm_id}": { "delete": { "description": "权限管理-删除管理员", "consumes": [ @@ -416,7 +416,7 @@ const docTemplate = `{ } } }, - "/role/deleteRole/{$id}": { + "/api/role/deleteRole/{$id}": { "delete": { "description": "权限管理-删除角色", "consumes": [ @@ -463,9 +463,9 @@ const docTemplate = `{ } } }, - "/role/permissionGroupList": { - "get": { - "description": "权限管理-权限组列表", + "/api/role/roleBindPermissionGroup": { + "post": { + "description": "权限管理-角色绑定权限组", "consumes": [ "application/json" ], @@ -475,7 +475,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "权限组列表", + "summary": "角色绑定权限组", "parameters": [ { "type": "string", @@ -485,16 +485,18 @@ const docTemplate = `{ "required": true }, { - "type": "string", - "description": "管理员id", - "name": "adm_id", - "in": "query", - "required": true + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -508,9 +510,9 @@ const docTemplate = `{ } } }, - "/role/roleBindPermissionGroup": { - "post": { - "description": "权限管理-角色绑定权限组", + "/api/role/roleList": { + "get": { + "description": "权限管理-角色列表", "consumes": [ "application/json" ], @@ -520,7 +522,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "角色绑定权限组", + "summary": "角色列表", "parameters": [ { "type": "string", @@ -528,20 +530,11 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.RoleBindPermissionGroupReq" - } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -555,9 +548,9 @@ const docTemplate = `{ } } }, - "/role/roleList": { - "get": { - "description": "权限管理-角色列表", + "/api/role/updateAdmin": { + "post": { + "description": "权限管理-修改管理员信息", "consumes": [ "application/json" ], @@ -567,7 +560,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "角色列表", + "summary": "修改管理员信息", "parameters": [ { "type": "string", @@ -575,11 +568,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateAdminReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -593,9 +595,9 @@ const docTemplate = `{ } } }, - "/role/updateAdmin": { + "/api/role/updateAdminState": { "post": { - "description": "权限管理-修改管理员信息", + "description": "权限管理-修改管理员状态", "consumes": [ "application/json" ], @@ -605,7 +607,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "修改管理员信息", + "summary": "修改管理员状态", "parameters": [ { "type": "string", @@ -620,7 +622,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminReq" + "$ref": "#/definitions/md.UpdateAdminStateReq" } } ], @@ -640,9 +642,9 @@ const docTemplate = `{ } } }, - "/role/updateAdminState": { + "/api/role/updateRole": { "post": { - "description": "权限管理-修改管理员状态", + "description": "权限管理-修改角色状态", "consumes": [ "application/json" ], @@ -652,7 +654,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "修改管理员状态", + "summary": "修改角色状态", "parameters": [ { "type": "string", @@ -667,7 +669,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminStateReq" + "$ref": "#/definitions/md.UpdateRoleStateReq" } } ], @@ -687,9 +689,9 @@ const docTemplate = `{ } } }, - "/role/updateRole": { - "post": { - "description": "权限管理-修改角色状态", + "/role/permissionGroupList": { + "get": { + "description": "权限管理-权限组列表", "consumes": [ "application/json" ], @@ -699,7 +701,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "修改角色状态", + "summary": "权限组列表", "parameters": [ { "type": "string", @@ -709,18 +711,16 @@ const docTemplate = `{ "required": true }, { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" - } + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } diff --git a/docs/swagger.json b/docs/swagger.json index 230c72e..b8a5d44 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -17,7 +17,7 @@ }, "host": "localhost:1002 or xxxx.advertisement.dengbiao.top", "paths": { - "/login": { + "/api/login": { "post": { "description": "登入", "consumes": [ @@ -57,7 +57,7 @@ } } }, - "/registerForAgent": { + "/api/registerForAgent": { "post": { "description": "注册模块-渠道代理注册", "consumes": [ @@ -97,7 +97,7 @@ } } }, - "/registerForMedium": { + "/api/registerForMedium": { "post": { "description": "注册模块-媒体注册", "consumes": [ @@ -137,7 +137,7 @@ } } }, - "/role/addAdmin": { + "/api/role/addAdmin": { "post": { "description": "权限管理-新增管理员", "consumes": [ @@ -184,7 +184,7 @@ } } }, - "/role/addRole": { + "/api/role/addRole": { "post": { "description": "权限管理-添加角色", "consumes": [ @@ -231,7 +231,7 @@ } } }, - "/role/adminInfo": { + "/api/role/adminInfo": { "get": { "description": "权限管理-管理员信息", "consumes": [ @@ -276,7 +276,7 @@ } } }, - "/role/adminList": { + "/api/role/adminList": { "post": { "description": "权限管理-管理员列表", "consumes": [ @@ -323,7 +323,7 @@ } } }, - "/role/bindAdminRole/": { + "/api/role/bindAdminRole/": { "post": { "description": "权限管理-管理员绑定角色", "consumes": [ @@ -370,7 +370,7 @@ } } }, - "/role/deleteAdmin/{$adm_id}": { + "/api/role/deleteAdmin/{$adm_id}": { "delete": { "description": "权限管理-删除管理员", "consumes": [ @@ -408,7 +408,7 @@ } } }, - "/role/deleteRole/{$id}": { + "/api/role/deleteRole/{$id}": { "delete": { "description": "权限管理-删除角色", "consumes": [ @@ -455,9 +455,9 @@ } } }, - "/role/permissionGroupList": { - "get": { - "description": "权限管理-权限组列表", + "/api/role/roleBindPermissionGroup": { + "post": { + "description": "权限管理-角色绑定权限组", "consumes": [ "application/json" ], @@ -467,7 +467,7 @@ "tags": [ "权限管理" ], - "summary": "权限组列表", + "summary": "角色绑定权限组", "parameters": [ { "type": "string", @@ -477,16 +477,18 @@ "required": true }, { - "type": "string", - "description": "管理员id", - "name": "adm_id", - "in": "query", - "required": true + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -500,9 +502,9 @@ } } }, - "/role/roleBindPermissionGroup": { - "post": { - "description": "权限管理-角色绑定权限组", + "/api/role/roleList": { + "get": { + "description": "权限管理-角色列表", "consumes": [ "application/json" ], @@ -512,7 +514,7 @@ "tags": [ "权限管理" ], - "summary": "角色绑定权限组", + "summary": "角色列表", "parameters": [ { "type": "string", @@ -520,20 +522,11 @@ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.RoleBindPermissionGroupReq" - } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -547,9 +540,9 @@ } } }, - "/role/roleList": { - "get": { - "description": "权限管理-角色列表", + "/api/role/updateAdmin": { + "post": { + "description": "权限管理-修改管理员信息", "consumes": [ "application/json" ], @@ -559,7 +552,7 @@ "tags": [ "权限管理" ], - "summary": "角色列表", + "summary": "修改管理员信息", "parameters": [ { "type": "string", @@ -567,11 +560,20 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateAdminReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -585,9 +587,9 @@ } } }, - "/role/updateAdmin": { + "/api/role/updateAdminState": { "post": { - "description": "权限管理-修改管理员信息", + "description": "权限管理-修改管理员状态", "consumes": [ "application/json" ], @@ -597,7 +599,7 @@ "tags": [ "权限管理" ], - "summary": "修改管理员信息", + "summary": "修改管理员状态", "parameters": [ { "type": "string", @@ -612,7 +614,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminReq" + "$ref": "#/definitions/md.UpdateAdminStateReq" } } ], @@ -632,9 +634,9 @@ } } }, - "/role/updateAdminState": { + "/api/role/updateRole": { "post": { - "description": "权限管理-修改管理员状态", + "description": "权限管理-修改角色状态", "consumes": [ "application/json" ], @@ -644,7 +646,7 @@ "tags": [ "权限管理" ], - "summary": "修改管理员状态", + "summary": "修改角色状态", "parameters": [ { "type": "string", @@ -659,7 +661,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminStateReq" + "$ref": "#/definitions/md.UpdateRoleStateReq" } } ], @@ -679,9 +681,9 @@ } } }, - "/role/updateRole": { - "post": { - "description": "权限管理-修改角色状态", + "/role/permissionGroupList": { + "get": { + "description": "权限管理-权限组列表", "consumes": [ "application/json" ], @@ -691,7 +693,7 @@ "tags": [ "权限管理" ], - "summary": "修改角色状态", + "summary": "权限组列表", "parameters": [ { "type": "string", @@ -701,18 +703,16 @@ "required": true }, { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" - } + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7619ace..6021c3d 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -177,7 +177,7 @@ info: title: 广告联盟-站长平台 version: "1.0" paths: - /login: + /api/login: post: consumes: - application/json @@ -203,7 +203,7 @@ paths: summary: 登陆 tags: - 登录 - /registerForAgent: + /api/registerForAgent: post: consumes: - application/json @@ -229,7 +229,7 @@ paths: summary: 渠道代理注册 tags: - 注册模块 - /registerForMedium: + /api/registerForMedium: post: consumes: - application/json @@ -255,7 +255,7 @@ paths: summary: 媒体注册 tags: - 注册模块 - /role/addAdmin: + /api/role/addAdmin: post: consumes: - application/json @@ -286,7 +286,7 @@ paths: summary: 新增管理员 tags: - 权限管理 - /role/addRole: + /api/role/addRole: post: consumes: - application/json @@ -317,7 +317,7 @@ paths: summary: 添加角色 tags: - 权限管理 - /role/adminInfo: + /api/role/adminInfo: get: consumes: - application/json @@ -347,7 +347,7 @@ paths: summary: 管理员信息 tags: - 权限管理 - /role/adminList: + /api/role/adminList: post: consumes: - application/json @@ -378,7 +378,7 @@ paths: summary: 管理员列表 tags: - 权限管理 - /role/bindAdminRole/: + /api/role/bindAdminRole/: post: consumes: - application/json @@ -409,7 +409,7 @@ paths: summary: 管理员绑定角色 tags: - 权限管理 - /role/deleteAdmin/{$adm_id}: + /api/role/deleteAdmin/{$adm_id}: delete: consumes: - application/json @@ -434,7 +434,7 @@ paths: summary: 删除管理员 tags: - 权限管理 - /role/deleteRole/{$id}: + /api/role/deleteRole/{$id}: delete: consumes: - application/json @@ -465,37 +465,7 @@ paths: summary: 删除角色 tags: - 权限管理 - /role/permissionGroupList: - get: - consumes: - - application/json - description: 权限管理-权限组列表 - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 管理员id - in: query - name: adm_id - required: true - type: string - produces: - - application/json - responses: - "200": - description: 具体看返回内容 - schema: - type: string - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 权限组列表 - tags: - - 权限管理 - /role/roleBindPermissionGroup: + /api/role/roleBindPermissionGroup: post: consumes: - application/json @@ -526,7 +496,7 @@ paths: summary: 角色绑定权限组 tags: - 权限管理 - /role/roleList: + /api/role/roleList: get: consumes: - application/json @@ -551,7 +521,7 @@ paths: summary: 角色列表 tags: - 权限管理 - /role/updateAdmin: + /api/role/updateAdmin: post: consumes: - application/json @@ -582,7 +552,7 @@ paths: summary: 修改管理员信息 tags: - 权限管理 - /role/updateAdminState: + /api/role/updateAdminState: post: consumes: - application/json @@ -613,7 +583,7 @@ paths: summary: 修改管理员状态 tags: - 权限管理 - /role/updateRole: + /api/role/updateRole: post: consumes: - application/json @@ -644,6 +614,36 @@ paths: summary: 修改角色状态 tags: - 权限管理 + /role/permissionGroupList: + get: + consumes: + - application/json + description: 权限管理-权限组列表 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 管理员id + in: query + name: adm_id + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体看返回内容 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 权限组列表 + tags: + - 权限管理 securityDefinitions: MasterID: in: header