From a9c16f496c17ee5e69dc1590ef3975d6b6ca161f Mon Sep 17 00:00:00 2001 From: 86182 Date: Wed, 21 Sep 2022 10:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/phase2/userfollow.js | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/api/phase2/userfollow.js diff --git a/src/api/phase2/userfollow.js b/src/api/phase2/userfollow.js new file mode 100644 index 00000000..f7aff478 --- /dev/null +++ b/src/api/phase2/userfollow.js @@ -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 +} +