diff --git a/src/api/phase2/userfollow.js b/src/api/phase2/userfollow.js index f7aff478..a2a5c60f 100644 --- a/src/api/phase2/userfollow.js +++ b/src/api/phase2/userfollow.js @@ -24,7 +24,8 @@ const remove=function (followId){ * 我关注的人列表 * @param{ * pageIndex - * pageSize + * pageSize, + * aid * } * */ const page=function (query){ @@ -35,7 +36,8 @@ const page=function (query){ * 我关注的人列表 * @param{ * pageIndex - * pageSize + * pageSize, + * aid * } * */ const mypage=function (query){ @@ -49,11 +51,23 @@ const ids=function (data){ return ajax.postJson('/xboe/subgroup/m/userfollow/ids',data); } +/** + * 被关注数 + * 关注数 + * @pram{ + * aid + * } + * */ +const counts=function (aid){ + return ajax.get('/xboe/subgroup/m/userfollow/counts?aid='+aid); +} + export default { save, remove, page, mypage, - ids + ids, + counts }