From 2975280ccf02d0de4be03d1682b05dc5a3c0838d Mon Sep 17 00:00:00 2001 From: 86182 Date: Wed, 21 Sep 2022 17:05:05 +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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/api/phase2/userfollow.js b/src/api/phase2/userfollow.js index 87d311b3..11f23aeb 100644 --- a/src/api/phase2/userfollow.js +++ b/src/api/phase2/userfollow.js @@ -62,12 +62,23 @@ const counts=function (aid){ return ajax.get(baseURL,'/xboe/subgroup/m/userfollow/counts?aid='+aid); } +/** + * 查询是否已关注 + * @param{ + * followId 关注人的id + * } + * */ +const has=function (followId){ + return ajax.get('/xboe/subgroup/m/userfollow/has?followId='+followId); +} + export default { save, remove, page, mypage, ids, - counts + counts, + has }