@@ -21,7 +21,7 @@ import ( | |||||
// @Param req body md.LoginReq true "用户名、密码" | // @Param req body md.LoginReq true "用户名、密码" | ||||
// @Success 200 {object} md.LoginResponse "token" | // @Success 200 {object} md.LoginResponse "token" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/login [post] | |||||
// @Router /api/login [post] | |||||
func Login(c *gin.Context) { | func Login(c *gin.Context) { | ||||
var req md.LoginReq | var req md.LoginReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -24,7 +24,7 @@ import ( | |||||
// @param adm_id query string true "管理员id" | // @param adm_id query string true "管理员id" | ||||
// @Success 200 {string} "具体看返回内容" | // @Success 200 {string} "具体看返回内容" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/permissionGroupList [GET] | |||||
// @Router /api/role/permissionGroupList [GET] | |||||
func PermissionGroupList(c *gin.Context) { | func PermissionGroupList(c *gin.Context) { | ||||
roleId := c.DefaultQuery("role_id", "") | roleId := c.DefaultQuery("role_id", "") | ||||
engine := db.DBs[svc.GetMasterId(c)] | engine := db.DBs[svc.GetMasterId(c)] | ||||
@@ -108,7 +108,7 @@ func PermissionGroupList(c *gin.Context) { | |||||
// @Produce json | // @Produce json | ||||
// @Success 200 {string} "具体看返回内容" | // @Success 200 {string} "具体看返回内容" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/roleList [GET] | |||||
// @Router /api/role/roleList [GET] | |||||
func RoleList(c *gin.Context) { | func RoleList(c *gin.Context) { | ||||
engine := db.DBs[svc.GetMasterId(c)] | engine := db.DBs[svc.GetMasterId(c)] | ||||
roleDb := implement.NewMediumRoleDb(engine) | roleDb := implement.NewMediumRoleDb(engine) | ||||
@@ -169,7 +169,7 @@ func RoleList(c *gin.Context) { | |||||
// @Param args body md.AddRoleReq true "请求参数" | // @Param args body md.AddRoleReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/addRole [POST] | |||||
// @Router /api/role/addRole [POST] | |||||
func AddRole(c *gin.Context) { | func AddRole(c *gin.Context) { | ||||
var req md.AddRoleReq | var req md.AddRoleReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -209,7 +209,7 @@ func AddRole(c *gin.Context) { | |||||
// @Param args body md.UpdateRoleReq true "请求参数" | // @Param args body md.UpdateRoleReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/updateRole [POST] | |||||
// @Router /api/role/updateRole [POST] | |||||
func UpdateRole(c *gin.Context) { | func UpdateRole(c *gin.Context) { | ||||
var req md.UpdateRoleReq | var req md.UpdateRoleReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -251,7 +251,7 @@ func UpdateRole(c *gin.Context) { | |||||
// @Param args body md.RoleBindPermissionGroupReq true "请求参数" | // @Param args body md.RoleBindPermissionGroupReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/roleBindPermissionGroup [POST] | |||||
// @Router /api/role/roleBindPermissionGroup [POST] | |||||
func RoleBindPermissionGroup(c *gin.Context) { | func RoleBindPermissionGroup(c *gin.Context) { | ||||
var req md.RoleBindPermissionGroupReq | var req md.RoleBindPermissionGroupReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -281,7 +281,7 @@ func RoleBindPermissionGroup(c *gin.Context) { | |||||
// @Param args body md.UpdateRoleStateReq true "请求参数" | // @Param args body md.UpdateRoleStateReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/updateRole [POST] | |||||
// @Router /api/role/updateRole [POST] | |||||
func UpdateRoleState(c *gin.Context) { | func UpdateRoleState(c *gin.Context) { | ||||
var req md.UpdateRoleStateReq | var req md.UpdateRoleStateReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -322,7 +322,7 @@ func UpdateRoleState(c *gin.Context) { | |||||
// @Param args body md.UpdateRoleStateReq true "请求参数" | // @Param args body md.UpdateRoleStateReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/deleteRole/{$id} [DELETE] | |||||
// @Router /api/role/deleteRole/{$id} [DELETE] | |||||
func DeleteRole(c *gin.Context) { | func DeleteRole(c *gin.Context) { | ||||
id := c.Param("id") | id := c.Param("id") | ||||
engine := db.DBs[svc.GetMasterId(c)] | engine := db.DBs[svc.GetMasterId(c)] | ||||
@@ -357,7 +357,7 @@ func DeleteRole(c *gin.Context) { | |||||
// @Param args body md.AdminListReq true "请求参数" | // @Param args body md.AdminListReq true "请求参数" | ||||
// @Success 200 {string} "具体看返回内容" | // @Success 200 {string} "具体看返回内容" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/adminList [POST] | |||||
// @Router /api/role/adminList [POST] | |||||
func AdminList(c *gin.Context) { | func AdminList(c *gin.Context) { | ||||
var req md.AdminListReq | var req md.AdminListReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -431,7 +431,7 @@ func AdminList(c *gin.Context) { | |||||
// @Param args body md.UpdateAdminStateReq true "请求参数" | // @Param args body md.UpdateAdminStateReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/updateAdminState [POST] | |||||
// @Router /api/role/updateAdminState [POST] | |||||
func UpdateAdminState(c *gin.Context) { | func UpdateAdminState(c *gin.Context) { | ||||
var req md.UpdateAdminStateReq | var req md.UpdateAdminStateReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -473,7 +473,7 @@ func UpdateAdminState(c *gin.Context) { | |||||
// @Param args body md.UpdateAdminReq true "请求参数" | // @Param args body md.UpdateAdminReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/updateAdmin [POST] | |||||
// @Router /api/role/updateAdmin [POST] | |||||
func UpdateAdmin(c *gin.Context) { | func UpdateAdmin(c *gin.Context) { | ||||
var req md.UpdateAdminReq | var req md.UpdateAdminReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -516,7 +516,7 @@ func UpdateAdmin(c *gin.Context) { | |||||
// @Param args body md.AddAdminReq true "请求参数" | // @Param args body md.AddAdminReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/addAdmin [POST] | |||||
// @Router /api/role/addAdmin [POST] | |||||
func AddAdmin(c *gin.Context) { | func AddAdmin(c *gin.Context) { | ||||
var req md.AddAdminReq | var req md.AddAdminReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -571,7 +571,7 @@ func AddAdmin(c *gin.Context) { | |||||
// @Produce json | // @Produce json | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/deleteAdmin/{$adm_id} [DELETE] | |||||
// @Router /api/role/deleteAdmin/{$adm_id} [DELETE] | |||||
func DeleteAdmin(c *gin.Context) { | func DeleteAdmin(c *gin.Context) { | ||||
admId := c.Param("adm_id") | admId := c.Param("adm_id") | ||||
err := svc.AdminDelete(c, []int{utils.StrToInt(admId)}) | err := svc.AdminDelete(c, []int{utils.StrToInt(admId)}) | ||||
@@ -593,7 +593,7 @@ func DeleteAdmin(c *gin.Context) { | |||||
// @Param args body md.BindAdminRoleReq true "请求参数" | // @Param args body md.BindAdminRoleReq true "请求参数" | ||||
// @Success 200 {string} "success" | // @Success 200 {string} "success" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/bindAdminRole/ [POST] | |||||
// @Router /api/role/bindAdminRole/ [POST] | |||||
func BindAdminRole(c *gin.Context) { | func BindAdminRole(c *gin.Context) { | ||||
var req md.BindAdminRoleReq | var req md.BindAdminRoleReq | ||||
err := c.ShouldBindJSON(&req) | err := c.ShouldBindJSON(&req) | ||||
@@ -622,7 +622,7 @@ func BindAdminRole(c *gin.Context) { | |||||
// @param adm_id query string true "管理员id" | // @param adm_id query string true "管理员id" | ||||
// @Success 200 {string} "具体看返回内容" | // @Success 200 {string} "具体看返回内容" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /admin/role/adminInfo [GET] | |||||
// @Router /api/role/adminInfo [GET] | |||||
func AdminInfo(c *gin.Context) { | func AdminInfo(c *gin.Context) { | ||||
admId := c.DefaultQuery("adm_id", "") | admId := c.DefaultQuery("adm_id", "") | ||||
engine := db.DBs[svc.GetMasterId(c)] | engine := db.DBs[svc.GetMasterId(c)] | ||||
@@ -25,7 +25,7 @@ const docTemplate = `{ | |||||
"host": "{{.Host}}", | "host": "{{.Host}}", | ||||
"basePath": "{{.BasePath}}", | "basePath": "{{.BasePath}}", | ||||
"paths": { | "paths": { | ||||
"/admin/login": { | |||||
"/api/login": { | |||||
"post": { | "post": { | ||||
"description": "登入", | "description": "登入", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -65,7 +65,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/addAdmin": { | |||||
"/api/role/addAdmin": { | |||||
"post": { | "post": { | ||||
"description": "新增管理员", | "description": "新增管理员", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -112,7 +112,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/addRole": { | |||||
"/api/role/addRole": { | |||||
"post": { | "post": { | ||||
"description": "添加角色", | "description": "添加角色", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -159,7 +159,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/adminInfo": { | |||||
"/api/role/adminInfo": { | |||||
"get": { | "get": { | ||||
"description": "管理员信息", | "description": "管理员信息", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -204,7 +204,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/adminList": { | |||||
"/api/role/adminList": { | |||||
"post": { | "post": { | ||||
"description": "管理员列表", | "description": "管理员列表", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -251,7 +251,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/bindAdminRole/": { | |||||
"/api/role/bindAdminRole/": { | |||||
"post": { | "post": { | ||||
"description": "管理员绑定角色", | "description": "管理员绑定角色", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -298,7 +298,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/deleteAdmin/{$adm_id}": { | |||||
"/api/role/deleteAdmin/{$adm_id}": { | |||||
"delete": { | "delete": { | ||||
"description": "删除管理员", | "description": "删除管理员", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -336,7 +336,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/deleteRole/{$id}": { | |||||
"/api/role/deleteRole/{$id}": { | |||||
"delete": { | "delete": { | ||||
"description": "删除角色", | "description": "删除角色", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -383,7 +383,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/permissionGroupList": { | |||||
"/api/role/permissionGroupList": { | |||||
"get": { | "get": { | ||||
"description": "权限组列表", | "description": "权限组列表", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -428,7 +428,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/roleBindPermissionGroup": { | |||||
"/api/role/roleBindPermissionGroup": { | |||||
"post": { | "post": { | ||||
"description": "角色绑定权限组", | "description": "角色绑定权限组", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -475,7 +475,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/roleList": { | |||||
"/api/role/roleList": { | |||||
"get": { | "get": { | ||||
"description": "角色列表", | "description": "角色列表", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -513,7 +513,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/updateAdmin": { | |||||
"/api/role/updateAdmin": { | |||||
"post": { | "post": { | ||||
"description": "修改管理员信息", | "description": "修改管理员信息", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -560,7 +560,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/updateAdminState": { | |||||
"/api/role/updateAdminState": { | |||||
"post": { | "post": { | ||||
"description": "修改管理员状态", | "description": "修改管理员状态", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -607,7 +607,7 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/updateRole": { | |||||
"/api/role/updateRole": { | |||||
"post": { | "post": { | ||||
"description": "修改角色状态", | "description": "修改角色状态", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -17,7 +17,7 @@ | |||||
}, | }, | ||||
"host": "localhost:1004 or xxxxx.medium.dengbiao.top", | "host": "localhost:1004 or xxxxx.medium.dengbiao.top", | ||||
"paths": { | "paths": { | ||||
"/admin/login": { | |||||
"/api/login": { | |||||
"post": { | "post": { | ||||
"description": "登入", | "description": "登入", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -57,7 +57,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/addAdmin": { | |||||
"/api/role/addAdmin": { | |||||
"post": { | "post": { | ||||
"description": "新增管理员", | "description": "新增管理员", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -104,7 +104,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/addRole": { | |||||
"/api/role/addRole": { | |||||
"post": { | "post": { | ||||
"description": "添加角色", | "description": "添加角色", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -151,7 +151,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/adminInfo": { | |||||
"/api/role/adminInfo": { | |||||
"get": { | "get": { | ||||
"description": "管理员信息", | "description": "管理员信息", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -196,7 +196,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/adminList": { | |||||
"/api/role/adminList": { | |||||
"post": { | "post": { | ||||
"description": "管理员列表", | "description": "管理员列表", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -243,7 +243,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/bindAdminRole/": { | |||||
"/api/role/bindAdminRole/": { | |||||
"post": { | "post": { | ||||
"description": "管理员绑定角色", | "description": "管理员绑定角色", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -290,7 +290,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/deleteAdmin/{$adm_id}": { | |||||
"/api/role/deleteAdmin/{$adm_id}": { | |||||
"delete": { | "delete": { | ||||
"description": "删除管理员", | "description": "删除管理员", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -328,7 +328,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/deleteRole/{$id}": { | |||||
"/api/role/deleteRole/{$id}": { | |||||
"delete": { | "delete": { | ||||
"description": "删除角色", | "description": "删除角色", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -375,7 +375,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/permissionGroupList": { | |||||
"/api/role/permissionGroupList": { | |||||
"get": { | "get": { | ||||
"description": "权限组列表", | "description": "权限组列表", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -420,7 +420,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/roleBindPermissionGroup": { | |||||
"/api/role/roleBindPermissionGroup": { | |||||
"post": { | "post": { | ||||
"description": "角色绑定权限组", | "description": "角色绑定权限组", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -467,7 +467,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/roleList": { | |||||
"/api/role/roleList": { | |||||
"get": { | "get": { | ||||
"description": "角色列表", | "description": "角色列表", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -505,7 +505,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/updateAdmin": { | |||||
"/api/role/updateAdmin": { | |||||
"post": { | "post": { | ||||
"description": "修改管理员信息", | "description": "修改管理员信息", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -552,7 +552,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/updateAdminState": { | |||||
"/api/role/updateAdminState": { | |||||
"post": { | "post": { | ||||
"description": "修改管理员状态", | "description": "修改管理员状态", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -599,7 +599,7 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"/admin/role/updateRole": { | |||||
"/api/role/updateRole": { | |||||
"post": { | "post": { | ||||
"description": "修改角色状态", | "description": "修改角色状态", | ||||
"consumes": [ | "consumes": [ | ||||
@@ -147,7 +147,7 @@ info: | |||||
title: 广告联盟-媒体平台 | title: 广告联盟-媒体平台 | ||||
version: "1.0" | version: "1.0" | ||||
paths: | paths: | ||||
/admin/login: | |||||
/api/login: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -173,7 +173,7 @@ paths: | |||||
summary: 登陆 | summary: 登陆 | ||||
tags: | tags: | ||||
- ADMIN | - ADMIN | ||||
/admin/role/addAdmin: | |||||
/api/role/addAdmin: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -204,7 +204,7 @@ paths: | |||||
summary: 新增管理员 | summary: 新增管理员 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/addRole: | |||||
/api/role/addRole: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -235,7 +235,7 @@ paths: | |||||
summary: 添加角色 | summary: 添加角色 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/adminInfo: | |||||
/api/role/adminInfo: | |||||
get: | get: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -265,7 +265,7 @@ paths: | |||||
summary: 管理员信息 | summary: 管理员信息 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/adminList: | |||||
/api/role/adminList: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -296,7 +296,7 @@ paths: | |||||
summary: 管理员列表 | summary: 管理员列表 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/bindAdminRole/: | |||||
/api/role/bindAdminRole/: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -327,7 +327,7 @@ paths: | |||||
summary: 管理员绑定角色 | summary: 管理员绑定角色 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/deleteAdmin/{$adm_id}: | |||||
/api/role/deleteAdmin/{$adm_id}: | |||||
delete: | delete: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -352,7 +352,7 @@ paths: | |||||
summary: 删除管理员 | summary: 删除管理员 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/deleteRole/{$id}: | |||||
/api/role/deleteRole/{$id}: | |||||
delete: | delete: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -383,7 +383,7 @@ paths: | |||||
summary: 删除角色 | summary: 删除角色 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/permissionGroupList: | |||||
/api/role/permissionGroupList: | |||||
get: | get: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -413,7 +413,7 @@ paths: | |||||
summary: 权限组列表 | summary: 权限组列表 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/roleBindPermissionGroup: | |||||
/api/role/roleBindPermissionGroup: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -444,7 +444,7 @@ paths: | |||||
summary: 角色绑定权限组 | summary: 角色绑定权限组 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/roleList: | |||||
/api/role/roleList: | |||||
get: | get: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -469,7 +469,7 @@ paths: | |||||
summary: 角色列表 | summary: 角色列表 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/updateAdmin: | |||||
/api/role/updateAdmin: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -500,7 +500,7 @@ paths: | |||||
summary: 修改管理员信息 | summary: 修改管理员信息 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/updateAdminState: | |||||
/api/role/updateAdminState: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||
@@ -531,7 +531,7 @@ paths: | |||||
summary: 修改管理员状态 | summary: 修改管理员状态 | ||||
tags: | tags: | ||||
- ADMIN-权限管理 | - ADMIN-权限管理 | ||||
/admin/role/updateRole: | |||||
/api/role/updateRole: | |||||
post: | post: | ||||
consumes: | consumes: | ||||
- application/json | - application/json | ||||