from django.urls import path

from backend.view import (
    AddMemberView,
    ClubMemberCatalogView,
    ClubMemberDisableView,
    ClubMemberEnableView,
    FaKuanChuLiView,
    FaKuanChuangJianView,
    FaKuanLieBiaoView,
    FaKuanTongJiView,
    GetGuanliListView,
    GetMemberListView,
    GetOperationLogListView,
    GetWithdrawSettingsView,
    GetZuzhangListView,
    KefuGetDashouListView,
    KefuGetShangjiaListView,
    PopupNoticeListAPIView,
    PopupNoticeModifyAPIView,
    UpdateMemberView,
    UpdateWithdrawSettingsView,
)
from users.views import KefuPunishmentListView
from jituan.views_display import (
    ClubGonggaoView, ClubLunboListView, ClubLunboManageView,
    ClubTupianListView, ClubTupianManageView,
)
from jituan.views import (
    ClubAdminAssignmentListView,
    ClubAuditLogListView,
    ClubManageView,
    ClubCaiwuView,
    ClubChongzhiFinanceView,
    ClubDashouRegisterView,
    ClubHuiyuanBankuaiView,
    ClubHuiyuanStatsView,
    ClubKefuLoginView,
    ClubKefuMenuAccessView,
    ClubListView,
    ClubMeContextView,
    ClubOrderFinanceView,
    ClubOrderTypesView,
    ClubSzxxView,
    ClubUserSummaryView,
    ClubWechatLoginView,
)

from jituan.views_identity_tag import (
    IdentityTagBindListView,
    IdentityTagBindView,
    IdentityTagListView,
    IdentityTagManageView,
    IdentityTagMyTagsView,
)

urlpatterns = [
    path('auth/wechat-login', ClubWechatLoginView.as_view(), name='jituan_wechat_login'),
    path('auth/kefu-login', ClubKefuLoginView.as_view(), name='jituan_kefu_login'),
    path('auth/me-context', ClubMeContextView.as_view(), name='jituan_me_context'),
    path('auth/menu-access', ClubKefuMenuAccessView.as_view(), name='jituan_menu_access'),
    path('auth/dashou-register', ClubDashouRegisterView.as_view(), name='jituan_dashou_register'),
    path('houtai/club-manage', ClubManageView.as_view(), name='jituan_club_manage'),
    path('houtai/admin-assignments', ClubAdminAssignmentListView.as_view(), name='jituan_admin_assignments'),
    path('houtai/caiwu', ClubCaiwuView.as_view(), name='jituan_caiwu'),
    path('houtai/szxx', ClubSzxxView.as_view(), name='jituan_szxx'),
    path('houtai/audit-log', ClubAuditLogListView.as_view(), name='jituan_audit_log'),
    path('houtai/hqczrz', GetOperationLogListView.as_view(), name='jituan_operation_log'),
    path('houtai/hthqtxpz', GetWithdrawSettingsView.as_view(), name='jituan_withdraw_get'),
    path('houtai/htxgtxsz', UpdateWithdrawSettingsView.as_view(), name='jituan_withdraw_update'),
    path('houtai/cwddhqlx', ClubOrderTypesView.as_view(), name='jituan_cwddhqlx'),
    path('houtai/cwhqjtddsj', ClubOrderFinanceView.as_view(), name='jituan_cwhqjtddsj'),
    path('houtai/cwqtczhq', ClubChongzhiFinanceView.as_view(), name='jituan_cwqtczhq'),
    path('houtai/cwhybkhq', ClubHuiyuanBankuaiView.as_view(), name='jituan_cwhybkhq'),
    path('houtai/hybkjtsj', ClubHuiyuanStatsView.as_view(), name='jituan_hybkjtsj'),
    path('houtai/user-summary', ClubUserSummaryView.as_view(), name='jituan_user_summary'),
  # 用户列表（与 /houtai/* 同一视图，按 X-Club-Id 过滤；详情仍走 /houtai/*）
    path('houtai/kefuhqdslb', KefuGetDashouListView.as_view(), name='jituan_dashou_list'),
    path('houtai/hthqgslb', GetGuanliListView.as_view(), name='jituan_guanshi_list'),
    path('houtai/hqsjgllb', KefuGetShangjiaListView.as_view(), name='jituan_shangjia_list'),
    path('houtai/hthqzzlb', GetZuzhangListView.as_view(), name='jituan_zuzhang_list'),
    path('houtai/lunbo-list', ClubLunboListView.as_view(), name='jituan_lunbo_list'),
    path('houtai/lunbo-manage', ClubLunboManageView.as_view(), name='jituan_lunbo_manage'),
    path('houtai/gonggao', ClubGonggaoView.as_view(), name='jituan_gonggao'),
    path('identity-tag/my-tags', IdentityTagMyTagsView.as_view(), name='jituan_identity_my_tags'),
    path('houtai/identity-tag/list', IdentityTagListView.as_view(), name='jituan_identity_tag_list'),
    path('houtai/identity-tag/manage', IdentityTagManageView.as_view(), name='jituan_identity_tag_manage'),
    path('houtai/identity-tag/bind-list', IdentityTagBindListView.as_view(), name='jituan_identity_tag_bind_list'),
    path('houtai/identity-tag/bind', IdentityTagBindView.as_view(), name='jituan_identity_tag_bind'),
    path('houtai/tupian-list', ClubTupianListView.as_view(), name='jituan_tupian_list'),
    path('houtai/tupian-manage', ClubTupianManageView.as_view(), name='jituan_tupian_manage'),
    path('houtai/hthqtcxx', PopupNoticeListAPIView.as_view(), name='jituan_popup_list'),
    path('houtai/htxgtcxx', PopupNoticeModifyAPIView.as_view(), name='jituan_popup_modify'),
    path('houtai/htglyhqcfsltj', FaKuanTongJiView.as_view(), name='jituan_penalty_stats'),
    path('houtai/hthqfklb', FaKuanLieBiaoView.as_view(), name='jituan_penalty_list'),
    path('houtai/glyclfk', FaKuanChuLiView.as_view(), name='jituan_penalty_action'),
    path('houtai/htfksc', FaKuanChuangJianView.as_view(), name='jituan_penalty_create'),
    path('houtai/kefu-cfgl', KefuPunishmentListView.as_view(), name='jituan_kefu_cfgl'),
    path('houtai/hthqhylb', GetMemberListView.as_view(), name='jituan_member_list'),
    path('houtai/htxghyxx', UpdateMemberView.as_view(), name='jituan_member_update'),
    path('houtai/httjhy', AddMemberView.as_view(), name='jituan_member_add'),
    path('houtai/hthycatalog', ClubMemberCatalogView.as_view(), name='jituan_member_catalog'),
    path('houtai/hthysj', ClubMemberEnableView.as_view(), name='jituan_member_enable'),
    path('houtai/hthyxj', ClubMemberDisableView.as_view(), name='jituan_member_disable'),
    path('club/list', ClubListView.as_view(), name='jituan_club_list'),
]
