Files
Django/backend/view.py

135 lines
5.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
后台管理视图聚合模块backend/view.py
本模块原为 9176 行单文件,已按功能组拆分到 backend/views/ 子包。
为保持向后兼容backend/urls.py、jituan/urls.py、jituan/views_*.py 的引用不变),
本文件作为聚合 re-export 入口,重新导出所有视图类与公共符号。
功能组拆分:
- views.roles 角色权限 & 管理员用户
- views.kefu 客服管理(打手/商家/聊天权限)
- views.products 商品管理
- views.members 会员 & 俱乐部会员
- views.guanli 管事管理
- views.withdraw_settings 提现配置
- views.zuzhang 组长管理
- views.system 系统配置(操作日志/类型专区/费率/弹窗)
- views.shops 店铺管理
- views.penalties 罚单管理
- views.sections 板块管理
- views.finance 财务管理
- views.titles 称号管理
- views.exams 考核管理
- views.zxkf 在线客服
"""
import logging
# 公共工具函数(被 jituan 模块通过 backend.view 引用)
from .utils import verify_kefu_permission
# 各功能组视图
from .views.roles import (
GetRolePermissionView, ModifyRolePermissionView, AddRoleView,
GetAdminRolesView, GetAdminUserListView, ModifyAdminUserView, AddAdminUserView,
)
from .views.kefu import (
KefuGetDashouListView, KefuGetDashouDetailView, KefuUpdateDashouView,
KefuGetShangjiaListView, KefuGetShangjiaDetailView, KefuUpdateShangjiaView,
KefuChatPermissionsView,
)
from .views.products import (
GetProductBaseDataView, GetProductListView, SaveProductOrderView,
AddProductView, DeleteProductView, GetProductDetailView, UpdateProductView,
)
from .views.members import (
GetMemberListView, UpdateMemberView, AddMemberView,
ClubMemberCatalogView, ClubMemberEnableView, ClubMemberDisableView,
)
from .views.guanli import (
GetGuanliListView, GetGuanliDetailView, PromoteGuanshiToZuzhangView,
UpdateGuanliView,
)
from .views.withdraw_settings import (
GetWithdrawSettingsView, UpdateWithdrawSettingsView,
)
from .views.zuzhang import (
GetZuzhangListView, GetZuzhangDetailView, UpdateZuzhangView, ChangeInviterView,
)
from .views.system import (
GetOperationLogListView, GetProductTypeZoneView, ModifyProductTypeZoneView,
GetRateView, ModifyRateView, PopupNoticeListAPIView, PopupNoticeModifyAPIView,
)
from .views.shops import (
ShopListView, ShopModifyView, ShopPublicTypeAndAuditView, ShopListForProductView,
ShopProductTypeMappingView, ShopProductModifyView, ProductListView, ProductModifyView,
)
from .views.penalties import (
FaKuanTongJiView, FaKuanLieBiaoView, FaKuanChuLiView, FaKuanPingTaiShenHeView,
FaKuanChuangJianView, FineApplyView, PunishDashouView,
)
from .views.sections import (
HqbkxxView, BkxgView,
)
from .views.finance import (
CaiwuView, CwhybkhqView, HybkjtsjView, SzxxView,
CwddhqlxView, CwhqjtddsjView, CwqtczhqView,
)
from .views.titles import (
KhpzhqView, ChzsgcView,
)
from .views.exams import (
KhgglView, ShgxgsjView, KhjlglView, KhjlczView,
)
from .views.zxkf import (
ZxkfghdsView,
)
# 模块级符号(保持向后兼容)
logger = logging.getLogger('houtai')
SHOP_PRODUCT_PERMS = ['1199ab', '1199abc', '1199abd']
__all__ = [
# roles
'GetRolePermissionView', 'ModifyRolePermissionView', 'AddRoleView',
'GetAdminRolesView', 'GetAdminUserListView', 'ModifyAdminUserView', 'AddAdminUserView',
# kefu
'KefuGetDashouListView', 'KefuGetDashouDetailView', 'KefuUpdateDashouView',
'KefuGetShangjiaListView', 'KefuGetShangjiaDetailView', 'KefuUpdateShangjiaView',
'KefuChatPermissionsView',
# products
'GetProductBaseDataView', 'GetProductListView', 'SaveProductOrderView',
'AddProductView', 'DeleteProductView', 'GetProductDetailView', 'UpdateProductView',
# members
'GetMemberListView', 'UpdateMemberView', 'AddMemberView',
'ClubMemberCatalogView', 'ClubMemberEnableView', 'ClubMemberDisableView',
# guanli
'GetGuanliListView', 'GetGuanliDetailView', 'PromoteGuanshiToZuzhangView',
'UpdateGuanliView',
# withdraw_settings
'GetWithdrawSettingsView', 'UpdateWithdrawSettingsView',
# zuzhang
'GetZuzhangListView', 'GetZuzhangDetailView', 'UpdateZuzhangView', 'ChangeInviterView',
# system
'GetOperationLogListView', 'GetProductTypeZoneView', 'ModifyProductTypeZoneView',
'GetRateView', 'ModifyRateView', 'PopupNoticeListAPIView', 'PopupNoticeModifyAPIView',
# shops
'ShopListView', 'ShopModifyView', 'ShopPublicTypeAndAuditView', 'ShopListForProductView',
'ShopProductTypeMappingView', 'ShopProductModifyView', 'ProductListView', 'ProductModifyView',
# penalties
'FaKuanTongJiView', 'FaKuanLieBiaoView', 'FaKuanChuLiView', 'FaKuanPingTaiShenHeView',
'FaKuanChuangJianView', 'FineApplyView', 'PunishDashouView',
# sections
'HqbkxxView', 'BkxgView',
# finance
'CaiwuView', 'CwhybkhqView', 'HybkjtsjView', 'SzxxView',
'CwddhqlxView', 'CwhqjtddsjView', 'CwqtczhqView',
# titles
'KhpzhqView', 'ChzsgcView',
# exams
'KhgglView', 'ShgxgsjView', 'KhjlglView', 'KhjlczView',
# zxkf
'ZxkfghdsView',
# 公共符号
'verify_kefu_permission', 'logger', 'SHOP_PRODUCT_PERMS',
]