From 0422b6c9a71c4e06f8f023273a11a55ad257f3cb Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Mon, 17 Oct 2022 22:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B9=E6=B3=95=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=EF=BC=9AcheckFllow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/phase2/userfollow.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/api/phase2/userfollow.js b/src/api/phase2/userfollow.js index 50e14e3a..680e2a89 100644 --- a/src/api/phase2/userfollow.js +++ b/src/api/phase2/userfollow.js @@ -12,6 +12,16 @@ const save=function (followId){ return ajax.get(baseURL,'/xboe/subgroup/m/userfollow/save?followId='+followId); } +/** + * 检查是否已关注 + * @param{ + * followId + * } + * */ +const checkFllow=function (followId){ + return ajax.get(baseURL,'/xboe/subgroup/m/userfollow/checkFllow?followId='+followId); +} + /** * 取消关注 * @@ -79,6 +89,6 @@ export default { mypage, ids, counts, - has + has, + checkFllow } -