├── .gitignore ├── README.md └── documents ├── account-set-password..md ├── account-update-avatar.md ├── account-update-profile.md ├── account-verify-credentials.md ├── account-verify.md ├── conversations-list.md ├── department-create.md ├── departments-show.md ├── documents-remove.md ├── documents-show.md ├── documents-upload.md ├── download.md ├── download.md.bak ├── email-send.md ├── major-create.md ├── majors-show.md ├── message-create.md ├── messages-list.md ├── notificationlist-create.md ├── notificationlist-list.md ├── teacher-show.md ├── teachers-leveldown.md ├── teachers-levelup.md ├── teachers-show.md ├── theses-apply.md ├── theses-availables.md ├── theses-choose.md ├── theses-create-title.md ├── theses-current_title.md ├── theses-mark.md ├── theses-times.md ├── theses-verify.md ├── theses-waiting_reviews.md ├── title-extra_info.md ├── title-mine.md ├── unread-get.md ├── user-create.md ├── user-username-exists.md └── users-show.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .AppleDouble 3 | .LSOverride 4 | Icon 5 | 6 | 7 | # Thumbnails 8 | ._* 9 | 10 | # Files that might appear on external disk 11 | .Spotlight-V100 12 | .Trashes -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ##Theses API 文档目录 2 | 3 | * [获取某个系别的消息信息](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/majors-show.md) 4 | * [更新个人数据](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/account-update-profile.md) 5 | * [获取所有系的信息](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/departments-show.md) 6 | * [用户登陆验证](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/account-verify-credentials.md) 7 | * [获取和设置 出题、选题、答辩等时间](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-times.md) 8 | * [更新密码](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/account-set-password..md) 9 | * [创建系别](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/department-create.md) 10 | * [创建专业](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/major-create.md) 11 | * [创建用户](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/user-create.md) 12 | * [获取某个系的老师](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/teacher-show.md) 13 | * [设置某个id的老师为出题老师](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/teachers-levelup.md) 14 | * [取消某个id的出题老师资格](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/teachers-leveldown.md) 15 | * [批量获取某个系的老师](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/teachers-show.md) 16 | * [创建论文题目](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-create-title.md) 17 | * [审核论文](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-verify.md) 18 | * [判断用户是否存在](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/user-username-exists.md) 19 | * [获取登陆学生能选的题目](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-availables.md) 20 | * [批量查看用户](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/users-show.md) 21 | * [获取待审核题目](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-waiting_reviews.md) 22 | * [学生选题](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-choose.md) 23 | * [获取用户已经选好的题目](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-current_title.md) 24 | * [我的论题](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/title-mine.md) 25 | * [获取论题文档列表](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/documents-show.md) 26 | * [学生申请论题](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-apply.md) 27 | * [学生上传文档](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/documents-upload.md) 28 | * [获取论题附加信息](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/title-extra_info.md) 29 | * [删除文档](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/documents-remove.md) 30 | * [发送私信](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/message-create.md) 31 | * [获取未读数](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/unread-get.md) 32 | * [获取私信对话的信息列表](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/messages-list.md) 33 | * [修改头像](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/account-update-avatar.md) 34 | * [发送通知](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/notificationlist-create.md) 35 | * [获取通知列表](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/notificationlist-list.md) 36 | * [老师打分](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/theses-mark.md) 37 | * [获取会话列表](https://github.com/Naituw/Theses-API-Documents/blob/master/documents/conversations-list.md) 38 | -------------------------------------------------------------------------------- /documents/account-set-password..md: -------------------------------------------------------------------------------- 1 | #### 更新密码 2 | 3 | 4 |
5 | POST account/set_password.json 6 |7 | 8 | 参数名 |类型及范围 |说明 9 | --- |--- |---- 10 | old_password |String |旧密码,经base64加密过 11 | password |String |用户密码,格式为 basic:+(账号:密码的base64加密) 12 | 13 | 返回结果示例: 14 |
15 | 返回结果示例:
16 |
17 | {
18 | "code": 200,
19 | "message": "成功",
20 | "object": {
21 | "compose": 1354182570799,
22 | "deadline": 1353343603504,
23 | "oral_examination": 1355071603504,
24 | "teacher_chosen": 1355021538095,
25 | "title_assign": 1352886570799,
26 | "title_chosen": 1353318570799
27 | }
28 | }
29 |
30 |
31 |
--------------------------------------------------------------------------------
/documents/account-update-avatar.md:
--------------------------------------------------------------------------------
1 | #### 更新头像
2 |
3 |
4 |
5 | POST account/update_avatar.json
6 |
7 |
8 | 参数名 |类型及范围 |说明
9 | --- |--- |----
10 | upload |File |文件
11 |
12 |
13 | 返回结果示例:
14 |
15 | {
16 | "code": 200,
17 | "message": "成功",
18 | "object": {
19 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_22.jpg",
20 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_22.jpg",
21 | "department": {
22 | "deptid": 1,
23 | "directorid": 1,
24 | "majors": null,
25 | "name": "电软系",
26 | "schoolname": "中山大学南方学院"
27 | },
28 | "email": "245358419@qq.com",
29 | "gender": 1,
30 | "level": 40,
31 | "major_id": 1,
32 | "screenname": "波潮",
33 | "userid": 1,
34 | "username": "bobo"
35 | }
36 | }
37 |
38 |
39 |
--------------------------------------------------------------------------------
/documents/account-update-profile.md:
--------------------------------------------------------------------------------
1 | #### 更新用户
2 |
3 |
4 | POST account/update_profile.json
5 |
6 |
7 | 参数名 |类型及范围 |说明
8 | --- |--- |----
9 | Auth |String |加密后的数据
10 | screenname |String |用户名
11 | gender |Byte |用户性别,1男生,2女生
12 | email |String |邮箱
13 |
14 |
15 |
16 |
17 | 返回结果示例:
18 |
19 | {
20 | "code": 200,
21 | "message": "成功",
22 | "object": {
23 | "avatar": null,
24 | "avatar_thumb": null,
25 | "department": 0,
26 | "email": "gybciy1s1s@sina.com",
27 | "gender": 1,
28 | "level": 100,
29 | "major": 1,
30 | "screenname": "一波潮水",
31 | "userid": 1,
32 | "username": "bobo"
33 | }
34 |
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/documents/account-verify-credentials.md:
--------------------------------------------------------------------------------
1 | ####登陆验证
2 |
3 |
4 | POST account/verify_credentials.json
5 |
6 |
7 | 参数名 |类型及范围 |说明
8 | --- |--- |----
9 | Auth |String |加密后的数据
10 |
11 |
12 | 返回结果示例:
13 |
14 | {
15 | "code": 200,
16 | "message": "成功",
17 | "object": {
18 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
19 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
20 | "department": {
21 | "deptid": 1,
22 | "directorid": 1,
23 | "majors": [
24 | {
25 | "department": null,
26 | "deptid": 1,
27 | "majorid": 1,
28 | "name": "计算机科学与技术"
29 | },
30 | {
31 | "department": null,
32 | "deptid": 1,
33 | "majorid": 2,
34 | "name": "软件工程"
35 | },
36 | {
37 | "department": null,
38 | "deptid": 1,
39 | "majorid": 3,
40 | "name": "通讯工程"
41 | },
42 | {
43 | "department": null,
44 | "deptid": 1,
45 | "majorid": 8,
46 | "name": "信息工程"
47 | }
48 | ],
49 | "name": "电软系",
50 | "schoolname": "中山大学南方学院"
51 | },
52 | "email": "245358419@qq.com",
53 | "gender": 1,
54 | "level": 30,
55 | "major_id": 1,
56 | "screenname": "波潮",
57 | "userid": 1,
58 | "username": "bobo"
59 | }
60 | }
61 |
62 |
--------------------------------------------------------------------------------
/documents/account-verify.md:
--------------------------------------------------------------------------------
1 | #### 手动验证邮箱
2 |
3 |
4 |
5 | GET account/verify_email.json
6 |
7 |
8 |
9 | 返回结果示例:
10 |
11 | {
12 | "code": 200,
13 | "message": "成功",
14 | "object": {
15 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_22.jpg",
16 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_22.jpg",
17 | "department": {
18 | "deptid": 1,
19 | "directorid": 1,
20 | "majors": null,
21 | "name": "电软系",
22 | "schoolname": "中山大学南方学院"
23 | },
24 | "email": "245358419@qq.com",
25 | "email_verified": 0,
26 | "gender": 1,
27 | "last_email_sent": 1367592027000,
28 | "level": 40,
29 | "major_id": 1,
30 | "screenname": "波潮",
31 | "userid": 1,
32 | "username": "bobo"
33 | }
34 | }
35 |
36 |
37 |
--------------------------------------------------------------------------------
/documents/conversations-list.md:
--------------------------------------------------------------------------------
1 | ###获取私信列表
2 |
3 | Get conversations/list.json
4 |
5 |
6 |
7 |
8 |
9 |
10 | 返回结果示例一:
11 |
12 | {
13 | "code": 200,
14 | "message": "成功",
15 | "object": []
16 | }
17 |
18 |
19 |
20 |
21 |
22 |
23 | 返回结果示例二:(basic:Ym9ibzoxMjM0)
24 |
25 | {
26 | "code": 200,
27 | "message": "成功",
28 | "object": [
29 | {
30 | "conversationid": 8,
31 | "create_at": 1363961308000,
32 | "last_update": 1363961939000,
33 | "last_user_id": 2,
34 | "userA": 1,
35 | "userB": 2,
36 | "with_user": {
37 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_2_48.png",
38 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_2_48.png",
39 | "department": {
40 | "deptid": 1,
41 | "directorid": 1,
42 | "majors": null,
43 | "name": "电软系",
44 | "schoolname": "中山大学南方学院"
45 | },
46 | "email": "naituw@gmail.com",
47 | "gender": 1,
48 | "level": 10,
49 | "major_id": 1,
50 | "screenname": "吴天",
51 | "userid": 2,
52 | "username": "092011070"
53 | }
54 | },
55 | {
56 | "conversationid": 9,
57 | "create_at": 1363961343000,
58 | "last_update": 1363961343000,
59 | "last_user_id": 1,
60 | "userA": 1,
61 | "userB": 4,
62 | "with_user": {
63 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_2_48.png",
64 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_2_48.png",
65 | "department": {
66 | "deptid": 1,
67 | "directorid": 1,
68 | "majors": null,
69 | "name": "电软系",
70 | "schoolname": "中山大学南方学院"
71 | },
72 | "email": "naituw@gmail.com",
73 | "gender": 1,
74 | "level": 10,
75 | "major_id": 1,
76 | "screenname": "吴天",
77 | "userid": 2,
78 | "username": "092011070"
79 | }
80 | }
81 | ]
82 | }
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/documents/department-create.md:
--------------------------------------------------------------------------------
1 | ####创建系别
2 |
3 | 4 | POST department/create.json 5 |6 | 7 | 参数名 |类型及范围 |说明 8 | --- |--- |---- 9 | name |String |系的名称 10 | directorid |long |开始出题的日期 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 返回结果示例:
20 |
21 | {
22 | "code": 200,
23 | "message": "成功",
24 | "object": {
25 | "deptid": 6,
26 | "directorid": 8,
27 | "majors": [],
28 | "name": "经管系",
29 | "schoolname": "中山大学南方学院"
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/documents/departments-show.md:
--------------------------------------------------------------------------------
1 | ####获取所有部门的信息
2 |
3 | 4 | GET departments/show.json 5 |6 | 7 |
8 | 返回结果示例:
9 |
10 |
11 | {
12 | "code": 200,
13 | "message": "成功",
14 | "object": [
15 | {
16 | "deptid": 1,
17 | "directorid": 1,
18 | "name": "电软系",
19 | "schoolname": "中山大学南方学院"
20 | }
21 | ]
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/documents/documents-remove.md:
--------------------------------------------------------------------------------
1 | ###批量获取用户
2 | 3 | Get documents/remove.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | titleid |int |专业编号 9 | 10 | 11 | 12 |
13 | 返回结果示例:
14 |
15 | {
16 | "code": 200,
17 | "message": "成功",
18 | "object": []
19 | }
20 |
--------------------------------------------------------------------------------
/documents/documents-show.md:
--------------------------------------------------------------------------------
1 | ###获取某个学生的文档
2 |
3 | Get theses/documents.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | titleid |int |论题id
9 | authorid |int |上传者id 学生可选 默认1
10 |
11 |
12 |
13 |
14 | 接口限制:
15 | 如果当前用户是学生,则titleid必须是自己当前论题的ID
16 | 如果是出题教师,则titleid的teacherid必须是自己
17 | 如果是管理员、高级管理员,则titleid必须是当前系的
18 |
19 |
20 | 返回结果示例:
21 |
22 | {
23 | "code": 200,
24 | "message": "成功",
25 | "object": [
26 | {
27 | "author": {
28 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_2_28.png",
29 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_2_28.png",
30 | "department": {
31 | "deptid": 1,
32 | "directorid": 1,
33 | "majors": null,
34 | "name": "电软系",
35 | "schoolname": "中山大学南方学院"
36 | },
37 | "email": "naituw@gmail.com",
38 | "gender": 1,
39 | "level": 10,
40 | "major_id": 1,
41 | "screenname": "吴天",
42 | "userid": 2,
43 | "username": "092011070"
44 | },
45 | "authorid": 2,
46 | "createAt": "2013-03-08T22:24:26",
47 | "docid": 1,
48 | "doctype": 0,
49 | "fileurl": "http://lwapi-document.stor.sinaapp.com/document_092011070.doc",
50 | "titleid": 12
51 | }
52 | ]
53 | }
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/documents/documents-upload.md:
--------------------------------------------------------------------------------
1 | ###批量获取用户
2 |
3 | Post documents/upload.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | titleid |int |学生的论题id
9 | upload |File |文件
10 |
11 |
12 |
13 |
14 | 返回结果示例:(注:文件上传仅支持doc和docx类型)
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": {
20 | "authorid": 2,
21 | "createAt": "2013-03-08T22:24:54",
22 | "docid": 2,
23 | "doctype": 0,
24 | "fileurl": "http://lwapi-document.stor.sinaapp.com/document_092011070.doc",
25 | "titleid": 12
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/documents/download.md:
--------------------------------------------------------------------------------
1 | #### 下载文件
2 |
3 |
4 |
5 | POST documents/get_url.json
6 |
7 |
8 | 参数名 |类型及范围 |说明
9 | --- |--- |----
10 | docid |int |上传文件的编号
11 |
12 |
13 | 返回结果示例:
14 |
15 | {
16 | "code": 200,
17 | "message": "成功",
18 | "object": {
19 | "url": "documents/download.json?key=z6czg2"
20 | }
21 | }
22 |
23 |
24 |
--------------------------------------------------------------------------------
/documents/download.md.bak:
--------------------------------------------------------------------------------
1 | #### 下载文件
2 |
3 |
4 |
5 | POST documents/get_url.json
6 |
7 |
8 | 参数名 |类型及范围 |说明
9 | --- |--- |----
10 | docid |int |上传文件的编号
11 |
12 |
13 | 返回结果示例:
14 |
15 | {
16 | "code": 200,
17 | "message": "成功",
18 | "object": {
19 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_22.jpg",
20 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_22.jpg",
21 | "department": {
22 | "deptid": 1,
23 | "directorid": 1,
24 | "majors": null,
25 | "name": "电软系",
26 | "schoolname": "中山大学南方学院"
27 | },
28 | "email": "245358419@qq.com",
29 | "gender": 1,
30 | "level": 40,
31 | "major_id": 1,
32 | "screenname": "波潮",
33 | "userid": 1,
34 | "username": "bobo"
35 | }
36 | }
37 |
38 |
39 |
--------------------------------------------------------------------------------
/documents/email-send.md:
--------------------------------------------------------------------------------
1 | #### 发送邮件
2 |
3 |
4 |
5 | GET email/send.json
6 |
7 | 参数名 |类型及范围 |说明
8 | --- |--- |----
9 | id |int |通知编号
10 | email |string |邮箱
11 | key |string |统一使用dsjfsdlnfaoldnfsdljnf
12 |
13 |
14 | 返回结果示例:
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": {
20 | "content": "为了提升学院科技文化氛围,4月17日17:30,电子通信与软件工程系第二届IT文化节开幕式在图书馆门口隆重举行。应邀出席本次活动嘉宾有电子通信与软件工程系主任杨智教授,院团委书记刘佳老师,企业代表以及各系老师及学生代表。\n科学创造时代,IT引导潮流。杨智教授在开幕式上发表了热情洋溢的致辞。他表示我们将本着“求是笃实,勇于创新”的精神,将本次“IT文化节”办好,从而掀起校内科技文化学习的新高潮。企业代表也充分肯定了我院学生在科技创新能力和实际操作能力,紧接着主席台嘉宾为开幕式剪彩,为期一个月的“IT文化节”正式开始。\n剪彩仪式后,学院团委书记刘佳老师讲话。刘佳老师相信同学们一定会在这些活动中进一步激发学习、奋进的动力并预祝本次活动能够取得圆满成功。随后进行的主题为“活力、青春”的文艺演出,赢得了主席台领导和全场观众的热烈掌声。\n经过短暂休息,晚上7点,首届IT经济文化论坛在7教105准时开始。本次论坛的主讲嘉宾有广州拓胜计算机技术服务有限公司研发总监刘滔韬先生、广州中星网络技术有限公司技术总监黄世旭先生、广州思普计算机科技有限公司教学经理张强先生,三位主讲嘉宾就“移动互联网现状及发展趋势”“苹果与三星的手机大战”“IT职业规划”三个主题各抒己见,囊括了电子商务系统、云端海量存储、手机的市场需求、技术创新与语言程序系统等多方面的知识。最后,本次论坛在各位老师、嘉宾以及工作人员的合影中拉上了圆满的帷幕。\n开幕式现场还展示了电软系学生的作品图片,也包括一些实物和系统软件的现场操作,赢得了与会嘉宾和老师同学的一直好评。\n本次IT文化节以“E时代、I主宰”为主题,活动包括学生作品展,IT经济文化论坛,电子设计大赛、C语言设计大赛、IT知识竞答比赛,IT企业参观,IT文化节闭幕式等一系列子活动,必将充分调动同学们了解、参与IT文化的积极性。",
21 | "create_at": 1366512087000,
22 | "deptid": 1,
23 | "notificationid": 10,
24 | "title": "“E时代I主宰”——首届IT经济文化论坛暨第二届IT文化节拉开序幕",
25 | "url": ""
26 | }
27 | }
28 |
29 |
30 |
--------------------------------------------------------------------------------
/documents/major-create.md:
--------------------------------------------------------------------------------
1 | ####创建专业
2 |
3 | 4 | POST major/create.json 5 |6 | 7 | 参数名 |类型及范围 |说明 8 | --- |--- |---- 9 | name |String |专业名称 10 | deptid |long |所属系别的id(可选,不选默认为管理员所在的系别) 11 |
12 | 返回结果示例:
13 |
14 | {
15 | "code": 200,
16 | "message": "成功",
17 | "object": {
18 | "department": {
19 | "deptid": 1,
20 | "directorid": 1,
21 | "majors": [
22 | {
23 | "department": null,
24 | "deptid": 1,
25 | "majorid": 1,
26 | "name": "计算机科学与技术"
27 | },
28 | {
29 | "department": null,
30 | "deptid": 1,
31 | "majorid": 2,
32 | "name": "软件工程"
33 | },
34 | {
35 | "department": null,
36 | "deptid": 1,
37 | "majorid": 3,
38 | "name": "通讯工程"
39 | },
40 | {
41 | "department": null,
42 | "deptid": 1,
43 | "majorid": 4,
44 | "name": "信息工程"
45 | }
46 | ],
47 | "name": "电软系",
48 | "schoolname": "中山大学南方学院"
49 | },
50 | "deptid": 1,
51 | "majorid": 4,
52 | "name": "信息工程"
53 | }
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/documents/majors-show.md:
--------------------------------------------------------------------------------
1 | #### 获取某个系别的专业详细信息
2 |
3 | 4 | GET majors/show.json?department_id=1 5 |6 | 7 | 参数名 |类型及范围 |说明 8 | --- |--- |---- 9 | department_id |String |系别ID 10 | 11 |
12 | 返回结果示例:
13 |
14 | {
15 | "code": 200,
16 | "message": "成功",
17 | "object": {
18 | "deptid": 1,
19 | "directorid": 1,
20 | "majors": [
21 | {
22 | "deptid": 1,
23 | "majorid": 1,
24 | "name": "计算机科学与技术"
25 | }
26 | ],
27 | "name": "电软系",
28 | "schoolname": "中山大学南方学院"
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/documents/message-create.md:
--------------------------------------------------------------------------------
1 | ###发送私信
2 | 3 | POST message/create.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | to_user_id |int |接收者编号 9 | content |String |内容 10 | 11 | 12 | 13 |
14 | 返回结果示例:
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": {
20 | "content": "testMe",
21 | "conversationId": 6,
22 | "createAt": "2013-03-18T23:43:16",
23 | "messageId": 8,
24 | "userId": 8
25 | }
26 | }
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/documents/messages-list.md:
--------------------------------------------------------------------------------
1 | ###获取会话信息列表
2 | 3 | POST messages/list.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | conversation_id |int |会话编号 9 | count |int|单次获取的数量 10 | since_id |int|获取大于since_id的消息列表 11 | max_id|int |获取小于max_id的消息列表 12 | count |int|单次获取的数量 13 | 14 |
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": [
20 | {
21 | "content": "test3",
22 | "conversationId": 9,
23 | "createAt": "2013-03-22T22:09:03",
24 | "messageId": 36,
25 | "userId": 4
26 | },
27 | {
28 | "content": "test2",
29 | "conversationId": 9,
30 | "createAt": "2013-03-22T22:13:04",
31 | "messageId": 37,
32 | "userId": 4
33 | },
34 | {
35 | "content": "test2",
36 | "conversationId": 9,
37 | "createAt": "2013-03-22T22:13:07",
38 | "messageId": 38,
39 | "userId": 4
40 | }
41 | ]
42 | }
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/documents/notificationlist-create.md:
--------------------------------------------------------------------------------
1 | ###发送通知
2 | 3 | POST notification/create.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | title |String |标题 9 | content|String |内容 10 | url |String |链接 11 | 12 | 13 | 14 |
15 | 返回结果示例:
16 |
17 | {
18 | "code": 200,
19 | "message": "成功",
20 | "object": {
21 | "content": "内容测试",
22 | "createAt": "2013-03-27T00:04:04",
23 | "deptid": 1,
24 | "notificationid": 6,
25 | "title": "标题测试",
26 | "url": "https://github.com/Naituw/Theses-API-Documents/blob/master/README.md"
27 | }
28 | }
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/documents/notificationlist-list.md:
--------------------------------------------------------------------------------
1 | ###获取通知
2 | 3 | Get notifications/list.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | page |int |页码,默认1 9 | count |int |每页的数量,默认20 10 | 11 | 12 | 13 |
14 | 返回结果示例:
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": [
20 | {
21 | "content": "内容测试",
22 | "createAt": "2013-03-26T22:52:14",
23 | "deptid": 1,
24 | "notificationid": 1,
25 | "title": "标题测试",
26 | "url": ""
27 | },
28 | {
29 | "content": "内容测试2",
30 | "createAt": "2013-03-26T22:52:22",
31 | "deptid": 1,
32 | "notificationid": 2,
33 | "title": "标题测试1",
34 | "url": ""
35 | },
36 | {
37 | "content": "内容测试2",
38 | "createAt": "2013-03-26T22:52:28",
39 | "deptid": 1,
40 | "notificationid": 3,
41 | "title": "标题测试2",
42 | "url": ""
43 | },
44 | {
45 | "content": "内容测试2",
46 | "createAt": "2013-03-26T22:52:30",
47 | "deptid": 1,
48 | "notificationid": 4,
49 | "title": "标题测试3",
50 | "url": ""
51 | },
52 | {
53 | "content": "内容测试2",
54 | "createAt": "2013-03-26T22:52:43",
55 | "deptid": 1,
56 | "notificationid": 5,
57 | "title": "标题测试",
58 | "url": "https://github.com/Naituw/Theses-API-Documents/blob/master/README.md"
59 | }
60 | ]
61 | }
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/documents/teacher-show.md:
--------------------------------------------------------------------------------
1 | #### 获取某个系的老师
2 | 3 | GET teacher/show.json 4 |5 | 参数名 |类型及范围 |说明 6 | --- |--- |---- 7 | depart_id |int |系别编号 8 |
9 | 返回结果示例:
10 |
11 | {
12 | "code": 200,
13 | "message": "成功",
14 | "object": [
15 | {
16 | "avatar": null,
17 | "avatar_thumb": null,
18 | "department": 1,
19 | "email": null,
20 | "gender": 1,
21 | "level": 40,
22 | "major": 1,
23 | "screenname": "波潮",
24 | "userid": 9,
25 | "username": "092011062"
26 | },
27 | {
28 | "avatar": "http://null-pic.stor.sinaapp.com/user_1_40.png",
29 | "avatar_thumb": "http://null-picmin.stor.sinaapp.com/user_1_40.png",
30 | "department": 1,
31 | "email": "",
32 | "gender": 0,
33 | "level": 30,
34 | "major": 1,
35 | "screenname": "",
36 | "userid": 4,
37 | "username": "bobo1"
38 | },
39 | {
40 | "avatar": null,
41 | "avatar_thumb": null,
42 | "department": 1,
43 | "email": null,
44 | "gender": 2,
45 | "level": 30,
46 | "major": 0,
47 | "screenname": "教师测试",
48 | "userid": 12,
49 | "username": "teacher"
50 | }
51 | ]
52 | }
53 |
54 |
55 |
--------------------------------------------------------------------------------
/documents/teachers-leveldown.md:
--------------------------------------------------------------------------------
1 | ####取消某个老师的出题老师资格
2 |
3 |
4 | 5 | POST teachers/leveldown.json 6 |7 | 8 | 参数名 |类型及范围 |说明 9 | --- |--- |---- 10 | id |String |老师id,可一次性传多个id,用','隔开 11 | 12 | 13 | 14 | 15 |
16 | 返回结果示例:
17 |
18 | {
19 | "code": 200,
20 | "message": "成功",
21 | "object": [
22 | {
23 | "avatar": "http://null-pic.stor.sinaapp.com/user_1_40.png",
24 | "avatar_thumb": "http://null-picmin.stor.sinaapp.com/user_1_40.png",
25 | "department": 1,
26 | "email": "",
27 | "gender": 0,
28 | "level": 30,
29 | "major": 1,
30 | "screenname": "",
31 | "userid": 4,
32 | "username": "bobo1"
33 | },
34 | {
35 | "avatar": null,
36 | "avatar_thumb": null,
37 | "department": 1,
38 | "email": null,
39 | "gender": 2,
40 | "level": 30,
41 | "major": 0,
42 | "screenname": "教师测试",
43 | "userid": 12,
44 | "username": "teacher"
45 | }
46 | ]
47 | }
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/documents/teachers-levelup.md:
--------------------------------------------------------------------------------
1 | ####设置某个老师为出题老师
2 | 3 | POST teachers/levelup.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | id |String |老师id,可一次性传多个id,用','隔开 9 | 10 | 11 | 12 | 13 |
14 | 返回结果示例:
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": [
20 | {
21 | "avatar": "http://null-pic.stor.sinaapp.com/user_1_40.png",
22 | "avatar_thumb": "http://null-picmin.stor.sinaapp.com/user_1_40.png",
23 | "department": 1,
24 | "email": "",
25 | "gender": 0,
26 | "level": 40,
27 | "major": 1,
28 | "screenname": "",
29 | "userid": 4,
30 | "username": "bobo1"
31 | },
32 | {
33 | "avatar": null,
34 | "avatar_thumb": null,
35 | "department": 1,
36 | "email": null,
37 | "gender": 2,
38 | "level": 40,
39 | "major": 0,
40 | "screenname": "教师测试",
41 | "userid": 12,
42 | "username": "teacher"
43 | }
44 | ]
45 | }
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/documents/teachers-show.md:
--------------------------------------------------------------------------------
1 | ####批量获取某个系的老师
2 | 3 | POST teachers/show.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | depart_id |int |系id 9 | page|int|页码(可选),默认1 10 | count|int|单页数量(可选),默认20 11 | 12 | 13 | 14 |
15 | 返回结果示例:
16 |
17 | {
18 | "code": 200,
19 | "message": "成功",
20 | "object": [
21 | {
22 | "avatar": null,
23 | "avatar_thumb": null,
24 | "department": 1,
25 | "email": null,
26 | "gender": 1,
27 | "level": 40,
28 | "major": 1,
29 | "screenname": "波潮",
30 | "userid": 9,
31 | "username": "092011062"
32 | },
33 | {
34 | "avatar": "http://null-pic.stor.sinaapp.com/user_1_40.png",
35 | "avatar_thumb": "http://null-picmin.stor.sinaapp.com/user_1_40.png",
36 | "department": 1,
37 | "email": "",
38 | "gender": 0,
39 | "level": 30,
40 | "major": 1,
41 | "screenname": "",
42 | "userid": 4,
43 | "username": "bobo1"
44 | },
45 | {
46 | "avatar": null,
47 | "avatar_thumb": null,
48 | "department": 1,
49 | "email": null,
50 | "gender": 2,
51 | "level": 30,
52 | "major": 0,
53 | "screenname": "教师测试",
54 | "userid": 12,
55 | "username": "teacher"
56 | }
57 | ]
58 | }
59 |
60 |
--------------------------------------------------------------------------------
/documents/theses-apply.md:
--------------------------------------------------------------------------------
1 | ###批量获取用户
2 | 3 | POST theses/apply.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | teacherid |int |老师的编号 9 | title |String |论文题目 10 | description |String | 论文描述 11 | 12 | 13 |
14 | 返回结果示例:
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": {
20 | "available_major": [
21 | "1"
22 | ],
23 | "createAt": "2013-03-08T00:19:12",
24 | "deptid": 1,
25 | "description": "基于android的记账本",
26 | "requireInfo": "",
27 | "state": 0,
28 | "studentNum": 1,
29 | "teacherid": 8,
30 | "title": "记账本",
31 | "titleid": 7
32 | }
33 | }
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/documents/theses-availables.md:
--------------------------------------------------------------------------------
1 | ###批量获取选题
2 | 3 | Get theses/availables.json 4 |5 | 参数名 |类型及范围 |说明 6 | --- |--- |---- 7 | page |int |页码 8 | count |int |单页的数量 9 |
10 | 返回结果示例:(测试参数:)
11 |
12 | {
13 | "code": 200,
14 | "message": "成功",
15 | "object": [
16 | {
17 | "available_major": [
18 | "3",
19 | "2",
20 | "1"
21 | ],
22 | "createAt": "2013-04-08T20:42:06",
23 | "deptid": 1,
24 | "description": "测试状态测试状态",
25 | "require_info": "测试状态测试状态",
26 | "state": 41,
27 | "studentNum": 3,
28 | "students": null,
29 | "teacher": {
30 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_22.jpg",
31 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_22.jpg",
32 | "department": null,
33 | "email": "245358419@qq.com",
34 | "gender": 1,
35 | "level": 40,
36 | "major_id": 1,
37 | "screenname": "波潮",
38 | "userid": 1,
39 | "username": "bobo"
40 | },
41 | "teacherid": 1,
42 | "title": "测试状态测试状态",
43 | "titleid": 10
44 | }
45 | ]
46 | }
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/documents/theses-choose.md:
--------------------------------------------------------------------------------
1 | ###学生选题
2 | 3 | Post theses/choose.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | titleid |int |选题编号 9 | 10 | 11 | 12 |
13 | 返回结果示例:
14 |
15 | {
16 | "code": 200,
17 | "message": "成功",
18 | "object": {
19 | "articleScore": 0,
20 | "comment": "\"\"",
21 | "createAt": "2013-03-03T10:12:41",
22 | "oralScore": 0,
23 | "selectionid": 1,
24 | "studentid": 2,
25 | "titleid": 1
26 | }
27 | }
28 |
29 |
30 |
--------------------------------------------------------------------------------
/documents/theses-create-title.md:
--------------------------------------------------------------------------------
1 | ####创建论文题目
2 | 3 | POST theses/create_title.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | title |String |论文题目 9 | student_num |int |可选该论文的学生数量 10 | available_majors |String | 逗号分隔id 11 | description |String |描述 12 | require_info |String |要求 13 | 14 |
15 | 返回结果示例:
16 |
17 | {
18 | "code": 200,
19 | "message": "成功",
20 | "object": {
21 | "available_major": [
22 | "1",
23 | "2",
24 | ],
25 | "createAt": "2013-01-06T20:49:01",
26 | "deptid": 1,
27 | "description": "要求有网页、android和ios版",
28 | "requireInfo": "答辩前完成",
29 | "state": 0,
30 | "studentNum": 2,
31 | "teacherid": 1,
32 | "title": "基于新浪sae的毕业论文管理系统",
33 | "titleid": 1
34 | }
35 | }
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/documents/theses-current_title.md:
--------------------------------------------------------------------------------
1 | ###获取当前登录用户的选题情况
2 | 3 | Get theses/current_title.json 4 |5 | 6 | 7 |
8 | 返回结果示例:(测试参数:deptid=1&max_level=30)
9 |
10 | {
11 | "code": 200,
12 | "message": "成功",
13 | "object": [
14 | {
15 | "articleScore": 0,
16 | "comment": "\"\"",
17 | "createAt": "2013-03-03T10:12:41",
18 | "oralScore": 0,
19 | "selectionid": 1,
20 | "studentid": 2,
21 | "titleid": 1
22 | }
23 | ]
24 | }
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/documents/theses-mark.md:
--------------------------------------------------------------------------------
1 | ###老师打分
2 | 3 | Post theses/mark.json 4 |5 | 6 | 参数名 |类型及范围 |说明 7 | --- |--- |---- 8 | selectionid |int |选题id 9 | titleid |int |论题id 10 | studentid|int |学生id 11 | article_score|String|论文分数 12 | oral_score|String|答辩分数 13 | comment|String |评论 14 | 15 | 16 | 17 |
18 | 返回结果示例:
19 |
20 | {
21 | "code": 200,
22 | "message": "成功",
23 | "object": [
24 | {
25 | "articleScore": 60,
26 | "comment": "还需努力",
27 | "createAt": "2013-03-10T10:24:50",
28 | "oralScore": 70,
29 | "selectionid": 1,
30 | "studentid": 2,
31 | "titleid": 1
32 | }
33 | ]
34 | }
35 |
36 |
--------------------------------------------------------------------------------
/documents/theses-times.md:
--------------------------------------------------------------------------------
1 | #### 获取和设置 开始给教师添加资格的日期、开始出题的日期、开始选题的日期、选题结束的日期、论文撰写结束的日期、答辩的日期
2 |
3 |
4 | GET/POST theses/times.json
5 |
6 |
7 | 参数名 |类型及范围 |说明
8 | --- |--- |----
9 | teacher_chosen |long |开始给教师添加资格的日期
10 | title_assign |long |开始出题的日期
11 | title_chosen |long |开始选题的日期
12 | compose |long | 选题结束的日期 (开始撰写)
13 | deadline |long |论文撰写结束的日期
14 | oral_examination |long |答辩的日期
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 返回结果示例:
23 |
24 | {
25 | "code": 200,
26 | "message": "成功",
27 | "object": {
28 | "compose": 1354182570799,
29 | "deadline": 1353343603504,
30 | "oral_examination": 1355071603504,
31 | "teacher_chosen": 1355021538095,
32 | "title_assign": 1352886570799,
33 | "title_chosen": 1353318570799
34 | }
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/documents/theses-verify.md:
--------------------------------------------------------------------------------
1 | ####审核题目
2 |
3 | GET theses/verify.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | title |int |论文id
9 | pass|int|通过与否(1通过,2未通过)
10 |
11 |
12 |
13 | 返回结果示例:
14 |
15 | {
16 | "code": 200,
17 | "message": "成功",
18 | "object": {
19 | "available_major": [
20 | "1",
21 | "2",
22 | "3",
23 | "5"
24 | ],
25 | "createAt": "2013-01-06T21:01:28",
26 | "deptid": 1,
27 | "description": "要求有网页、android和ios版",
28 | "requireInfo": "答辩前完成",
29 | "state": 1,
30 | "studentNum": 2,
31 | "teacherid": 1,
32 | "title": "基于新浪sae的毕业论文管理系统",
33 | "titleid": 1
34 | }
35 | }
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/documents/theses-waiting_reviews.md:
--------------------------------------------------------------------------------
1 | ### 获取待审核的论题
2 |
3 |
4 | Get theses/waiting_reviews.json
5 |
6 |
7 |
8 |
9 | {
10 | "code": 200,
11 | "message": "成功",
12 | "object": [
13 | {
14 | "available_major": [
15 | "1",
16 | "2",
17 | "3",
18 | "5"
19 | ],
20 | "createAt": "2013-01-06T20:58:59",
21 | "deptid": 1,
22 | "description": "要求有网页、android和ios版",
23 | "requireInfo": "答辩前完成",
24 | "state": 0,
25 | "studentNum": 2,
26 | "teacher": {
27 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
28 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
29 | "department": null,
30 | "email": "245358419@qq.com",
31 | "gender": 1,
32 | "level": 40,
33 | "major_id": 1,
34 | "screenname": "波潮",
35 | "userid": 1,
36 | "username": "bobo"
37 | },
38 | "teacher_name": "波潮",
39 | "teacherid": 1,
40 | "title": "小区管理系统",
41 | "titleid": 3,
42 | "users": []
43 | },
44 | {
45 | "available_major": [
46 | "1",
47 | "2",
48 | "3",
49 | "5"
50 | ],
51 | "createAt": "2013-01-06T20:59:04",
52 | "deptid": 1,
53 | "description": "要求有网页、android和ios版",
54 | "requireInfo": "答辩前完成",
55 | "state": 0,
56 | "studentNum": 2,
57 | "teacher": {
58 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
59 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
60 | "department": null,
61 | "email": "245358419@qq.com",
62 | "gender": 1,
63 | "level": 40,
64 | "major_id": 1,
65 | "screenname": "波潮",
66 | "userid": 1,
67 | "username": "bobo"
68 | },
69 | "teacher_name": "波潮",
70 | "teacherid": 1,
71 | "title": "校园管理系统",
72 | "titleid": 4,
73 | "users": []
74 | },
75 | {
76 | "available_major": [
77 | "1",
78 | "2",
79 | "3"
80 | ],
81 | "createAt": "2013-01-06T20:59:15",
82 | "deptid": 1,
83 | "description": "要求有网页、android和ios版",
84 | "requireInfo": "答辩前完成",
85 | "state": 0,
86 | "studentNum": 1,
87 | "teacher": {
88 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
89 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
90 | "department": null,
91 | "email": "245358419@qq.com",
92 | "gender": 1,
93 | "level": 40,
94 | "major_id": 1,
95 | "screenname": "波潮",
96 | "userid": 1,
97 | "username": "bobo"
98 | },
99 | "teacher_name": "波潮",
100 | "teacherid": 1,
101 | "title": "物业管理系统",
102 | "titleid": 5,
103 | "users": []
104 | },
105 | {
106 | "available_major": [
107 | "1",
108 | "2",
109 | "3"
110 | ],
111 | "createAt": "2013-01-06T20:59:19",
112 | "deptid": 1,
113 | "description": "要求有网页、android和ios版",
114 | "requireInfo": "答辩前完成",
115 | "state": 0,
116 | "studentNum": 1,
117 | "teacher": {
118 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
119 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
120 | "department": null,
121 | "email": "245358419@qq.com",
122 | "gender": 1,
123 | "level": 40,
124 | "major_id": 1,
125 | "screenname": "波潮",
126 | "userid": 1,
127 | "username": "bobo"
128 | },
129 | "teacher_name": "波潮",
130 | "teacherid": 1,
131 | "title": "淘宝管理系统",
132 | "titleid": 6,
133 | "users": []
134 | },
135 | {
136 | "available_major": [
137 | "12",
138 | "11",
139 | "10",
140 | "9",
141 | "8",
142 | "3",
143 | "2",
144 | "1"
145 | ],
146 | "createAt": "2013-03-23T13:32:04",
147 | "deptid": 1,
148 | "description": "test1123",
149 | "requireInfo": "",
150 | "state": 0,
151 | "studentNum": 3,
152 | "teacher": {
153 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
154 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
155 | "department": null,
156 | "email": "245358419@qq.com",
157 | "gender": 1,
158 | "level": 40,
159 | "major_id": 1,
160 | "screenname": "波潮",
161 | "userid": 1,
162 | "username": "bobo"
163 | },
164 | "teacher_name": "波潮",
165 | "teacherid": 1,
166 | "title": "test1",
167 | "titleid": 8,
168 | "users": []
169 | },
170 | {
171 | "available_major": [
172 | "1",
173 | "2",
174 | "3"
175 | ],
176 | "createAt": "2013-03-23T15:53:24",
177 | "deptid": 1,
178 | "description": "fuubo,清爽,简洁的微博客户端",
179 | "requireInfo": "test",
180 | "state": 0,
181 | "studentNum": 0,
182 | "teacher": {
183 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_27.jpg",
184 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_27.jpg",
185 | "department": null,
186 | "email": "245358419@qq.com",
187 | "gender": 1,
188 | "level": 40,
189 | "major_id": 1,
190 | "screenname": "波潮",
191 | "userid": 1,
192 | "username": "bobo"
193 | },
194 | "teacher_name": "波潮",
195 | "teacherid": 1,
196 | "title": "fuubo微博客户端",
197 | "titleid": 9,
198 | "users": []
199 | }
200 | ]
201 | }
202 |
203 |
204 |
--------------------------------------------------------------------------------
/documents/title-extra_info.md:
--------------------------------------------------------------------------------
1 | ###获取论题附加信息
2 |
3 | GET title/extra_info.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | titleid |int |论题id
9 |
10 |
11 |
12 | 返回结果示例:
13 |
14 | {
15 | "code": 200,
16 | "message": "成功",
17 | "object": {
18 | "student": [
19 | {
20 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_22.jpg",
21 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_22.jpg",
22 | "department": {
23 | "deptid": 1,
24 | "directorid": 1,
25 | "majors": null,
26 | "name": "电软系",
27 | "schoolname": "中山大学南方学院"
28 | },
29 | "email": "245358419@qq.com",
30 | "gender": 1,
31 | "level": 40,
32 | "major_id": 1,
33 | "screenname": "波潮",
34 | "userid": 1,
35 | "username": "bobo"
36 | }
37 | ],
38 | "selections": [
39 | {
40 | "articleScore": null,
41 | "comment": "\"\"",
42 | "createAt": "2013-04-09T15:39:05",
43 | "oralScore": 0,
44 | "selectionid": 5,
45 | "studentid": 2,
46 | "titleid": 3
47 | }
48 | ],
49 | "teacher": {
50 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_1_22.jpg",
51 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_1_22.jpg",
52 | "department": {
53 | "deptid": 1,
54 | "directorid": 1,
55 | "majors": null,
56 | "name": "电软系",
57 | "schoolname": "中山大学南方学院"
58 | },
59 | "email": "245358419@qq.com",
60 | "gender": 1,
61 | "level": 40,
62 | "major_id": 1,
63 | "screenname": "波潮",
64 | "userid": 1,
65 | "username": "bobo"
66 | }
67 | }
68 | }
69 |
70 |
--------------------------------------------------------------------------------
/documents/title-mine.md:
--------------------------------------------------------------------------------
1 | ### 我的论题
2 | ###批量获取用户
3 |
4 | Get titles/mine.json
5 |
6 |
7 | 参数名 |类型及范围 |说明
8 | --- |--- |----
9 | page |int |可选 默认1
10 | count|int |单页获取的数量 默认20
11 |
12 |
13 |
14 | 返回结果示例1:
15 |
16 | {
17 | "code": 200,
18 | "message": "成功",
19 | "object": [
20 | {
21 | "available_major": [
22 | "1",
23 | "2",
24 | "3",
25 | "5"
26 | ],
27 | "createAt": "2013-03-03T10:12:41",
28 | "deptid": 1,
29 | "description": "要求有网页、android和ios版",
30 | "requireInfo": "答辩前完成",
31 | "state": 1,
32 | "studentNum": 1,
33 | "teacherid": 1,
34 | "title": "基于新浪sae的毕业论文管理系统",
35 | "titleid": 1
36 | },
37 | {
38 | "available_major": [
39 | "1",
40 | "2",
41 | "3",
42 | "5"
43 | ],
44 | "createAt": "2013-03-03T10:02:03",
45 | "deptid": 1,
46 | "description": "要求有网页、android和ios版",
47 | "requireInfo": "答辩前完成",
48 | "state": 1,
49 | "studentNum": 2,
50 | "teacherid": 1,
51 | "title": "毕业论文管理系统",
52 | "titleid": 2
53 | }
54 | ]
55 | }
56 | 返回示例2:
57 | {
58 | "code": 200,
59 | "message": "成功",
60 | "object": [
61 | {
62 | "articleScore": 0,
63 | "comment": "\"\"",
64 | "createAt": "2013-03-03T10:12:41",
65 | "oralScore": 0,
66 | "selectionid": 1,
67 | "studentid": 2,
68 | "titleid": 1
69 | }
70 | ]
71 | }
72 |
73 |
--------------------------------------------------------------------------------
/documents/unread-get.md:
--------------------------------------------------------------------------------
1 | ###获取私信未读数
2 |
3 | Get unread/get.json
4 |
5 |
6 |
7 |
8 | {
9 | "code": 200,
10 | "message": "成功",
11 | "object": {
12 | "unreadCount": 1
13 | }
14 | }
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/documents/user-create.md:
--------------------------------------------------------------------------------
1 | ####创建用户
2 |
3 | POST user/create.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | username |String |用户名(学号)
9 | deptid |long |系id,若传majorid 可不传
10 | majorid |long |专业id(高级管理员、管理员、教师可选,学生必选)
11 | gender |byte |性别,可选,默认0
12 | email |String | 邮箱,可选
13 | level |level |用户类型 必选,只能创建比当前账户低的类型 80 超级管理员70 高级管理员60 管理员40 出题教师30 教师10 学生0 游客
14 | screenname |String |昵称,可选
15 | password |String |密码,可选,不传时和username一样
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 返回结果示例:
24 |
25 | {
26 | "code": 200,
27 | "message": "成功",
28 | "object": {
29 | "avatar": null,
30 | "avatar_thumb": null,
31 | "department": 1,
32 | "email": null,
33 | "gender": 0,
34 | "level": 10,
35 | "major": 1,
36 | "screenname": "波潮",
37 | "userid": 11,
38 | "username": "092011088"
39 | }
40 | }
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/documents/user-username-exists.md:
--------------------------------------------------------------------------------
1 | ###判断用户是否存在
2 |
3 | POST user/username_exists.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | username |String |用户名
9 |
10 |
11 |
12 | 返回结果示例:
13 |
14 | {
15 | "code": 200,
16 | "message": "成功",
17 | "object": {
18 | "result": 1
19 | }
20 | }
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/documents/users-show.md:
--------------------------------------------------------------------------------
1 | ###批量获取用户
2 |
3 | Get users/show.json
4 |
5 |
6 | 参数名 |类型及范围 |说明
7 | --- |--- |----
8 | majorid |int |专业编号
9 | deptid |int |系别编号(与majorid二选一)
10 | max_level |int |最大权限 可选,level小于或等于这个值的
11 | min_level |int |最小权限 可选,level大于或等于这个值的
12 | level |int |权限(与max_level,min_level三选一)可选,只显示当前level的,不受minlevel、maxlevel 影响
13 | page |int |可选 默认1
14 | count |int|单页获取的数量
15 |
16 |
17 |
18 | 返回结果示例:(测试参数:deptid=1&max_level=30)
19 |
20 | {
21 | "code": 200,
22 | "message": "成功",
23 | "object": [
24 | {
25 | "avatar": "http://lwapi-pic.stor.sinaapp.com/user_2_8.png",
26 | "avatar_thumb": "http://lwapi-picmin.stor.sinaapp.com/user_2_8.png",
27 | "department": null,
28 | "email": "naituw@gmail.com",
29 | "gender": 1,
30 | "level": 10,
31 | "major_id": 1,
32 | "screenname": "吴天",
33 | "userid": 2,
34 | "username": "092011070"
35 | },
36 | {
37 | "avatar": "http://null-pic.stor.sinaapp.com/user_1_40.png",
38 | "avatar_thumb": "http://null-picmin.stor.sinaapp.com/user_1_40.png",
39 | "department": null,
40 | "email": "",
41 | "gender": 0,
42 | "level": 30,
43 | "major_id": 1,
44 | "screenname": "",
45 | "userid": 4,
46 | "username": "bobo1"
47 | },
48 | {
49 | "avatar": null,
50 | "avatar_thumb": null,
51 | "department": null,
52 | "email": null,
53 | "gender": 0,
54 | "level": 10,
55 | "major_id": 1,
56 | "screenname": "波潮",
57 | "userid": 11,
58 | "username": "092011088"
59 | },
60 | {
61 | "avatar": null,
62 | "avatar_thumb": null,
63 | "department": null,
64 | "email": null,
65 | "gender": 2,
66 | "level": 30,
67 | "major_id": 0,
68 | "screenname": "教师测试",
69 | "userid": 12,
70 | "username": "teacher"
71 | }
72 | ]
73 | }
74 |
75 |
--------------------------------------------------------------------------------