感谢zou2699 指出拼写错误 CreateAuthorityPatams --> CreateAuthorityParams

This commit is contained in:
pixel
2019-12-20 11:37:43 +08:00
parent 403a18a1ce
commit 91dfec0427
6 changed files with 114 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/gin-gonic/gin"
)
type CreateAuthorityPatams struct {
type CreateAuthorityParams struct {
AuthorityId string `json:"authorityId"`
AuthorityName string `json:"authorityName"`
}
@@ -18,7 +18,7 @@ type CreateAuthorityPatams struct {
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPatams true "创建角色"
// @Param data body api.CreateAuthorityParams true "创建角色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /authority/createAuthority [post]
func CreateAuthority(c *gin.Context) {

View File

@@ -17,7 +17,7 @@ type CasbinInReceive struct {
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPatams true "更改角色api权限"
// @Param data body api.CreateAuthorityParams true "更改角色api权限"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casbin/casbinPUpdata [post]
func CasbinPUpdata(c *gin.Context) {
@@ -36,7 +36,7 @@ func CasbinPUpdata(c *gin.Context) {
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPatams true "获取权限列表"
// @Param data body api.CreateAuthorityParams true "获取权限列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casbin/getPolicyPathByAuthorityId [post]
func GetPolicyPathByAuthorityId(c *gin.Context) {