fix and optimize casbin (#1121)

* - 删除rabac_model.conf, 改为字符串代码, 方便部署
- 删除casbin相关配置文件

* fix: delete api时只传id导致casbin_rules表清空bug
This commit is contained in:
SliverHorn
2022-06-10 09:57:09 +08:00
committed by GitHub
parent 7d82785ade
commit 582c39611d
8 changed files with 35 additions and 39 deletions

View File

@@ -5,7 +5,6 @@ type Server struct {
Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
Email Email `mapstructure:"email" json:"email" yaml:"email"`
Casbin Casbin `mapstructure:"casbin" json:"casbin" yaml:"casbin"`
System System `mapstructure:"system" json:"system" yaml:"system"`
Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
// auto