isFollowed method
Implementation
Future<bool> isFollowed(String? uid) async {
//
final initUrl = BytedeskUtils.getHostUri(
'/api/user/isfollowed', {'uid': uid, 'client': client});
final initResponse = await httpClient.get(initUrl, headers: getHeaders());
//解决json解析中的乱码问题
Utf8Decoder utf8decoder = const Utf8Decoder(); // fix 中文乱码
//将string类型数据 转换为json类型的数据
final responseJson =
json.decode(utf8decoder.convert(initResponse.bodyBytes));
// debugPrint("responseJson $responseJson");
// 解析
return responseJson['data'];
}