1
|
const http = uni.$u.http
|
1
|
const http = uni.$u.http
|
2
|
|
2
|
|
3
|
// 获取oss对应的图片地址
|
3
|
// 获取oss对应的图片地址
|
4
|
-export const getImgUrlApi = (params) => http.get('/basic/v1/oss/sign_url', {
|
4
|
+export const getImgUrlApi = (params) => http.get('/basic/v1/oss/signUrl', {
|
5
|
params: params
|
5
|
params: params
|
6
|
})
|
6
|
})
|
7
|
|
7
|
|
|
@@ -23,7 +23,7 @@ export const getUserInfoApi = (params) => http.get('/user/v1/detail', { |
|
@@ -23,7 +23,7 @@ export const getUserInfoApi = (params) => http.get('/user/v1/detail', { |
23
|
})
|
23
|
})
|
24
|
|
24
|
|
25
|
// 获取短信验证码
|
25
|
// 获取短信验证码
|
26
|
-export const getSmsCodeApi = (params) => http.get('/basic/v1/sms_code/get', {
|
26
|
+export const getSmsCodeApi = (params) => http.get('/basic/v1/smsCode/get', {
|
27
|
params: params
|
27
|
params: params
|
28
|
})
|
28
|
})
|
29
|
|
29
|
|
|
@@ -37,7 +37,7 @@ export const delAccountApi = (params) => http.delete('/user/v1/annuluser', param |
|
@@ -37,7 +37,7 @@ export const delAccountApi = (params) => http.delete('/user/v1/annuluser', param |
37
|
export const cancelDelAccountApi = (params) => http.put('/user/v1/annulusercancel', params);
|
37
|
export const cancelDelAccountApi = (params) => http.put('/user/v1/annulusercancel', params);
|
38
|
|
38
|
|
39
|
// 更新老师头像
|
39
|
// 更新老师头像
|
40
|
-export const updateAvatarUrlApi = (params) => http.put('/user/v1/teacher/update_avatar_url', params);
|
40
|
+export const updateAvatarUrlApi = (params) => http.put('/user/v1/teacher/updateAvatarUrl', params);
|
41
|
|
41
|
|
42
|
// 学校列表
|
42
|
// 学校列表
|
43
|
export const getSchoolListApi = (params) => http.get('/user/v1/schoolList', {
|
43
|
export const getSchoolListApi = (params) => http.get('/user/v1/schoolList', {
|
|
@@ -45,7 +45,7 @@ export const getSchoolListApi = (params) => http.get('/user/v1/schoolList', { |
|
@@ -45,7 +45,7 @@ export const getSchoolListApi = (params) => http.get('/user/v1/schoolList', { |
45
|
})
|
45
|
})
|
46
|
|
46
|
|
47
|
// 切换老师身份
|
47
|
// 切换老师身份
|
48
|
-export const putTeacherRolesApi = (id, params) => http.put(`/user/v1/teacher/${id}/change_role`, params);
|
48
|
+export const putTeacherRolesApi = (id, params) => http.put(`/user/v1/teacher/${id}/changeRole`, params);
|
49
|
|
49
|
|
50
|
// 待办事项统计
|
50
|
// 待办事项统计
|
51
|
export const getTodoListStatisticsApi = (params) => http.get('/internship/v1/index/applet/waitHandleList', {
|
51
|
export const getTodoListStatisticsApi = (params) => http.get('/internship/v1/index/applet/waitHandleList', {
|
|
@@ -76,25 +76,25 @@ export const getStudentSignInListApi = (params) => http.get('/internship/v1/atte |
|
@@ -76,25 +76,25 @@ export const getStudentSignInListApi = (params) => http.get('/internship/v1/atte |
76
|
})
|
76
|
})
|
77
|
|
77
|
|
78
|
// 日志批阅列表
|
78
|
// 日志批阅列表
|
79
|
-export const getLogReviewListApi = (params) => http.get('/internship/v1/form_log/school/list', {
|
79
|
+export const getLogReviewListApi = (params) => http.get('/internship/v1/formLog/school/list', {
|
80
|
params: params
|
80
|
params: params
|
81
|
})
|
81
|
})
|
82
|
|
82
|
|
83
|
// 实习日志详情
|
83
|
// 实习日志详情
|
84
|
-export const getLogDetailApi = (id, params) => http.get(`/internship/v1/form_log/detail/${id}`, {
|
84
|
+export const getLogDetailApi = (id, params) => http.get(`/internship/v1/formLog/detail/${id}`, {
|
85
|
params: params
|
85
|
params: params
|
86
|
})
|
86
|
})
|
87
|
|
87
|
|
88
|
// 日志批阅
|
88
|
// 日志批阅
|
89
|
-export const putLogReviewApi = (params) => http.put(`/internship/v1/form_log/approve`, params);
|
89
|
+export const putLogReviewApi = (params) => http.put(`/internship/v1/formLog/approve`, params);
|
90
|
|
90
|
|
91
|
// 日志回复列表
|
91
|
// 日志回复列表
|
92
|
-export const getLogReplyListApi = (params) => http.get('/internship/v1/form_log_review/list', {
|
92
|
+export const getLogReplyListApi = (params) => http.get('/internship/v1/formLogReview/list', {
|
93
|
params: params
|
93
|
params: params
|
94
|
})
|
94
|
})
|
95
|
|
95
|
|
96
|
// 创建日志回复
|
96
|
// 创建日志回复
|
97
|
-export const postLogReplyApi = (params) => http.post(`/internship/v1/form_log_review/save`, params);
|
97
|
+export const postLogReplyApi = (params) => http.post(`/internship/v1/formLogReview/save`, params);
|
98
|
|
98
|
|
99
|
// 报告批阅列表
|
99
|
// 报告批阅列表
|
100
|
export const getReportReviewListApi = (params) => http.get('/internship/v1/report/list', {
|
100
|
export const getReportReviewListApi = (params) => http.get('/internship/v1/report/list', {
|
|
@@ -102,7 +102,7 @@ export const getReportReviewListApi = (params) => http.get('/internship/v1/repor |
|
@@ -102,7 +102,7 @@ export const getReportReviewListApi = (params) => http.get('/internship/v1/repor |
102
|
})
|
102
|
})
|
103
|
|
103
|
|
104
|
// 实习报告详情
|
104
|
// 实习报告详情
|
105
|
-export const getReportDetailApi = (id, params) => http.get(`/internship/v1/report/detail_by_student/${id}`, {
|
105
|
+export const getReportDetailApi = (id, params) => http.get(`/internship/v1/report/detailByStudent/${id}`, {
|
106
|
params: params
|
106
|
params: params
|
107
|
})
|
107
|
})
|
108
|
|
108
|
|
|
@@ -110,7 +110,7 @@ export const getReportDetailApi = (id, params) => http.get(`/internship/v1/repor |
|
@@ -110,7 +110,7 @@ export const getReportDetailApi = (id, params) => http.get(`/internship/v1/repor |
110
|
export const putReportReviewApi = (id, params) => http.put(`/internship/v1/report/examine/${id}`, params);
|
110
|
export const putReportReviewApi = (id, params) => http.put(`/internship/v1/report/examine/${id}`, params);
|
111
|
|
111
|
|
112
|
//审批记录
|
112
|
//审批记录
|
113
|
-export const getReportApprovalListApi = (formId, params) => http.get(`/internship/v1/report/examine_list/${formId}`, {
|
113
|
+export const getReportApprovalListApi = (formId, params) => http.get(`/internship/v1/report/examineList/${formId}`, {
|
114
|
params: params
|
114
|
params: params
|
115
|
})
|
115
|
})
|
116
|
|
116
|
|
|
@@ -144,7 +144,7 @@ export const getInternshipProcessDetailApi = (params) => http.get(`/internship/v |
|
@@ -144,7 +144,7 @@ export const getInternshipProcessDetailApi = (params) => http.get(`/internship/v |
144
|
})
|
144
|
})
|
145
|
|
145
|
|
146
|
// 三方协议列表
|
146
|
// 三方协议列表
|
147
|
-export const getAgreementListApi = (params) => http.get('/internship/v1/treaty/list_by_school', {
|
147
|
+export const getAgreementListApi = (params) => http.get('/internship/v1/treaty/listBySchool', {
|
148
|
params: params
|
148
|
params: params
|
149
|
})
|
149
|
})
|
150
|
|
150
|
|