sendHeartbeat static method
发送心跳 用于保持会话活跃状态 通过HTTP请求与后端API交互
Implementation
static Future<TCICHeartbeatRepModel?> sendHeartbeat(HeartbeatBody body) async {
var data = await HttpClient.post<TCICHeartbeatRepModel, HeartbeatBody>(
api: "/v2/member/heartbeat",
body: body,
fromJson: TCICHeartbeatRepModel.fromJson,
);
TCICLog.info('HTTP sendHeartbeat ${data?.toJson()}',actionModule: ActionModule.memberService.name,actionName: ActionName.sendHeartbeat.name);
return data;
}