"""
后台管理视图聚合模块（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,
    KefuAddShangjiaView,
    KefuChatPermissionsView, KefuImUserClubFilterView,
    DashouGiftHuiyuanSaveView, DashouGiftHuiyuanRemoveView,
)
from .views.products import (
    GetProductBaseDataView, GetProductListView, SaveProductOrderView,
    AddProductView, DeleteProductView, GetProductDetailView, UpdateProductView,
    UpdateZhiKanShenheView,
)
from .views.members import (
    GetMemberListView, UpdateMemberView, AddMemberView,
    ClubMemberCatalogView, ClubMemberEnableView, ClubMemberDisableView,
    MemberCardImageUploadView, MemberRechargeRecordsView, MemberBundleCreateView,
)
from .views.guanli import (
    GetGuanliListView, GetGuanliDetailView, PromoteGuanshiToZuzhangView,
    UpdateGuanliView, GuanshiChangeLeaderQuotaView, GuanshiChangeLeaderLogView,
)
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,
    ShopCopyCatalogView,
)
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',
    'DashouGiftHuiyuanSaveView', 'DashouGiftHuiyuanRemoveView',
    'KefuGetShangjiaListView', 'KefuGetShangjiaDetailView', 'KefuUpdateShangjiaView',
    'KefuAddShangjiaView',
    'KefuChatPermissionsView', 'KefuImUserClubFilterView',
    # products
    'GetProductBaseDataView', 'GetProductListView', 'SaveProductOrderView',
    'AddProductView', 'DeleteProductView', 'GetProductDetailView', 'UpdateProductView',
    'UpdateZhiKanShenheView',
    # members
    'GetMemberListView', 'UpdateMemberView', 'AddMemberView',
    'ClubMemberCatalogView', 'ClubMemberEnableView', 'ClubMemberDisableView',
    'MemberCardImageUploadView', 'MemberRechargeRecordsView', 'MemberBundleCreateView',
    # guanli
    'GetGuanliListView', 'GetGuanliDetailView', 'PromoteGuanshiToZuzhangView',
    'UpdateGuanliView', 'GuanshiChangeLeaderQuotaView', 'GuanshiChangeLeaderLogView',
    # 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',
    'ShopCopyCatalogView',
    # 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',
]
