From 1db2cc31093e88cb9182e3beaefc814c16f14cff Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 24 Jun 2026 21:02:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20load=5Fpath=E6=B7=BB=E5=8A=A0discount?= =?UTF-8?q?=5Fsetting=E8=B7=AF=E5=BE=84=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/load_path.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index 66b9680..5f0a8a7 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -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"]