89 lines
4.0 KiB
Python
89 lines
4.0 KiB
Python
from django.urls import path,re_path
|
|
|
|
from server.views.mind_map import *
|
|
from server.views.jump import *
|
|
from server.views.user import *
|
|
from server.view_test import *
|
|
from server_auth.lib.auth import *
|
|
from rest_framework_swagger.views import get_swagger_view
|
|
from rest_framework.documentation import include_docs_urls
|
|
from drf_yasg.views import get_schema_view
|
|
from drf_yasg import openapi
|
|
|
|
schema_view = get_schema_view(
|
|
openapi.Info(
|
|
title="Lemon API接口文档平台", # 必传
|
|
default_version='v1', # 必传
|
|
description="这是一个美轮美奂的接口文档",
|
|
terms_of_service="http://api.keyou.site",
|
|
contact=openapi.Contact(email="keyou100@qq.com"),
|
|
license=openapi.License(name="BSD License"),
|
|
),
|
|
public=True,
|
|
# permission_classes=(permissions.AllowAny,), # 权限类
|
|
)
|
|
|
|
urlpatterns = [
|
|
# ---------------------------------------------------
|
|
path('test', test), #
|
|
# path('teacher_login',teacher_login),
|
|
path('teacher_login', LoginView_teacher.as_view()), # 用户登录
|
|
|
|
re_path(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'),
|
|
path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
|
|
path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
|
|
# ---------------------------------------------------
|
|
path('', to_dashboard), # 跳转列表界面
|
|
path('2_d', to_detail), # 跳转详情界面
|
|
path('s_2_d', share_to_detail), # 从分享链接跳转详细界面
|
|
path('2_share', to_share), # 到分享界面
|
|
path('2_baiban', to_baiban), # 到协作白板
|
|
path('2_echart', to_echarts), # 到图标界面
|
|
path('chat_room', to_chat_room), # 到聊天室界面
|
|
path('reng_wu', to_rengwu), # 到任务界面
|
|
path('ke_cheng', to_kecheng), # 到课程界面
|
|
path('2_write', to_write), # 到协同边界页面
|
|
path('2_pinglun', to_pinglun), # 评论
|
|
path('2_admin', to_admin), # 跳转到管理员页面
|
|
|
|
|
|
path('2_star', to_star), # 到收藏界面
|
|
path('2_recycle', to_recycle), # 回收站
|
|
path('2_information', to_information), # 个人信息
|
|
path('2_liuyan', to_liuyan), # 留言
|
|
|
|
path(r'jsmind_op', JsMindLogView.as_view()), # 更新快照,get日志操作
|
|
# ---------------------------------------------------
|
|
path('create', JsMindView.as_view()), # 创建思维导图
|
|
path('list', JsMindView.as_view()), # 查询思维导图
|
|
path('d', JsMindView.as_view()), # 获得导图详情
|
|
path('s_d', JsMindShareView.as_view()), # 获得导图详情
|
|
path('delete', JsMindView.as_view()), # 删除思维导图
|
|
path('delete_cancel', JsMindView.as_view()), # 思维导图恢复
|
|
path('share', JsMindShareView.as_view()), # 分享思维导图,查询等
|
|
path('star', JsMindStarView.as_view()), # 收藏思维导图
|
|
|
|
path('bianji', JsMindbianjiView.as_view()), # 跳转到协同编辑页面
|
|
path('qunti', to_qunti), # 群体感知
|
|
path('gptfenxi', to_gpt), # gpt分析
|
|
path('pinglun', JsMindpinglunView.as_view()), # 跳转到评论页面
|
|
# ---------------------------------------------------
|
|
path('register', MindUserView.as_view()), # 用户注册
|
|
path('login', LoginView.as_view()), # 用户登录
|
|
path('logout', LogoutView.as_view()), # 用户登出
|
|
|
|
# ---------------------------------------------------
|
|
path('tercher_upload_somthings',TeacherView.as_view()), # 老师端上传一些文件
|
|
|
|
# ---------------------------------------------------
|
|
path('post_task/', post_task, name='post_task'),
|
|
path('jiaoben/', jiaoben, name='jiaoben'),
|
|
|
|
path('post_kecheng/', post_kecheng, name='post_kecheng'),
|
|
path('come_kecheng/', come_kecheng, name='come_kecheng'),
|
|
path('comment_control/', comment_control,name='comment_control'), #提交评论处理的路由
|
|
path('admin_fun/', admin_fun,name='admin_fun'),
|
|
path('liuyan_fun/', liuyan_fun,name='liuyan_fun')
|
|
|
|
]
|