Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x 1x 1x 1x 1x 6x 6x 6x 6x 6x 6x | import { api } from '@/api/core';
import { GetFollowerParams, GetFollowerResponse } from '@/types/service/follow';
import { FollowPathParams } from '@/types/service/user';
export const followerServiceRemote = () => ({
// 팔로워 목록 조회
getFollowers: async ({ userId, cursor, size = 20 }: GetFollowerParams) => {
return api.get<GetFollowerResponse>(`/users/${userId}/follow`, {
params: {
cursor,
size,
},
});
},
// 팔로워 등록
addFollower: async (params: FollowPathParams) => {
return api.post<string>(`/users/follow`, null, {
params: { followNickname: params.followNickname },
});
},
});
|