修復部分創建bug,數據庫api更新權限更改

This commit is contained in:
pixel
2020-04-09 11:07:43 +08:00
parent 5b29b661dc
commit d447913056
12 changed files with 45 additions and 42 deletions

View File

@@ -21,11 +21,11 @@ import (
func CreateAuthority(c *gin.Context) {
var auth model.SysAuthority
_ = c.ShouldBindJSON(&auth)
err, authBack := service.CreateAuthority(&auth)
err, authBack := service.CreateAuthority(auth)
if err != nil {
response.FailWithMessage(fmt.Sprintf("创建失败,%v", err), c)
} else {
response.OkWithData(resp.SysAuthorityResponse{Authority: *authBack}, c)
response.OkWithData(resp.SysAuthorityResponse{Authority: authBack}, c)
}
}