48 lines
3.8 KiB
Python
48 lines
3.8 KiB
Python
from django.urls import path
|
|
|
|
from management import views
|
|
|
|
urlpatterns = [
|
|
# 用户管理
|
|
path('user/management/', views.user_management, name='user-management-management'),
|
|
path('user/delete/<str:pk>/', views.user_delete, name='user-management-delete'),
|
|
# 群组管理
|
|
path('group/management/', views.group_management, name='group-management-management'),
|
|
path('group/create/', views.group_create, name='group-management-create'),
|
|
path('group/update/<str:pk>/', views.group_update, name='group-management-update'),
|
|
path('group/delete/<str:pk>/', views.group_delete, name='group-management-delete'),
|
|
|
|
# 添加群组管理员、成员
|
|
path('group/admin/create/<str:pk>/', views.group_admin_create, name='group-admin-create'),
|
|
path('group/admin/delete/<str:pk>/<str:group_pk>/', views.group_admin_delete, name='group-admin-delete'),
|
|
path('group/user/create/<str:pk>/', views.group_user_create, name='group-user-create'),
|
|
path('group/user/delete/<str:pk>/<str:group_pk>/', views.group_user_delete, name='group-user-delete'),
|
|
|
|
# 主体单位管理
|
|
path('organization/management/', views.organization_management, name='organization-management-management'),
|
|
path('organization/create/', views.organization_create, name='organization-management-create'),
|
|
path('organization/delete/<str:pk>/', views.organization_delete, name='organization-management-delete'),
|
|
path('organization/update/<str:pk>/', views.organization_update, name='organization-management-update'),
|
|
|
|
#新媒体管理
|
|
path('newmedia/management/create/menu/',views.newmedia_management_create_menu,name='newmedia-management-create-menu'),
|
|
path('newmedia/management/edit/menu/',views.newmedia_management_edit_menu,name='newmedia-management-edit-menu'),
|
|
path('newmedia/management/create/weixin/',views.newmedia_management_create_weixin,name='newmedia-management-create-weixin'),
|
|
path('newmedia/management/create/weibo/',views.newmedia_management_create_weibo,name='newmedia-management-create-weibo'),
|
|
path('newmedia/management/create/toutiao/',views.newmedia_management_create_toutiao,name='newmedia-management-create-toutiao'),
|
|
path('newmedia/management/create/qita/',views.newmedia_management_create_qita,name='newmedia-management-create-qita'),
|
|
path('newmedia/management/edit/weixin/',views.newmedia_management_edit_weixin,name='newmedia-management-edit-weixin'),
|
|
path('newmedia/management/edit/weibo/',views.newmedia_management_edit_weibo,name='newmedia-management-edit-weibo'),
|
|
path('newmedia/management/edit/toutiao/',views.newmedia_management_edit_toutiao,name='newmedia-management-edit-toutiao'),
|
|
path('newmedia/management/edit/qita/',views.newmedia_management_edit_qita,name='newmedia-management-edit-qita'),
|
|
path('newmedia/management/update/weixin/<str:pk>/',views.newmedia_management_update_weixin,name='newmedia-management-update-weixin'),
|
|
path('newmedia/management/update/weibo/<str:pk>/',views.newmedia_management_update_weibo,name='newmedia-management-update-weibo'),
|
|
path('newmedia/management/update/toutiao/<str:pk>/',views.newmedia_management_update_toutiao,name='newmedia-management-update-toutiao'),
|
|
path('newmedia/management/update/qita/<str:pk>/',views.newmedia_management_update_qita,name='newmedia-management-update-qita'),
|
|
path('newmedia/management/delete/weixin/<str:pk>/',views.newmedia_management_delete_weixin,name='newmedia-management-delete-weixin'),
|
|
path('newmedia/management/delete/weibo/<str:pk>/',views.newmedia_management_delete_weibo,name='newmedia-management-delete-weibo'),
|
|
path('newmedia/management/delete/toutiao/<str:pk>/',views.newmedia_management_delete_toutiao,name='newmedia-management-delete-toutiao'),
|
|
path('newmedia/management/delete/qita/<str:pk>/',views.newmedia_management_delete_qita,name='newmedia-management-delete-qita'),
|
|
|
|
]
|