- 管理員登錄
http://localhost:8080/admin/login
/admin/login
返回結(jié)果{"id":1,"username":"lzcu","password":"123456"}
- 論文接口
1 論文列表
/paper/list
參數(shù):teacher_id (作用:選擇對(duì)應(yīng)的導(dǎo)師查看它)
返回結(jié)果{"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":"校園二手交易網(wǎng)站","description":"基于web的開(kāi)發(fā)","date":"1493904096464","teacherId":12,"teacherName":"郭麗"}]}
- 添加論文
/admin/paper/add
參數(shù):imageUrl
classifyId 分類id
classify
teacherId
teacherName
sourceId
source
name
description
date
返回結(jié)果{code:200,data:data}
- 刪除論文
/admin/del
參數(shù):paper_id 論文id
- 修改論文
/admin/update
參數(shù)同添加一樣女揭,注意id
- 導(dǎo)師接口
- 導(dǎo)師列表
/teacher/list
參數(shù):無(wú)(如果將來(lái)數(shù)據(jù)較多,添加page,count,sort【分類磷仰,比如按學(xué)院】)
- 導(dǎo)師詳情境蔼,所帶學(xué)生
/teacher/listdetail
說(shuō)明:根據(jù)teacher_id進(jìn)入詳情頁(yè)面伺通,在teacher表中根據(jù)id查詢對(duì)應(yīng)得數(shù)據(jù)逢享,再在paper表中查詢teacher_id是這個(gè)的瞒爬,返回過(guò)來(lái)
參數(shù):teacher_id
返回結(jié)果:{
"id":"t2",
"name":"朱小軍",
"tel":"13893184678",
"jobTitle":"教授",
"groups":1,
"qq":"2236793632",
"college":"信息工程學(xué)院" ,
"num":5,
"image":"image/aa.jpg",
"selected_num":0,
"teacherPaper":[
{
"id": "p1",
"imageUrl": "image/aa.jpg",
"source":"自擬",
"name": "校院二手交易網(wǎng)站",
"date": "2016-06-01 11:05"
},{
"id": "p8",
"imageUrl": "image/ee.jpg",
"source":"自擬",
"name": "基于PHP電子書(shū)城app",
"date": "2016-06-01 11:05"
}
]
}
- 添加導(dǎo)師
/admin/teacher/add
參數(shù):id
name
tel
jobTitle
groups
college
num
selectd_num
返回結(jié)果:
{code:200,data:[數(shù)據(jù)]}
- 刪除導(dǎo)師
/admin/teacher/sel
參數(shù):teacher_id 導(dǎo)師id
返回結(jié)果:
{code:200,data:[數(shù)據(jù)]}
- 修改導(dǎo)師
/admin/teacher/update
參數(shù):同增加一樣,注意對(duì)應(yīng)id,邏輯,根據(jù)id來(lái)修改
- app端的注冊(cè)與登錄
- webapp登錄
/login
參數(shù):
user 用戶信息
返回?cái)?shù)據(jù):{
"id": "asdf123sdf",
"name": "張三",
"image": "image/head.png"
}
- webapp注冊(cè)
/register
參數(shù):user 用戶信息
返回?cái)?shù)據(jù):
{
"id": "asdf123sdf",
參數(shù):
>>teacher_id
返回結(jié)果:
>>> {
"id":"t2",
"name":"朱小軍",
"tel":"13893184678",
"jobTitle":"教授",
"groups":1,
"qq":"2236793632",
"college":"信息工程學(xué)院" ,
"num":5,
"image":"image/aa.jpg",
"selected_num":0,
"teacherPaper":[
{
"id": "p1",
"imageUrl": "image/aa.jpg",
"source":"自擬",
"name": "校院二手交易網(wǎng)站",
"date": "2016-06-01 11:05"
},{
"id": "p8",
"imageUrl": "image/ee.jpg",
"source":"自擬",
"name": "基于PHP電子書(shū)城app",
"date": "2016-06-01 11:05"
}
]
}
>- 添加導(dǎo)師
>/admin/teacher/add
>參數(shù):
>>id
name
tel
jobTitle
groups
college
num
selectd_num
>返回結(jié)果:
{code:200,data:[數(shù)據(jù)]}
>- 刪除導(dǎo)師
>/admin/teacher/sel
>參數(shù):
>>teacher_id 導(dǎo)師id
>返回結(jié)果:
{code:200,data:[數(shù)據(jù)]}
>- 修改導(dǎo)師
>/admin/teacher/update
>參數(shù):
>>同增加一樣,注意對(duì)應(yīng)id,邏輯伤哺,根據(jù)id來(lái)修改
- app端的注冊(cè)與登錄
>- webapp登錄
>/login
參數(shù):
user 用戶信息
>返回?cái)?shù)據(jù):
>>{
"id": "asdf123sdf",
"name": "張三",
"image": "image/head.png"
}
>- webapp注冊(cè)
>/register
參數(shù):
>>user 用戶信息
>返回?cái)?shù)據(jù):
>>{
"id": "asdf123sdf",
"name": "張豬豬"
}
- webapp所有分類立莉,來(lái)源,導(dǎo)師接口蜓耻,用于過(guò)濾論文數(shù)據(jù)
/classifyfilter
/sourcefilter
/teacherfilter
參數(shù):無(wú)
返回?cái)?shù)據(jù):
[{
"id": "",
"name": "不限"
}, {
"id": "s1",
"name": "自擬"
}, {
"id": "s2",
"name": "老師分配"
}]
- 學(xué)生選題接口列表與后臺(tái)管理系統(tǒng)選題列表
- 后臺(tái)管理系統(tǒng)選題列表
/admin/selected/list
參數(shù):teacher_id
返回?cái)?shù)據(jù)
對(duì)應(yīng)導(dǎo)師的學(xué)生/注冊(cè)時(shí)的信息{
code:200,
data:[{
id:1212,
studentName:張三,
}]
}
- 學(xué)生選題接口列表
/myselectd/lidt
參數(shù)無(wú)
返回結(jié)果:
對(duì)應(yīng)論文信息
- 學(xué)生選題接口
select
參數(shù)paper_id 論文id
返回結(jié)果:
{
code:200,
status:1 & 0 1表示論文選擇成功刹淌,0表示未成功
}