casbin相关操作修改为事务
This commit is contained in:
@@ -182,15 +182,3 @@ func (apiService *ApiService) DeleteApisByIds(ids request.IdsReq) (err error) {
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
//@author: [piexlmax](https://github.com/piexlmax)
|
||||
//@function: DeleteApis
|
||||
//@description: 删除选中API
|
||||
//@param: apis []model.SysApi
|
||||
//@return: err error
|
||||
|
||||
func (apiService *ApiService) FreshCasbin() (err error) {
|
||||
e := CasbinServiceApp.Casbin()
|
||||
err = e.LoadPolicy()
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user