8 Commits

Author SHA1 Message Date
Hermes Agent
c9372ae2c6 fix: CRUD路径改为tablename/index.ui格式,清理错误的.ui路径 2026-06-24 01:24:59 +08:00
Hermes Agent
b834b040de fix: load_path.py补充discount_list.ui和discount_detail_list.ui路径
这两个是老表的直接.ui文件路径,menu.ui引用的是这些路径而非CRUD目录。
需要在logined和operator角色中都注册。
2026-06-24 01:19:35 +08:00
Hermes Agent
daa6e66d09 fix: 重写load_path.py,补全RBAC权限路径
问题:discount_list/discount_detail_list/discount_customer_bind_list 返回403
原因:缺少CRUD目录路径、auto-generated .dspy、角色专属权限

修复:
- PATHS_ANY: 添加5个CRUD目录别名
- PATHS_LOGINED: 添加25个CRUD auto-generated .dspy
- PATHS_OPERATOR: reseller.operator可管理全部折扣功能
- PATHS_SALE: reseller.sale可查看促销码和客户归属
2026-06-24 01:16:33 +08:00
Hermes Agent
a6a553ea78 feat: load_path.py添加新CRUD页面和API路径权限注册
新增15条logined路径:
- discount_marketing_list, discount_promo_code_list, discount_customer_bind_list
- api/marketing_*, api/promo_code_*, api/customer_bind_* (9个API)
2026-06-24 01:08:05 +08:00
a00dc84cb5 bugfix 2026-05-28 15:44:12 +08:00
8424d71090 bugfix 2026-05-28 15:43:53 +08:00
049b4225ad feat: add load_path.py RBAC permission registration script 2026-05-27 13:16:04 +08:00
3a57205337 fix(discount): 兼容discount_detail表不存在的情况,fallback到discount.discount字段 + 新增discount_detail表定义和迁移脚本 + 修复discount.json中float类型缺少dec字段 2026-05-24 22:31:42 +08:00