mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-20 14:18:24 +00:00
感谢zou2699 指出拼写错误 CreateAuthorityPatams --> CreateAuthorityParams
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user