This commit is contained in:
2025-08-06 09:02:16 +08:00
parent 2cddbc3e73
commit c48bae28be
93 changed files with 10628 additions and 36 deletions
-18
View File
@@ -282,24 +282,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
{Ptype: "p", V0: "9528", V1: "/customer/customerList", V2: "GET"},
{Ptype: "p", V0: "9528", V1: "/autoCode/createTemp", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/user/getUserInfo", V2: "GET"},
// 微信公众号权限 - 管理员角色888
{Ptype: "p", V0: "888", V1: "/wechat/mp/config", V2: "GET"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/config", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/config/test", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/config/validate", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/qrcode/generate", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/quota/clear", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/config/list", V2: "GET"},
{Ptype: "p", V0: "888", V1: "/wechat/mp/config/:id", V2: "DELETE"},
// 微信公众号权限 - 普通管理员角色8881
{Ptype: "p", V0: "8881", V1: "/wechat/mp/config", V2: "GET"},
{Ptype: "p", V0: "8881", V1: "/wechat/mp/config", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/wechat/mp/config/test", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/wechat/mp/config/validate", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/wechat/mp/qrcode/generate", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/wechat/mp/quota/clear", V2: "POST"},
}
if err := db.Create(&entities).Error; err != nil {
return ctx, errors.Wrap(err, "Casbin 表 ("+i.InitializerName()+") 数据初始化失败!")