potal二期接口

This commit is contained in:
86182
2022-09-06 15:42:11 +08:00
parent 0b7a8a85ea
commit fd52e4e99a
4 changed files with 144 additions and 0 deletions

22
src/api/modules/guide.js Normal file
View File

@@ -0,0 +1,22 @@
import ajax from '@/utils/xajax.js'
/**
* 显示提取,一次性
* */
const list=function (){
return ajax.get('/xboe/subgroup/m/guide/list');
}
/**
* 保存或编辑
* */
const saveOrUpdate=function (data){
return ajax.postJson('/xboe/subgroup/m/guide/saveOrUpdate',data);
}
export default {
list,
saveOrUpdate
}

68
src/api/modules/note.js Normal file
View File

@@ -0,0 +1,68 @@
import ajax from '@/utils/xajax.js'
/**
* 添加或者编辑
* @param 参数见设计文档
* */
const save=function (data){
return ajax.postJson('/xboe/subgroup/m/noteinfo/save',data);
}
/**
* 详情
* */
const detail=function (id){
return ajax.get('/xboe/subgroup/m/noteinfo/detail?id='+id);
}
/**
* 删除笔记
* */
const del=function (id){
return ajax.get('/xboe/subgroup/m/noteinfo/delete?id='+id);
}
/**
* 查询课程笔记
* @param{
* pageIndex
* pageSize
* courseId 课程id
* openType 公开类型
* }
* */
const coursePage=function (query){
return ajax.post('/xboe/subgroup/m/noteinfo/course',query);
}
/**
* 查询我的指定课程笔记
* */
const myCourse=function (courseId){
return ajax.get('/xboe/subgroup/m/noteinfo/mycourse?courseId='+courseId);
}
/**
* 查询笔记的修改历史
* */
const history=function (noteId){
return ajax.get('/xboe/subgroup/m/noteinfo/modify/history?noteId='+noteId);
}
/**
* 分页查询我发布的,收藏的,点赞的笔记
* */
const pagelist=function (query){
return ajax.get('/xboe/subgroup/m/noteinfo/pagelist',query);
}
export default {
save,
detail,
del,
coursePage,
myCourse,
history,
pagelist
}

24
src/api/modules/place.js Normal file
View File

@@ -0,0 +1,24 @@
import ajax from '@/utils/xajax.js'
/**
* 添加或编辑
* @param 参数见设计文档
* */
const saveOrUpdate=function (data){
return ajax.postJson('/xboe/subgroup/m/pageplace/saveOrUpdate',data);
}
/**
* 根据key获取资源信息
* */
const detail=function (key){
return ajax.get('/xboe/subgroup/m/pageplace/detail?key='+key);
}
export default {
saveOrUpdate,
detail
}

View File

@@ -0,0 +1,30 @@
import ajax from '@/utils/xajax.js'
/**
* 用户的累计信息
* @param{
* types 数组 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
* }
* */
const user=function (query){
return ajax.post('/xboe/stat/m/user/current/user',query);
}
/**
* 前num的排名
* @parm{
* statType 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
* field todays,weeks,months,years.total
* num 条数
* }
* */
const ranking=function (query){
return ajax.post('/xboe/stat/m/user/ranking/user',query);
}
export default {
user,
ranking
}