postFollowDelete method

Future<String> postFollowDelete(
  1. int userId
)

取消关注用户
userId - 用户ID

Implementation

Future<String> postFollowDelete(int userId) async {
  return _httpClient
      .post<String>(
        '/v1/user/follow/delete',
        data: FormData.fromMap(
          {
            'user_id': userId,
          },
        ),
      )
      .then((response) => response.data!);
}