mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
potal二期接口
This commit is contained in:
@@ -10,7 +10,7 @@ import ajax from '@/utils/xajax.js'
|
|||||||
* }
|
* }
|
||||||
* */
|
* */
|
||||||
const save=function (data){
|
const save=function (data){
|
||||||
return ajax.postJson('/xboe/stat/m/userhobby/save',data);
|
return ajax.postJson('/xboe/subgroup/m/userhobby/save',data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -18,14 +18,14 @@ const save=function (data){
|
|||||||
* 参数:下面那个接口的返回值直接传
|
* 参数:下面那个接口的返回值直接传
|
||||||
* */
|
* */
|
||||||
const list=function (data){
|
const list=function (data){
|
||||||
return ajax.postJson('/xboe/stat/m/userhobby/list',data);
|
return ajax.postJson('/xboe/subgroup/m/userhobby/list',data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户兴趣关联的id
|
* 获取用户兴趣关联的id
|
||||||
* */
|
* */
|
||||||
const info=function (){
|
const info=function (){
|
||||||
return ajax.get('/xboe/stat/m/userhobby/info');
|
return ajax.get('/xboe/subgroup/m/userhobby/info');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -33,14 +33,14 @@ const info=function (){
|
|||||||
* 参数是上一个接口 info查出来的返回值
|
* 参数是上一个接口 info查出来的返回值
|
||||||
* */
|
* */
|
||||||
const update=function (data){
|
const update=function (data){
|
||||||
return ajax.postJson('/xboe/stat/m/userhobby/update',data);
|
return ajax.postJson('/xboe/subgroup/m/userhobby/update',data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
* */
|
* */
|
||||||
const del=function (id){
|
const del=function (id){
|
||||||
return ajax.get('/xboe/stat/m/userhobby/delete?id='+id);
|
return ajax.get('/xboe/subgroup/m/userhobby/delete?id='+id);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user