route.php
1.5 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
<?php
use \think\Route;
#学生端首页
Route::get("/","index/index/index");
#项目管理
Route::group("project",[
# 项目列表
"lst"=>["index/dc_project/index"],
# 项目详情
"detail/:id"=>["index/dcompetition_detial/index", ["method" => "get"], ["id" => "\d+"]],
# 报名
"enter/:project_type_id/[:id]"=>["index/signup_info/index"],
# 提交表单
"doSubmitForm"=>["index/signup_info/doSubmitForm",['method'=>'post']],
# 项目成员查询
"getMemberInfo"=>["index/signup_info/getMemberInfo",['method'=>'post']],
# 按用户ID查询用户
"getUserByUserId"=>["index/signup_info/getUserByUserId",['method'=>'post']],
# 按用户ID集合查询用户
"getUsersByIds/[:ids]"=>["index/signup_info/getUsersByIds",['method'=>'get']],
"getTeachersByIds/[:ids]"=>["index/signup_info/getTeachersByIds",['method'=>'get']],
# 按教师ID查询教师
"getTeacherInfo"=>["index/signup_info/getTeacherInfo",['method'=>'POST']],
#新增项目成员页面
"addStudents"=>["index/signup_info/addStudents",['method'=>'get']],
]);
# 竞赛管理
Route::group("match",[
# 竞赛列表
"lst"=>["index/science_competition/index"],
# 竞赛详情
"detail/:id"=>["index/science_competition/detail"],
# 竞赛报名
//"enter/:match_id"=>["index/"]
]);
# 个人中心
Route::group("user",[
#个人中心页
"index"=>["index/user/index"],
#我的双创
#我的竞赛
]);
# 学习中心
Route::group("study",[
]);