This commit is contained in:
2025-08-05 17:46:15 +08:00
parent e43d78ddf0
commit 4409bea9fc
106 changed files with 18564 additions and 7 deletions
+18
View File
@@ -282,6 +282,24 @@ 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()+") 数据初始化失败!")