2025-03-17 18:06:54 +08:00

33 lines
2.2 KiB
Python

# -*- coding: utf-8 -*-
#路由文件
from django.urls import path, re_path
from rest_framework import routers
from apps.lyTiktokUnion.views.dyBalanceRecordViews import DYBalanceRecordViewSet
from apps.lyTiktokUnion.views.dySystemAccountViews import DYSystemAccountViewSet
from apps.lyTiktokUnion.views.dyAwardTaskManageViews import DyAwardTaskManageViewSet
from apps.lyTiktokUnion.views.dyProductManageViews import DyProductManageViewSet
system_url = routers.SimpleRouter()
system_url.register(r'cashout', DYBalanceRecordViewSet)
system_url.register(r'systemaccount', DYSystemAccountViewSet)
system_url.register(r'awardTask', DyAwardTaskManageViewSet)
system_url.register(r'product', DyProductManageViewSet)
urlpatterns = [
path('cashout/audit/', DYBalanceRecordViewSet.as_view({'post': 'audit'}), name='后台提现审核'),
path('systemaccount/getCodeBuyinUserinfo/', DYSystemAccountViewSet.as_view({'get': 'getCodeBuyinUserinfo'}), name='后台获取抖客/团长列表'),
path('systemaccount/createCodeBuyin/', DYSystemAccountViewSet.as_view({'post': 'createCodeBuyin'}), name='后台生成抖客/单人授权拼链接'),
path('awardTask/syncAwardTask/',DyAwardTaskManageViewSet.as_view({'post':'sync_alliance_AwardTask'}), name='后台同步赏金任务'),
re_path('awardTask/editsort/(?P<pk>.*?)/',DyAwardTaskManageViewSet.as_view({'put':'editsort'}), name='赏金任务管理排序'),
re_path('awardTask/disablestatus/(?P<pk>.*?)/',DyAwardTaskManageViewSet.as_view({'put':'disablestatus'}), name='赏金任务管理禁用'),
re_path('product/disablestatus/(?P<pk>.*?)/',DyProductManageViewSet.as_view({'put':'disablestatus'}), name='后台禁用商品'),
re_path('product/disablecalcaward/(?P<pk>.*?)/',DyProductManageViewSet.as_view({'put':'disablecalcaward'}), name='后台禁用商品计算奖励'),
re_path('product/editsort/(?P<pk>.*?)/',DyProductManageViewSet.as_view({'put':'editsort'}), name='后台修改商品排序'),
re_path('product/editAttribute/(?P<pk>.*?)/',DyProductManageViewSet.as_view({'put':'editAttribute'}), name='修改商品属性'),
path('product/syncColonelGoods/',DyProductManageViewSet.as_view({'post':'sync_alliance_colonel_goods'}), name='后台同步团长活动商品'),
]
urlpatterns += system_url.urls