urls.py
7.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
"""HisinApi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from api.ApiList import login,index,audition,my,notifications,appversion,community
urlpatterns = [
#登录注册模块
path('admin', admin.site.urls),
path('', index.index),
path('api/sendsms',login.sendsms),
path('api/v2/sendsms', login.v2sendsms),
path('api/login', login.user_login),
path('api/sms_verify/login', login.sms_verify_login),
path('api/wechat/auth', login.wechatAuth),
path('api/register', login.register),
path('api/v2/register', login.v2register),
path('api/v3/register', login.v3register),
path('api/reset', login.restPwd),
path('api/business_list', login.businessList),
#首页模块
path('api/user', index.user),
path('api/activity/view', index.UserViewActivity),
path('api/examines', index.Examines.as_view()), #注册用户待审核列表
path('api/activitys', index.GetActivitys.as_view()),
path('api/v2/activitys', index.V2GetActivitys.as_view()), #去掉收藏活动
path('api/v3/activitys', index.V3GetActivitys.as_view()), #加入收藏活动
path('api/examine_status', index.examineStatus.as_view()),
path('api/banner', index.banners),
path('api/v2/banner', index.v2banners),
path('api/banner/detail', index.bannerDetail),
path('api/activity/attend_user',index.GetActivityUser.as_view() ),
path('api/activity/unlike', index.Unlike.as_view()),
path('api/activity/completes', index.GetCompleteActivity.as_view()),
path('api/events', index.Events),
path('api/action', index.Action),
path('api/band_list', index.BandList.as_view()),
path('api/band_detail', index.BandDetail.as_view()),
path('api/band_link_activity', index.BandLinkActivity.as_view()),
path('api/activity/recommend', index.RecommenCasedList.as_view()),
#我的模块
path('api/upload', my.upload),
path('api/user/avatar',my.updateUserAvatar),
path('api/user/activitys',my.MyActivitys.as_view()),
path('api/user/activity_detail', my.SaveOrSubmitList),
path('api/v2/user/activity_detail', my.V2SaveOrSubmitList),
path('api/user/activity_sumbit', my.UpdateSumbit),
path('api/user/submit_examine', my.SubmitExamine),
path('api/v2/user/submit_examine', my.V2SubmitExamine),
path('api/user/set_tag', my.SetUserTags),
path('api/user/tag_list', my.getUserTag),
path('api/user/unbind', my.unbind),
path('api/user/bind', my.bind),
path('api/admin/activitys', my.AdminActivitys.as_view()),
path('api/admin/submit_list', my.AdminSubmitList),
path('api/v2/admin/submit_list', my.V2AdminSubmitList),
path('api/user/singer_list', my.MySinget.as_view()),
path('api/user/singer', my.SingerInfo.as_view()),
path('api/v2/user/singer', my.SingerInfoV2.as_view()),
path('api/user/singer/avtivitys', my.SingerAvtivity.as_view()),
path('api/user/singer/complete', my.SingerComplete.as_view()), #我的歌手-被选中
path('api/user/singer/avtivity_detail', my.AvtivityDetail.as_view()),
path('api/user/banner', my.banners),
path('api/user/listen', my.Listen.as_view()),
path('api/user/ta_collection', my.TaCollection.as_view()),
path('api/user/ta_audition', my.TaAudition.as_view()),
path('api/user/resume_like', my.ResumeLike.as_view()),
path('api/user/remove_save', my.remove_save),
path('api/user/editor', my.editor),
path('api/user/change_phone', my.change_phone),
path('api/user/sound', my.UserSound.as_view()),
path('api/user/home', my.UserHome.as_view()),
path('api/user/tidings', my.UserTidings.as_view()),
path('api/user/follow', my.UserFollow.as_view()),
path('api/user/following', my.UserFollowing.as_view()),
path('api/user/find_singer', my.FindSinger.as_view()),
path('api/user/visitors', my.Visitors.as_view()),
path('api/user/remove_device', my.RemoveDevice.as_view()),
path('api/user/avtivitys/price', my.AvtivitysPrice.as_view()),
path('api/avtivitys/price_info', my.AvtivitysPriceInfo.as_view()),
#管理员查看试唱确认合作
path('api/admin/activity/confirm',my.ConfirmSinger),
#注销账号
path('api/user/delete', my.UserDelete),
#试唱模块
path('api/audition/materials', audition.AuditionMaterials), #小程序端物料,要升降调文件
path('api/activity/materials', audition.ActivityMaterials), #app 端物料,无须升降调文件
path('api/audition/send_materials', audition.SendMaterials), #自主上传方式发送物料
path('api/audition/split_audio', audition.SplitAudio),
path('api/audition/auto_submit', audition.AotoSubmit),
path('api/audition/online_save', audition.OnlineSave),
path('api/audition/join', audition.JoinActivity), # APP线上保存或提交
path('api/audition/upload', audition.UploadAudio),
path('api/audition/mixin_preview', audition.MixinPreview),
path('api/audition/part_preview', audition.PartPreview),
path('api/audition/mixin_check', audition.MixinCheck),
path('api/audition/collection', audition.Collection.as_view()),
path('api/audition/remove_collection', audition.cancelcollection),
#活动确定分享人
path('api/audition/share_users_list', audition.ShareUsersList.as_view()),
path('api/audition/share_users', audition.ShareUsers.as_view()),
#社区模块
path('api/community/tidings', community.Tidings.as_view()),
path('api/community/tidings/selete_activity', community.SeleteActivity.as_view()),
path('api/community/tidings_list', community.TidingsList.as_view()),
path('api/community/tidings/show', community.TidingsShow.as_view()),
path('api/community/tidings/limiting', community.TidingsLimiting.as_view()),
path('api/community/tidings/report', community.TidingsReport.as_view()),
path('api/community/tidings/record_user', community.RecordUser.as_view()),
path('api/community/tidings/interacts',community.TidingsInteracts.as_view()),
path('api/community/tidings/chat', community.TidingsChat.as_view()),
path('api/community/chat/relation', community.ChatRelation.as_view()),
path('api/community/chat/agent', community.ChatAgent.as_view()),
path('api/community/chat/agent_record', community.ChatAgentRecord.as_view()),
path('api/community/unlike', community.Unlike.as_view()),
path('api/community/tidings/comments', community.TidingsComments.as_view()), #动态评论
#消息通知模块
path('api/notifica/read_message', notifications.read),
path('api/notifica/system_message', notifications.SystemMessage.as_view()),
#极光推送
path('api/notifica/push', notifications.push_notifications),
#积分接口
path('api/user/point', my.UserPoint.as_view()),
# 用户协议
path('h5/user_agreement', index.useragreement),
#分享活动页面
path('h5/share/<id>/', index.songshare),
# 分享动态页面
# path('h5/sharetidings/<id>/', index.tidingsshare),
# app分享页面
path('h5/shareapp/', index.appshare),
#版本更新
path('api/app/version', appversion.versioninfo),
#获取app分享内容
path('api/share/dictionary_list', my.sharechildlist),
path('api/share/dictionary', my.sharechild),
#客服列表
path('api/customer_service', my.CustomerService.as_view()),
]