mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
potal二期接口
This commit is contained in:
@@ -10,7 +10,7 @@ import ajax from '@/utils/xajax.js'
|
||||
* }
|
||||
* */
|
||||
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){
|
||||
return ajax.postJson('/xboe/stat/m/userhobby/list',data);
|
||||
return ajax.postJson('/xboe/subgroup/m/userhobby/list',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户兴趣关联的id
|
||||
* */
|
||||
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查出来的返回值
|
||||
* */
|
||||
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){
|
||||
return ajax.get('/xboe/stat/m/userhobby/delete?id='+id);
|
||||
return ajax.get('/xboe/subgroup/m/userhobby/delete?id='+id);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user