chore: load_path添加discount_setting路径注册
This commit is contained in:
parent
84eaf6c1ee
commit
1db2cc3109
@ -94,6 +94,7 @@ for d in crud_defs:
|
||||
# any — 无需登录(菜单、CRUD别名目录)
|
||||
PATHS_ANY = [
|
||||
f"/{MOD}/menu.ui",
|
||||
f"/{MOD}/discount_setting",
|
||||
]
|
||||
|
||||
# 每个 CRUD 定义 → any 别名目录 + logined 页面和脚本
|
||||
@ -106,6 +107,11 @@ PATHS_LOGINED = [
|
||||
f"/{MOD}/promote",
|
||||
f"/{MOD}/promote.ui",
|
||||
f"/{MOD}/promote/index.dspy",
|
||||
# 产品折扣设置(独立页面)
|
||||
f"/{MOD}/discount_setting",
|
||||
f"/{MOD}/discount_setting/index.ui",
|
||||
f"/{MOD}/discount_setting/get_products_with_discount.dspy",
|
||||
f"/{MOD}/discount_setting/save_discount.dspy",
|
||||
]
|
||||
|
||||
for d in crud_defs:
|
||||
@ -130,7 +136,12 @@ for api_path in get_api_files():
|
||||
# ============================================================
|
||||
|
||||
# operator — 全部折扣管理功能
|
||||
PATHS_OPERATOR = []
|
||||
PATHS_OPERATOR = [
|
||||
f"/{MOD}/discount_setting",
|
||||
f"/{MOD}/discount_setting/index.ui",
|
||||
f"/{MOD}/discount_setting/get_products_with_discount.dspy",
|
||||
f"/{MOD}/discount_setting/save_discount.dspy",
|
||||
]
|
||||
for d in crud_defs:
|
||||
alias = d["alias"]
|
||||
tblname = d["tblname"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user