增加游戏内上报打点请求

This commit is contained in:
jtx
2025-10-16 11:19:07 +08:00
parent a7ef288b2d
commit 8d5d9eea0e
5 changed files with 38 additions and 0 deletions
@@ -17,4 +17,15 @@ export class HttpAuthService implements IAuthService {
};
return this.api.call(ep, req);
}
/** 上报事件 */
async pointEvent(req: proto.cs.ICSPointEventReq): Promise<ApiResponse<proto.cs.ICSPointEventRes>> {
const ep: Endpoint<proto.cs.ICSPointEventReq, proto.cs.ICSPointEventRes> = {
path: "api/logic/pointEvent",
method: "POST",
codec: "json",
needsAuth: false,
};
return this.api.call(ep, req);
}
}