用户反馈信息基本CRUD

This commit is contained in:
chy
2025-06-05 17:43:22 +08:00
parent 77067adf33
commit 830f9c236b
23 changed files with 682 additions and 58 deletions

View File

@ -34,10 +34,19 @@ func init() {
}
enforcer.LoadPolicy()
enforcer.AddGroupingPolicy(consts.UserRoleCode, consts.GuestRoleCode) // 用户继承游客角色权限
enforcer.AddGroupingPolicy(consts.UserRoleCode, consts.GuestRoleCode) // 用户继承游客角色权限
enforcer.AddGroupingPolicy(consts.StoreRoleCode, consts.UserRoleCode) // 门店继承用户角色权限
enforcer.AddGroupingPolicy(consts.MerchantRoleCode, consts.StoreRoleCode) // 商户继承门店角色权限
enforcer.AddGroupingPolicy(consts.AdminRoleCode, consts.MerchantRoleCode) // 管理员继承商户角色权限
// 用户
{
// 反馈信息
enforcer.AddPolicy("user", "/x/feedback", "GET", "获取反馈信息列表")
enforcer.AddPolicy("user", "/x/feedback", "POST", "添加反馈信息")
enforcer.AddPolicy("user", "/x/feedback", "PUT", "更新反馈信息")
//enforcer.AddPolicy("user", "/x/feedback/*", "DELETE", "删除反馈信息")*
enforcer.AddPolicy("user", "/x/feedback/*", "Get", "查询反馈详情")
}
// 门店
{
// 奖励类型