mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-19 05:38:07 +00:00
updata->update
Updata->Update
This commit is contained in:
@@ -14,11 +14,11 @@ import (
|
||||
// @Produce application/json
|
||||
// @Param data body sysModel.CasbinInReceive true "更改角色api权限"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /casbin/casbinPUpdata [post]
|
||||
func CasbinPUpdata(c *gin.Context) {
|
||||
// @Router /casbin/casbinPUpdate [post]
|
||||
func CasbinPUpdate(c *gin.Context) {
|
||||
var cmr sysModel.CasbinInReceive
|
||||
_ = c.ShouldBindJSON(&cmr)
|
||||
err := new(sysModel.CasbinModel).CasbinPUpdata(cmr.AuthorityId, cmr.CasbinInfos)
|
||||
err := new(sysModel.CasbinModel).CasbinPUpdate(cmr.AuthorityId, cmr.CasbinInfos)
|
||||
if err != nil {
|
||||
servers.ReportFormat(c, false, fmt.Sprintf("添加规则失败,%v", err), gin.H{})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user