mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
二次查询接口
This commit is contained in:
59
src/api/phase2/userfollow.js
Normal file
59
src/api/phase2/userfollow.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import ajax from '../ajax';
|
||||
const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
|
||||
|
||||
|
||||
/**
|
||||
* 添加关注
|
||||
* @param{
|
||||
* followId
|
||||
* }
|
||||
* */
|
||||
const save=function (followId){
|
||||
return ajax.get('/xboe/subgroup/m/userfollow/save?followId='+followId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消关注
|
||||
*
|
||||
* */
|
||||
const remove=function (followId){
|
||||
return ajax.get('/xboe/subgroup/m/userfollow/remove?followId='+followId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 我关注的人列表
|
||||
* @param{
|
||||
* pageIndex
|
||||
* pageSize
|
||||
* }
|
||||
* */
|
||||
const page=function (query){
|
||||
return ajax.post('/xboe/subgroup/m/userfollow/page',query);
|
||||
}
|
||||
|
||||
/**
|
||||
* 我关注的人列表
|
||||
* @param{
|
||||
* pageIndex
|
||||
* pageSize
|
||||
* }
|
||||
* */
|
||||
const mypage=function (query){
|
||||
return ajax.post('/xboe/subgroup/m/userfollow/mypage',query);
|
||||
}
|
||||
|
||||
/**
|
||||
* 二次查询
|
||||
* */
|
||||
const ids=function (data){
|
||||
return ajax.postJson('/xboe/subgroup/m/userfollow/ids',data);
|
||||
}
|
||||
|
||||
export default {
|
||||
save,
|
||||
remove,
|
||||
page,
|
||||
mypage,
|
||||
ids
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user