mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
potal二期接口
This commit is contained in:
53
src/api/modules/userhobby.js
Normal file
53
src/api/modules/userhobby.js
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
import ajax from '@/utils/xajax.js'
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户采集的添加
|
||||||
|
* @param{
|
||||||
|
* type 类型 1表课程分类
|
||||||
|
* refId 关联的id
|
||||||
|
* refCode 关联的code
|
||||||
|
* }
|
||||||
|
* */
|
||||||
|
const save=function (data){
|
||||||
|
return ajax.postJson('/xboe/stat/m/userhobby/save',data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同兴趣人匹配查询
|
||||||
|
* 参数:下面那个接口的返回值直接传
|
||||||
|
* */
|
||||||
|
const list=function (data){
|
||||||
|
return ajax.postJson('/xboe/stat/m/userhobby/list',data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户兴趣关联的id
|
||||||
|
* */
|
||||||
|
const info=function (){
|
||||||
|
return ajax.get('/xboe/stat/m/userhobby/info');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户兴趣爱好兴趣爱好,
|
||||||
|
* 参数是上一个接口 info查出来的返回值
|
||||||
|
* */
|
||||||
|
const update=function (data){
|
||||||
|
return ajax.postJson('/xboe/stat/m/userhobby/update',data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
* */
|
||||||
|
const del=function (id){
|
||||||
|
return ajax.get('/xboe/stat/m/userhobby/delete?id='+id);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
save,
|
||||||
|
list,
|
||||||
|
info,
|
||||||
|
update,
|
||||||
|
del
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user