import { ApiClient } from "../client/ApiClient"; import type { Endpoint } from "../client/endpoints"; import type { ApiResponse } from "../client/types"; import proto from 'db://assets/Scripts/proto/proto.pb.js'; export class GirlService { private static _I: GirlService | null = null; public static get I(): GirlService { if (!GirlService._I) GirlService._I = new GirlService(); return GirlService._I; } private constructor(private api = ApiClient.I) {} // 每日推荐 public async reqDailyRecommend(req: proto.cs.ICSDailyRecommendReq): Promise> { let epData: Endpoint = { path: "api/logic/dailyRecommend", method: "POST", codec: "json", needsAuth: true }; return this.api.call(epData, req); } // 获取技师列表 public async reqGetGirlList(req: proto.cs.ICSGetGirlListReq): Promise> { let epData: Endpoint = { path: "api/logic/getGirls", method: "POST", codec: "json", needsAuth: true }; return this.api.call(epData, req); } // 获取技师详细信息 public async reqGetGirlDetail(req: proto.cs.ICSGetGirlDetailReq): Promise> { let epData: Endpoint = { path: "api/logic/girlDetail", method: "POST", codec: "json", needsAuth: true }; return this.api.call(epData, req); } }