diff --git a/src/api/modules/userhobby.js b/src/api/modules/userhobby.js new file mode 100644 index 00000000..879d36ae --- /dev/null +++ b/src/api/modules/userhobby.js @@ -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 +} +