This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathv2版本API.js
48 lines (46 loc) · 1.78 KB
/
v2版本API.js
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
'use strict';
export const BASE_URL = "http://itning:8888";
export const CAS_LOGIN_URL = BASE_URL + "/v2/user/login";
export const CAS_LOGOUT_URL = BASE_URL + "/v2/user/logout";
const str = "/v2";
export function Student() {
return {
groups: BASE_URL + str + '/student_group',
works_undone: BASE_URL + str + '/work/un_done',
works_done: BASE_URL + str + '/work/done',
upload: BASE_URL + str + '/upload/',
addGroup: BASE_URL + str + '/student_group',
dropOutGroup: BASE_URL + str + '/student_group/',
uploadWork: BASE_URL + str + '/file/up/',
deleteUpload: BASE_URL + str + '/upload/',
existGroup: BASE_URL + str + '/student_group/exist',
downWork: BASE_URL + str + '/file/down/',
downPreview: BASE_URL + str + '/down_preview/',
notices: BASE_URL + str + '/notice',
getReview: BASE_URL + str + '/upload/review/',
delNotice: BASE_URL + str + '/notice/',
}
}
export function Teacher() {
return {
groups: BASE_URL + str + '/group',
existGroup: BASE_URL + str + '/group/exist',
createGroup: BASE_URL + str + '/group',
delGroup: BASE_URL + str + '/group/',
upGroupName: BASE_URL + str + '/group/',
works: BASE_URL + str + '/work/works',
work: BASE_URL + str + '/work/',
createWork: BASE_URL + str + '/work',
delWork: BASE_URL + str + '/work/',
upWorkEnabled: BASE_URL + str + '/work/enabled/',
upWorkName: BASE_URL + str + '/work/name/',
workDetail: BASE_URL + str + '/work/detail/',
pack: BASE_URL + str + '/pack/',
downAll: BASE_URL + str + '/down/',
downNow: BASE_URL + str + '/file/down_now/',
downInZip: BASE_URL + str + '/down_in_zip/',
zipPreview: BASE_URL + str + '/zip_preview/',
reviewWork: BASE_URL + str + '/review/',
getReviewWork: BASE_URL + str + '/upload/review/',
}
}