- 管理员登录
http://localhost:8080/admin/login
/admin/login
返回结果{"id":1,"username":"lzcu","password":"123456"}
- 论文接口
1 论文列表
/paper/list
参数:teacher_id (作用:选择对应的导师查看它)
返回结果{"code":200,"data":[{"id":1,"imageUrl":"http://s2.mogucdn.com/p2/170502/upload_45hbk9731127d1g0g35di9d1fjjbc_1396x1963.jpg_999x999.v1c0.webp","classifyId":1,"classify":"web","sourceId":1,"source":"自拟","name":"校园二手交易网站","description":"基于web的开发","date":"1493904096464","teacherId":12,"teacherName":"郭丽"}]}
- 添加论文
/admin/paper/add
参数:imageUrl
classifyId 分类id
classify
teacherId
teacherName
sourceId
source
name
description
date
返回结果{code:200,data:data}
- 删除论文
/admin/del
参数:paper_id 论文id
- 修改论文
/admin/update
参数同添加一样,注意id
- 导师接口
- 导师列表
/teacher/list
参数:无(如果将来数据较多,添加page,count,sort【分类,比如按学院】)
- 导师详情,所带学生
/teacher/listdetail
说明:根据teacher_id进入详情页面,在teacher表中根据id查询对应得数据,再在paper表中查询teacher_id是这个的,返回过来
参数:teacher_id
返回结果:{
"id":"t2",
"name":"朱小军",
"tel":"13893184678",
"jobTitle":"教授",
"groups":1,
"qq":"2236793632",
"college":"信息工程学院" ,
"num":5,
"image":"image/aa.jpg",
"selected_num":0,
"teacherPaper":[
{
"id": "p1",
"imageUrl": "image/aa.jpg",
"source":"自拟",
"name": "校院二手交易网站",
"date": "2016-06-01 11:05"
},{
"id": "p8",
"imageUrl": "image/ee.jpg",
"source":"自拟",
"name": "基于PHP电子书城app",
"date": "2016-06-01 11:05"
}
]
}
- 添加导师
/admin/teacher/add
参数:id
name
tel
jobTitle
groups
college
num
selectd_num
返回结果:
{code:200,data:[数据]}
- 删除导师
/admin/teacher/sel
参数:teacher_id 导师id
返回结果:
{code:200,data:[数据]}
- 修改导师
/admin/teacher/update
参数:同增加一样,注意对应id,逻辑,根据id来修改
- app端的注册与登录
- webapp登录
/login
参数:
user 用户信息
返回数据:{
"id": "asdf123sdf",
"name": "张三",
"image": "image/head.png"
}
- webapp注册
/register
参数:user 用户信息
返回数据:
{
"id": "asdf123sdf",
参数:
>>teacher_id
返回结果:
>>> {
"id":"t2",
"name":"朱小军",
"tel":"13893184678",
"jobTitle":"教授",
"groups":1,
"qq":"2236793632",
"college":"信息工程学院" ,
"num":5,
"image":"image/aa.jpg",
"selected_num":0,
"teacherPaper":[
{
"id": "p1",
"imageUrl": "image/aa.jpg",
"source":"自拟",
"name": "校院二手交易网站",
"date": "2016-06-01 11:05"
},{
"id": "p8",
"imageUrl": "image/ee.jpg",
"source":"自拟",
"name": "基于PHP电子书城app",
"date": "2016-06-01 11:05"
}
]
}
>- 添加导师
>/admin/teacher/add
>参数:
>>id
name
tel
jobTitle
groups
college
num
selectd_num
>返回结果:
{code:200,data:[数据]}
>- 删除导师
>/admin/teacher/sel
>参数:
>>teacher_id 导师id
>返回结果:
{code:200,data:[数据]}
>- 修改导师
>/admin/teacher/update
>参数:
>>同增加一样,注意对应id,逻辑,根据id来修改
- app端的注册与登录
>- webapp登录
>/login
参数:
user 用户信息
>返回数据:
>>{
"id": "asdf123sdf",
"name": "张三",
"image": "image/head.png"
}
>- webapp注册
>/register
参数:
>>user 用户信息
>返回数据:
>>{
"id": "asdf123sdf",
"name": "张猪猪"
}
- webapp所有分类,来源,导师接口,用于过滤论文数据
/classifyfilter
/sourcefilter
/teacherfilter
参数:无
返回数据:
[{
"id": "",
"name": "不限"
}, {
"id": "s1",
"name": "自拟"
}, {
"id": "s2",
"name": "老师分配"
}]
- 学生选题接口列表与后台管理系统选题列表
- 后台管理系统选题列表
/admin/selected/list
参数:teacher_id
返回数据
对应导师的学生/注册时的信息{
code:200,
data:[{
id:1212,
studentName:张三,
}]
}
- 学生选题接口列表
/myselectd/lidt
参数无
返回结果:
对应论文信息
- 学生选题接口
select
参数paper_id 论文id
返回结果:
{
code:200,
status:1 & 0 1表示论文选择成功,0表示未成功
}
网友评论