potal二期接口

This commit is contained in:
86182
2022-09-13 11:52:27 +08:00
parent fce9e6e0ec
commit 904bf37cde

View 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
}