社团管理系统后端, 目前接口信息如下
-
- 添加部门
- 添加成员
- 修改成员职位
- 修改社团简介
- 展示社团的全部部门
- 展示社团全部成员
- 显示社团信息
- 显示此社团所有审核通过的活动
- 显示此社团所有审核通过的文章
- 审核通过某活动
- 审核通过某文章
- 同意添加某成员加入本社团某部门
- 拒绝添加某成员加入本社团某部门
- 展示此社团审核表
- [8同意修改职位 未写]
- [9拒绝修改职位 未写]
请求头: Content-Type:application/json;
URL: "http://localhost:8080/manage/admin_User_register"
请求参数: uid, phone, uname, IDCard, faculty, className, heardImg, password, sex
{
"uid":"201731104180",
"phone":"13477178888",
"uname":"ZhangYu",
"IDCard":"421087199999999999",
"faculty":"Computer",
"className":"Software1701",
"heardImg":"https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075456%E5%A3%81%E7%BA%B82.jpeg",
"password":"123456",
"sex":"female"
}
返回参数
{
"flag": "true"
}
学号和密码进行登陆
URL: "http://localhost:8080/manage/admin_User_login"
请求参数: uid, password
{
"uid":"201731104180",
"password":"123456"
}
返回参数
{
"flag": true
}
URL: "http://localhost:8080/manage/admin_User_changePwd"
请求参数: uid, oldPwd, newPwd
{
"uid":"201731104180",
"oldPwd":"123456",
"newPwd":"111111"
}
返回参数
{
"flag": true
}
URL:"http://localhost:8080/manage/admin_User_showInfo"
请求参数: uid
{
"uid":"201731104180"
}
返回参数
{
"User": {
"IDCard": "421087199999999999",
"className": "Software1701",
"faculty": "Computer",
"heardImg": "https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075456%E5%A3%81%E7%BA%B82.jpeg",
"password": "111111",
"phone": "13477178888",
"sex": "female",
"uid": "201731104180",
"uname": "ZhangYu"
}
}
URL:"http://localhost:8080/manage/admin_User_changeImg"
请求参数: uid, img
{
"uid":"201731104180",
"img":"https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075448%E5%A3%81%E7%BA%B81.jpeg"
}
返回参数
{
"flag": "true"
}
URL: "http://localhost:8080/manage/admin_User_showUserClubs"
请求参数: uid
{
"uid":"201731104180"
}
返回参数: cid, did, joinTime, position,uid
[
{
"ClubNum": 1
},
{
"cid": 1,
"did": 1,
"joinTime": null,
"position": "minister",
"uid": "201731104180"
}
]
URL: http://localhost:8080/manage/admin_User_applyForJoinClub
请求参数: uid, cid, did
{
"uid":"20173110481",
"cid":1,
"did":1
}
返回参数: flag
{
"flag": "true"
}
URL: http://localhost:8080/manage/admin_User_applyToCreateClub
请求参数: cname, chariman(cid), cintro
{
"cname":"Swing",
"chairman":"20173114182",
"cintro":"swing!"
}
返回参数:
{
"flag": "true"
}
URL: "http://localhost:8080/manage/admin_Department_changeInfo"
所需参数: did, dname, dintro
{
"did":1,
"dname":"organizationNEW!!!",
"dintro":"aaaaaaaaaaaaaaaaaNEW!!"
}
返回参数
{
"flag": "true"
}
URL: "http://localhost:8080/manage/admin_Department_showDepartmentUser"
所需参数: did
{
"did":1
}
返回参数
[
{
"DepartmentUser": {
"IDCard": "421087199999999999",
"className": "Software1701",
"faculty": "Computer",
"heardImg": "https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075448%E5%A3%81%E7%BA%B81.jpeg",
"password": "111111",
"phone": "13477178888",
"sex": "female",
"uid": "201731104180",
"uname": "ZhangYu"
}
}
]
URL: "http://localhost:8080/manage/admin_Department_showDepartmentInfo"
所需参数: did
{
"did":1
}
返回参数
{
"DepartmentInfo": {
"cid": 1,
"did": 1,
"dintro": "aaaaaaaaaaaaaaaaaNEW!!",
"dname": "organizationNEW!!!"
}
}
URL: "http://localhost:8080/manage/admin_Department_addVerifyArticle"
所需参数: cid(社团号), uid(作者), content, title
{
"cid":1,
"uid":"201731104180",
"content":"nei rong xixixiix",
"title":"Atitle"
}
返回参数
{
"flag": "true"
}
URL:"http://localhost:8080/manage/admin_Department_addVerifyAction",
所需参数: aname(活动名称), cid(社团号), aintro, aimg, startTime, endTime
{
"aname":"computer fix",
"cid":1,
"aintro":"this is a introduction for the aciton",
"aimg":"https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075448%E5%A3%81%E7%BA%B81.jpeg",
"startTime": "",
"endTime":""
}
返回参数
{
"flag": "true"
}
URL: http://localhost:8080/manage/admin_Department_showUserVerify
所需参数: did
{
"did":1
}
返回参数
[
{
"VerifyClubUser": {
"cid": 1,
"did": 1,
"joinTime": null,
"position": "",
"uid": "20173110481"
}
}
]
URL:"http://localhost:8080/manage/admin_Club_addDepartment"
所需参数: dname, cid, dintro
{
"dname":"organization",
"cid":1,
"dintro":"aaaaaaaaaaaaaaaaa"
}
返回参数
{
"flag": "true"
}
URL:"http://localhost:8080/manage/admin_Club_addUser"
所需参数: uid, cid, did, position
{
"uid":"201731104180",
"cid":1,
"did":1,
"position":"chairman"
}
返回参数
{
"flag": "true"
}
URL:"http://localhost:8080/manage/admin_Club_changePosition",
所需参数: uid, cid, did, position
{
"uid":"201731104180",
"cid":1,
"did":1,
"position":"minister"
}
返回参数
{
"flag": "true"
}
URL:"http://localhost:8080/manage/admin_Club_changeCintro",
所需参数: cid, cintro
{
"cid":1,
"cintro":"new introduction!"
}
返回参数
{
"flag": "true"
}
URL:"http://localhost:8080/manage/admin_Club_showDepartments"
所需参数: cid
{
"cid":1
}
返回参数
[
{
"Department": {
"cid": 1,
"did": 1,
"dintro": "aaaaaaaaaaaaaaaaaNEW!!",
"dname": "organizationNEW!!!"
}
}
]
URL: http://localhost:8080/manage/admin_Club_showClubUser
所需参数: cid
{
"cid":1
}
返回参数
[
{
"ClubUser": {
"IDCard": "421087199999999999",
"className": "Software1701",
"faculty": "Computer",
"heardImg": "https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075448%E5%A3%81%E7%BA%B81.jpeg",
"password": "111111",
"phone": "13477178888",
"sex": "female",
"uid": "201731104180",
"uname": "ZhangYu"
}
}
]
URL:"http://localhost:8080/manage/admin_Club_showClubInfo"
所需参数: cid
{
"cid":1
}
返回参数(时间未显示)
{
"clubInfo": {
"bulidTime": null,
"chairman": "201731104180",
"cid": 1,
"cintro": "new introduction!",
"cname": "Computer Science",
"vicechairman": "201731104180"
}
}
URL:"http://localhost:8080/manage/admin_Club_showVerifyActions"
所需参数: cid
{
"cid":1
}
返回参数
[
{
"size": 1
},
{
"action": {
"aImg": "",
"aid": 1,
"aintro": "this is a introduction for the aciton",
"aname": "computer fix",
"cid": 1,
"endTime": null,
"startTime": null
}
}
]
URL:"http://localhost:8080/manage/admin_Club_showVerifyArticles"
所需参数: cid
{
"cid":1
}
返回参数
[
{
"size": 12
},
{
"article": {
"artid": 7,
"cid": 1,
"content": "",
"createTime": {
"date": 10,
"day": 0,
"hours": 16,
"minutes": 5,
"month": 10,
"nanos": 0,
"seconds": 34,
"time": 1573373134000,
"timezoneOffset": -480,
"year": 119
},
"title": "titie",
"uid": "201731104180"
}
},
{
"article": {
"artid": 8,
"cid": 1,
"content": "",
"createTime": {
"date": 10,
"day": 0,
"hours": 16,
"minutes": 6,
"month": 10,
"nanos": 0,
"seconds": 7,
"time": 1573373167000,
"timezoneOffset": -480,
"year": 119
},
"title": "titie",
"uid": "201731104180"
}
},
...............
]
URL: "http://localhost:8080/manage/admin_Club_agreeAction",
所需参数: aid, aname, cid, aintro, aImg, startTime, endTime
{
"aid":1,
"aname":"computer fix",
"cid":1,
"aintro":"this is a introduction for the aciton",
"aImg":"",
"startTime":"",
"endTime":""
}
返回参数
{
"falg": "true"
}
所需参数: artid, cid, uid, content, title
{
"artid":18,
"cid":1,
"uid":"201731104180",
"content":"nei rong xixixiix",
"title":"Atitle",
}
返回参数
{
"falg": "true"
}
URL: http://localhost:8080/manage/admin_Club_agreeUserVerify
所需参数:
{
"uid":"201731104181",
"cid":1,
"did":1
}
返回参数:
{
"falg": "true"
}
URL: http://localhost:8080/manage/admin_Club_disagreeUserVerify
所需参数:
{
"uid":"201731104183",
"cid":1,
"did":1
}
返回参数:
{
"falg": "true"
}
URL: http://localhost:8080/manage/admin_Club_showUserVerify
所需参数: cid
{
"cid":2
}
返回参数:
[
{
"VerifyClubUser": {
"cid": 2,
"did": 4,
"joinTime": null,
"position": "",
"uid": "201731104187"
}
}
]
---------------------------------------------- URL:"http://localhost:8080/manage/admin_Root_addClub"
所需参数: cname, chariman, vicechairman, cintro
{
"cname":"Computer Science",
"chairman":"201731104180",
"vicechairman":"201731104180",
"cintro":"fix computer",
}
返回参数
{
"flag": "true"
}
URL: "http://localhost:8080/manage/admin_Root_showClubs"
所需参数: 无
返回参数: size(Club个数), Club[buildTime, chairman, cid, cintro, cname, vicechairman]
[
{
"size": 1
},
{
"Club": {
"bulidTime": null,
"chairman": "201731104180",
"cid": 1,
"cintro": "new introduction!",
"cname": "Computer Science",
"vicechairman": "201731104180"
}
}
]
URL: "http://localhost:8080/manage/admin_Root_showArticles"
所需参数: 无
返回参数: size(文章个数), Article[Artid, cid, content, createTime, title,uid]
[
{
"size": 2
},
{
"Article": {
"artid": 1,
"cid": 1,
"content": "1234",
"createTime": {
"date": 10,
"day": 0,
"hours": 17,
"minutes": 8,
"month": 10,
"nanos": 0,
"seconds": 3,
"time": 1573376883000,
"timezoneOffset": -480,
"year": 119
},
"title": "",
"uid": ""
}
},
{
"Article": {
"artid": 2,
......
}
}
]
URL: "http://localhost:8080/manage/admin_Root_showNumArticles"
所需参数: num
{
"num":1
}
返回参数: size(文章个数), Article[Artid, cid, content, createTime, title,uid]
[
{
"size": 1
},
{
"Article": {
"artid": 2,
"cid": 1,
"content": "nei rong xixixiix",
"createTime": {
"date": 12,
"day": 2,
"hours": 16,
"minutes": 43,
"month": 10,
"nanos": 0,
"seconds": 31,
"time": 1573548211000,
"timezoneOffset": -480,
"year": 119
},
"title": "Atitle",
"uid": "201731104180"
}
}
]
所需参数: 无
返回参数: size, Action[aImg, aid, aintro, aname, cid, endTime, startTime]
[
{
"size": 1
},
{
"Action": {
"aImg": "",
"aid": 1,
"aintro": "this is a introduction for the aciton",
"aname": "computer fix",
"cid": 1,
"endTime": null,
"startTime": null
}
}
]
URL: "http://localhost:8080/manage/admin_Root_showNumActions"
所需参数: num
{
"num":1
}
返回参数: size, Action[aImg, aid, aintro, aname, cid, endTime, startTime]
[
{
"size": 1
},
{
"Action": {
"aImg": "",
"aid": 1,
"aintro": "this is a introduction for the aciton",
"aname": "computer fix",
"cid": 1,
"endTime": null,
"startTime": null
}
}
]
URL: http://localhost:8080/manage/admin_Root_showClubVerify
所需参数: 无
{
}
返回参数:
[
{
"VerifyClub": {
"bulidTime": null,
"chairman": "20173114182",
"cid": 1,
"cintro": "swing!",
"cname": "Swing",
"vicechairman": ""
}
}
]
URL: http://localhost:8080/manage/admin_Root_agreeClubVerify
所需参数: chairman, cid, cintro, cname
{
"chairman": "20173114182",
"cid": 1,
"cintro": "swing!",
"cname": "Swing"
}
返回参数:
{
"falg": "true"
}
所需参数: chairman, cid, cintro, cname
{
"chairman": "201731104180",
"cid": 3,
"cintro": "studing",
"cname": "Study"
}
返回参数:
{
"falg": "true"
}