You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
5.5 KiB
103 lines
5.5 KiB
from django.urls import path
|
|
|
|
from myapp import views
|
|
|
|
app_name = 'myapp'
|
|
urlpatterns = [
|
|
# 后台管理api
|
|
path('admin/overview/count', views.admin.overview.count),
|
|
path('admin/overview/sysInfo', views.admin.overview.sysInfo),
|
|
path('admin/thing/list', views.admin.thing.list_api),
|
|
path('admin/thing/detail', views.admin.thing.detail),
|
|
path('admin/thing/create', views.admin.thing.create),
|
|
path('admin/thing/update', views.admin.thing.update),
|
|
path('admin/thing/delete', views.admin.thing.delete),
|
|
path('admin/comment/list', views.admin.comment.list_api),
|
|
path('admin/comment/create', views.admin.comment.create),
|
|
path('admin/comment/update', views.admin.comment.update),
|
|
path('admin/comment/delete', views.admin.comment.delete),
|
|
path('admin/classification/list', views.admin.classification.list_api),
|
|
path('admin/classification/create', views.admin.classification.create),
|
|
path('admin/classification/update', views.admin.classification.update),
|
|
path('admin/classification/delete', views.admin.classification.delete),
|
|
path('admin/tag/list', views.admin.tag.list_api),
|
|
path('admin/tag/create', views.admin.tag.create),
|
|
path('admin/tag/update', views.admin.tag.update),
|
|
path('admin/tag/delete', views.admin.tag.delete),
|
|
path('admin/record/list', views.admin.record.list_api),
|
|
path('admin/record/create', views.admin.record.create),
|
|
path('admin/record/update', views.admin.record.update),
|
|
path('admin/record/delete', views.admin.record.delete),
|
|
path('admin/banner/list', views.admin.banner.list_api),
|
|
path('admin/banner/create', views.admin.banner.create),
|
|
path('admin/banner/update', views.admin.banner.update),
|
|
path('admin/banner/delete', views.admin.banner.delete),
|
|
path('admin/ad/list', views.admin.ad.list_api),
|
|
path('admin/ad/create', views.admin.ad.create),
|
|
path('admin/ad/update', views.admin.ad.update),
|
|
path('admin/ad/delete', views.admin.ad.delete),
|
|
path('admin/notice/list', views.admin.notice.list_api),
|
|
path('admin/notice/create', views.admin.notice.create),
|
|
path('admin/notice/update', views.admin.notice.update),
|
|
path('admin/notice/delete', views.admin.notice.delete),
|
|
path('admin/order/list', views.admin.order.list_api),
|
|
path('admin/order/create', views.admin.order.create),
|
|
path('admin/order/update', views.admin.order.update),
|
|
path('admin/order/cancel_order', views.admin.order.cancel_order),
|
|
path('admin/order/pass_order', views.admin.order.pass_order),
|
|
path('admin/order/delay', views.admin.order.delay),
|
|
path('admin/order/delete', views.admin.order.delete),
|
|
path('admin/loginLog/list', views.admin.loginLog.list_api),
|
|
path('admin/loginLog/create', views.admin.loginLog.create),
|
|
path('admin/loginLog/update', views.admin.loginLog.update),
|
|
path('admin/loginLog/delete', views.admin.loginLog.delete),
|
|
path('admin/opLog/list', views.admin.opLog.list_api),
|
|
path('admin/errorLog/list', views.admin.errorLog.list_api),
|
|
path('admin/user/list', views.admin.user.list_api),
|
|
path('admin/user/create', views.admin.user.create),
|
|
path('admin/user/update', views.admin.user.update),
|
|
path('admin/user/updatePwd', views.admin.user.updatePwd),
|
|
path('admin/user/delete', views.admin.user.delete),
|
|
path('admin/user/info', views.admin.user.info),
|
|
path('admin/adminLogin', views.admin.user.admin_login),
|
|
|
|
|
|
# 前台管理api
|
|
path('index/classification/list', views.index.classification.list_api),
|
|
path('index/tag/list', views.index.tag.list_api),
|
|
path('index/user/login', views.index.user.login),
|
|
path('index/user/register', views.index.user.register),
|
|
path('index/user/info', views.index.user.info),
|
|
path('index/user/update', views.index.user.update),
|
|
path('index/user/updatePwd', views.index.user.updatePwd),
|
|
path('index/notice/list_api', views.index.notice.list_api),
|
|
path('index/thing/list', views.index.thing.list_api),
|
|
path('index/thing/detail', views.index.thing.detail),
|
|
path('index/thing/increaseWishCount', views.index.thing.increaseWishCount),
|
|
path('index/thing/addWishUser', views.index.thing.addWishUser),
|
|
path('index/thing/removeWishUser', views.index.thing.removeWishUser),
|
|
path('index/thing/getWishThingList', views.index.thing.getWishThingList),
|
|
path('index/thing/addCollectUser', views.index.thing.addCollectUser),
|
|
path('index/thing/removeCollectUser', views.index.thing.removeCollectUser),
|
|
path('index/thing/getCollectThingList', views.index.thing.getCollectThingList),
|
|
path('index/thing/increaseRecommendCount', views.index.thing.increaseRecommendCount),
|
|
path('index/thing/listUserThing', views.index.thing.list_user_thing_api),
|
|
path('index/thing/create', views.index.thing.create),
|
|
path('index/thing/update', views.index.thing.update),
|
|
path('index/comment/list', views.index.comment.list_api),
|
|
path('index/comment/listMyComments', views.index.comment.list_my_comment),
|
|
path('index/comment/create', views.index.comment.create),
|
|
path('index/comment/delete', views.index.comment.delete),
|
|
path('index/comment/like', views.index.comment.like),
|
|
path('index/order/list', views.index.order.list_api),
|
|
path('index/order/create', views.index.order.create),
|
|
path('index/order/cancel_order', views.index.order.cancel_order),
|
|
path('index/address/list', views.index.address.list_api),
|
|
path('index/address/create', views.index.address.create),
|
|
path('index/address/update', views.index.address.update),
|
|
path('index/address/delete', views.index.address.delete),
|
|
|
|
|
|
|
|
]
|