拆分了 config

This commit is contained in:
2026-07-04 19:29:53 +08:00
parent 63cb8e9ee9
commit 7608faf396
9 changed files with 4162 additions and 3718 deletions

74
config/views/__init__.py Normal file
View File

@@ -0,0 +1,74 @@
"""
配置应用视图聚合模块config/views/__init__.py
本模块原为 config/views.py3718 行单文件),已按功能组拆分到 config/views/ 子包。
本文件作为聚合 re-export 入口,重新导出所有视图类与公共符号。
外部引用config/urls.py、backend/urls.py、merchant_ops/views_templates.py保持不变。
功能组拆分:
- miniapp_config 小程序动态配置(动态配置/海报/弹窗/提现方式/手机号认证)
- admin_config 管理员配置(商品公告/配置查询/图片上传/群与利率更新)
- admin_stats 管理员统计/记录(打手排行/账号查询/修改记录)
- merchant_templates 商家订单模板
- merchant_links 商家链接/客户订单(含 IPUtils、OrderLinkThrottle
- qrcode_poster 二维码/海报(关注/管事二维码/组长海报)
- scripts 话术配置(含辅助函数)
"""
import logging
# 各功能组视图
from .miniapp_config import (
GetDynamicConfigView, HaibaoPeizhiView, PopupConfigView,
GetWithdrawModeView, CheckPhoneAuthView,
)
from .admin_config import (
ShangpinGonggaoView, AdminConfigQueryView, AdminUploadImageView,
AdminUpdateConfigView,
)
from .admin_stats import (
DashouPaihangView, GetAdminZhanghaoView, GetXiugaiJiluView,
)
from .merchant_templates import (
ShangjiaMobanListView, ShangjiaTianjiaMobanView,
ShangjiaShanchuMobanView, ShangjiaGengxinMobanView,
)
from .merchant_links import (
ShangjiaGenerateLinkView, ShangjiaLianjieListView,
KehuGetDingdanLianjieView, KehuTianxieDingdanView,
IPUtils, OrderLinkThrottle,
)
from .qrcode_poster import (
GuanZhuAListView, GuanshiQRCodeView, ZuzhangHaibaoView,
)
from .scripts import (
HuashuHqView, HuashuMatchView,
MiniappScriptHoutaiListView, MiniappScriptHoutaiModifyView,
)
# 模块级符号(保持向后兼容)
logger = logging.getLogger(__name__)
__all__ = [
# miniapp_config
'GetDynamicConfigView', 'HaibaoPeizhiView', 'PopupConfigView',
'GetWithdrawModeView', 'CheckPhoneAuthView',
# admin_config
'ShangpinGonggaoView', 'AdminConfigQueryView', 'AdminUploadImageView',
'AdminUpdateConfigView',
# admin_stats
'DashouPaihangView', 'GetAdminZhanghaoView', 'GetXiugaiJiluView',
# merchant_templates
'ShangjiaMobanListView', 'ShangjiaTianjiaMobanView',
'ShangjiaShanchuMobanView', 'ShangjiaGengxinMobanView',
# merchant_links
'ShangjiaGenerateLinkView', 'ShangjiaLianjieListView',
'KehuGetDingdanLianjieView', 'KehuTianxieDingdanView',
'IPUtils', 'OrderLinkThrottle',
# qrcode_poster
'GuanZhuAListView', 'GuanshiQRCodeView', 'ZuzhangHaibaoView',
# scripts
'HuashuHqView', 'HuashuMatchView',
'MiniappScriptHoutaiListView', 'MiniappScriptHoutaiModifyView',
# 公共符号
'logger',
]