mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
22
api/modules/courseGrade.js
Normal file
22
api/modules/courseGrade.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/* 评分的相关处理*/
|
||||
import ajax from '@/utils/xajax.js'
|
||||
/*评分
|
||||
@param courseId 课程id
|
||||
@param score 分数
|
||||
@studyId 学习id
|
||||
*/
|
||||
const grade=function(query){
|
||||
return ajax.post('/xboe/m/grade/grade',query);
|
||||
}
|
||||
|
||||
/*查看当前用户是否评分
|
||||
@param courseId 课程id
|
||||
*/
|
||||
const has=function(id){
|
||||
return ajax.get(`/xboe/m/grade/has?courseId=${id}`);
|
||||
}
|
||||
|
||||
export default{
|
||||
grade,
|
||||
has
|
||||
}
|
||||
Reference in New Issue
Block a user