from django.urls import path

from backend.view import (
    AddMemberView,
    ClubMemberCatalogView,
    ClubMemberDisableView,
    ClubMemberEnableView,
    FaKuanChuLiView,
    FaKuanPingTaiShenHeView,
    FaKuanChuangJianView,
    FaKuanLieBiaoView,
    FaKuanTongJiView,
    GetGuanliListView,
    GetMemberListView,
    GetOperationLogListView,
    GetWithdrawSettingsView,
    GetZuzhangListView,
    KhgglView,
    KefuGetDashouListView,
    KefuGetShangjiaListView,
    KefuAddShangjiaView,
    PopupNoticeListAPIView,
    PopupNoticeModifyAPIView,
    ShgxgsjView,
    UpdateMemberView,
    MemberCardImageUploadView,
    MemberRechargeRecordsView,
    MemberBundleCreateView,
    UpdateWithdrawSettingsView,
)
from users.views import KefuPunishmentListView
from jituan.views_display import (
    ClubGonggaoView, ClubLunboListView, ClubLunboManageView,
    ClubTupianListView, ClubTupianManageView,
)
from jituan.views_miniapp_assets import (
    ClubMiniappIconListView,
    ClubMiniappIconManageView,
    ClubPindaoManageView,
)
from jituan.views import (
    ClubAdminAssignmentListView,
    ClubAuditLogListView,
    ClubManageView,
    ClubCertUploadView,
    ClubCaiwuView,
    ClubChongzhiFinanceView,
    ClubDashouRegisterView,
    ClubHuiyuanBankuaiView,
    ClubHuiyuanStatsView,
    ClubKefuLoginView,
    ClubKefuMenuAccessView,
    ClubPermDebugView,
    ClubListView,
    ClubDefaultInviteView,
    ClubMeContextView,
    ClubOrderFinanceView,
    ClubOrderTypesView,
    ClubSzxxView,
    ClubUserSummaryView,
    ClubWechatLoginView,
    ClubWechatOAuthLoginView,
    ClubWxBindRefreshView,
)

from jituan.views_dashou_exam import (
    DashouExamBundleView,
    DashouExamConfigAdminView,
    DashouExamImageManageView,
    DashouExamMarkPassedView,
    DashouExamQuestionListView,
    DashouExamQuestionManageView,
    DashouExamStatusView,
)
from jituan.views_fake_grab_order import (
    FakeGrabOrderAvatarUploadView,
    FakeGrabOrderListView,
    FakeGrabOrderManageView,
)
from jituan.views_club_catalog import (
    ClubKaoheChenghaoCatalogView,
    ClubKaoheChenghaoDisableView,
    ClubKaoheChenghaoEnableView,
    ClubKaoheChenghaoListView,
    ClubShangpinLeixingCatalogView,
    ClubShangpinLeixingDisableView,
    ClubShangpinLeixingEnableView,
    ClubShangpinLeixingIconView,
    ClubShangpinLeixingListView,
    ClubShangpinLeixingShowPriceView,
)
from jituan.views_shenhe_manage import ClubKhgglAddView
from jituan.views_payment_channel import ClubPaymentChannelManageView
from jituan.views_identity_tag import (
    IdentityTagBindListView,
    IdentityTagBindView,
    IdentityTagListView,
    IdentityTagManageView,
    IdentityTagMyTagsView,
)
from jituan.views_recharge_page_copy import (
    RechargePageCopyAdminGetView,
    RechargePageCopyAdminSaveView,
    RechargePageCopyView,
)
from jituan.views_order_grab_share import ClubOrderGrabLinkManageView
from jituan.views_fund_freeze import (
    FundFreezeConfigView,
    FundFreezeLedgerView,
    FundFreezeRiskView,
)
from jituan.views_club_migrate import (
    ClubMigrateAdminView,
    ClubMigrateConfirmView,
    ClubMigrateGateView,
    ClubMigrateIssueQrView,
    ClubMigrateMyRecordsView,
    ClubMigratePreviewView,
    ClubMigrateSetPasswordView,
    ClubMigrateTokenInfoView,
)
from jituan.views_role_agreement import RoleAgreementAdminView
from jituan.views_order_deal import (
    OrderDealConfigView,
    MerchantDealStatView,
    DashouDealStatView,
)

urlpatterns = [
    path('auth/wechat-login', ClubWechatLoginView.as_view(), name='jituan_wechat_login'),
    path('auth/wechat-oauth-login', ClubWechatOAuthLoginView.as_view(), name='jituan_wechat_oauth_login'),
    path('auth/refresh-wx-bind', ClubWxBindRefreshView.as_view(), name='jituan_refresh_wx_bind'),
    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/perm-debug', ClubPermDebugView.as_view(), name='jituan_perm_debug'),
    path('auth/dashou-register', ClubDashouRegisterView.as_view(), name='jituan_dashou_register'),
    path('houtai/club-manage', ClubManageView.as_view(), name='jituan_club_manage'),
    path('houtai/order-grab-link', ClubOrderGrabLinkManageView.as_view(), name='jituan_order_grab_link'),
    path('houtai/fund-freeze-config', FundFreezeConfigView.as_view(), name='jituan_fund_freeze_config'),
    path('houtai/fund-freeze-ledger', FundFreezeLedgerView.as_view(), name='jituan_fund_freeze_ledger'),
    path('houtai/fund-freeze-risk', FundFreezeRiskView.as_view(), name='jituan_fund_freeze_risk'),
    path('houtai/club-migrate', ClubMigrateAdminView.as_view(), name='jituan_club_migrate_admin'),
    path('migrate/gate', ClubMigrateGateView.as_view(), name='jituan_migrate_gate'),
    path('migrate/preview', ClubMigratePreviewView.as_view(), name='jituan_migrate_preview'),
    path('migrate/set_password', ClubMigrateSetPasswordView.as_view(), name='jituan_migrate_set_password'),
    path('migrate/issue_qr', ClubMigrateIssueQrView.as_view(), name='jituan_migrate_issue_qr'),
    path('migrate/confirm', ClubMigrateConfirmView.as_view(), name='jituan_migrate_confirm'),
    path('migrate/my_records', ClubMigrateMyRecordsView.as_view(), name='jituan_migrate_my_records'),
    path('migrate/token_info', ClubMigrateTokenInfoView.as_view(), name='jituan_migrate_token_info'),
    path('houtai/role-agreement', RoleAgreementAdminView.as_view(), name='jituan_role_agreement'),
    path('houtai/order-deal-config', OrderDealConfigView.as_view(), name='jituan_order_deal_config'),
    path('houtai/merchant-deal-stat', MerchantDealStatView.as_view(), name='jituan_merchant_deal_stat'),
    path('houtai/dashou-deal-stat', DashouDealStatView.as_view(), name='jituan_dashou_deal_stat'),
    path('houtai/payment-channel-manage', ClubPaymentChannelManageView.as_view(), name='jituan_payment_channel_manage'),
    path('houtai/club-cert-upload', ClubCertUploadView.as_view(), name='jituan_club_cert_upload'),
    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/tjsj', KefuAddShangjiaView.as_view(), name='jituan_shangjia_add'),
    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('recharge-page-copy', RechargePageCopyView.as_view(), name='jituan_recharge_page_copy'),
    path('houtai/recharge-page-copy/get', RechargePageCopyAdminGetView.as_view(), name='jituan_recharge_page_copy_get'),
    path('houtai/recharge-page-copy/save', RechargePageCopyAdminSaveView.as_view(), name='jituan_recharge_page_copy_save'),
    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/miniapp-icon-list', ClubMiniappIconListView.as_view(), name='jituan_miniapp_icon_list'),
    path('houtai/miniapp-icon-manage', ClubMiniappIconManageView.as_view(), name='jituan_miniapp_icon_manage'),
    path('houtai/pindao-manage', ClubPindaoManageView.as_view(), name='jituan_pindao_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/glyptshfk', FaKuanPingTaiShenHeView.as_view(), name='jituan_penalty_platform_audit'),
    path('houtai/htfksc', FaKuanChuangJianView.as_view(), name='jituan_penalty_create'),
    path('houtai/kefu-cfgl', KefuPunishmentListView.as_view(), name='jituan_kefu_cfgl'),
    path('houtai/khggl', KhgglView.as_view(), name='jituan_khggl'),
    path('houtai/shgxgsj', ShgxgsjView.as_view(), name='jituan_shgxgsj'),
    path('houtai/khggl-add', ClubKhgglAddView.as_view(), name='jituan_khggl_add'),
    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('houtai/hy-card-upload', MemberCardImageUploadView.as_view(), name='jituan_member_card_upload'),
    path('houtai/hy-recharge-records', MemberRechargeRecordsView.as_view(), name='jituan_member_recharge_records'),
    path('houtai/hy-bundle-create', MemberBundleCreateView.as_view(), name='jituan_member_bundle_create'),
    path('houtai/fake-grab-order-list', FakeGrabOrderListView.as_view(), name='jituan_fake_grab_order_list'),
    path('houtai/fake-grab-order-manage', FakeGrabOrderManageView.as_view(), name='jituan_fake_grab_order_manage'),
    path('houtai/fake-grab-order-avatar', FakeGrabOrderAvatarUploadView.as_view(), name='jituan_fake_grab_order_avatar'),
    path('houtai/club-leixing-list', ClubShangpinLeixingListView.as_view(), name='jituan_club_leixing_list'),
    path('houtai/club-leixing-catalog', ClubShangpinLeixingCatalogView.as_view(), name='jituan_club_leixing_catalog'),
    path('houtai/club-leixing-enable', ClubShangpinLeixingEnableView.as_view(), name='jituan_club_leixing_enable'),
    path('houtai/club-leixing-disable', ClubShangpinLeixingDisableView.as_view(), name='jituan_club_leixing_disable'),
    path('houtai/club-leixing-icon', ClubShangpinLeixingIconView.as_view(), name='jituan_club_leixing_icon'),
    path('houtai/club-leixing-show-price', ClubShangpinLeixingShowPriceView.as_view(), name='jituan_club_leixing_show_price'),
    path('houtai/club-kaohe-list', ClubKaoheChenghaoListView.as_view(), name='jituan_club_kaohe_list'),
    path('houtai/club-kaohe-catalog', ClubKaoheChenghaoCatalogView.as_view(), name='jituan_club_kaohe_catalog'),
    path('houtai/club-kaohe-enable', ClubKaoheChenghaoEnableView.as_view(), name='jituan_club_kaohe_enable'),
    path('houtai/club-kaohe-disable', ClubKaoheChenghaoDisableView.as_view(), name='jituan_club_kaohe_disable'),
    path('dashou-exam/status', DashouExamStatusView.as_view(), name='jituan_dashou_exam_status'),
    path('dashou-exam/bundle', DashouExamBundleView.as_view(), name='jituan_dashou_exam_bundle'),
    path('dashou-exam/mark-passed', DashouExamMarkPassedView.as_view(), name='jituan_dashou_exam_mark_passed'),
    path('houtai/dashou-exam-config', DashouExamConfigAdminView.as_view(), name='jituan_dashou_exam_config'),
    path('houtai/dashou-exam-question-list', DashouExamQuestionListView.as_view(), name='jituan_dashou_exam_q_list'),
    path('houtai/dashou-exam-question-manage', DashouExamQuestionManageView.as_view(), name='jituan_dashou_exam_q_manage'),
    path('houtai/dashou-exam-image-manage', DashouExamImageManageView.as_view(), name='jituan_dashou_exam_img'),
    path('club/list', ClubListView.as_view(), name='jituan_club_list'),
    path('club/default-invite', ClubDefaultInviteView.as_view(), name='jituan_club_default_invite'),
]
