获取可聊天的技师数据
This commit is contained in:
@@ -48,4 +48,9 @@ export class GirlService implements IGirlService {
|
||||
public async reqUnlockGirlRes(req: proto.cs.ICSUnlockResourceReq): Promise<ApiResponse<proto.cs.ICSUnlockResourceRes>> {
|
||||
return this.impl.reqUnlockGirlRes(req);
|
||||
}
|
||||
|
||||
// 获取可聊天的技师数据
|
||||
public async reqCanChatGirlData(req: proto.cs.ICSGetLastChatListReq): Promise<ApiResponse<proto.cs.ICSGetLastChatListRes>> {
|
||||
return this.impl.reqCanChatGirlData(req);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,4 +61,15 @@ export class HttpGirlService implements IGirlService {
|
||||
};
|
||||
return this.api.call(epData, req);
|
||||
}
|
||||
|
||||
// 获取可聊天的技师数据
|
||||
async reqCanChatGirlData(req: proto.cs.ICSGetLastChatListReq): Promise<ApiResponse<proto.cs.ICSGetLastChatListRes>> {
|
||||
let epData: Endpoint<proto.cs.ICSGetLastChatListReq, proto.cs.ICSGetLastChatListRes> = {
|
||||
path: "api/logic/getLastChat",
|
||||
method: "POST",
|
||||
codec: "json",
|
||||
needsAuth: true
|
||||
};
|
||||
return this.api.call(epData, req);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,6 @@ export interface IGirlService {
|
||||
reqUnlockGirl(req: proto.cs.ICSUnlockGirlReq): Promise<ApiResponse<proto.cs.ICSUnlockGirlRes>>;
|
||||
// 解锁资源
|
||||
reqUnlockGirlRes(req: proto.cs.ICSUnlockResourceReq): Promise<ApiResponse<proto.cs.ICSUnlockResourceRes>>;
|
||||
// 获取可聊天的技师数据
|
||||
reqCanChatGirlData(req: proto.cs.ICSGetLastChatListReq): Promise<ApiResponse<proto.cs.ICSGetLastChatListRes>>;
|
||||
}
|
||||
|
||||
@@ -300,5 +300,16 @@ export class MockGirlService implements IGirlService {
|
||||
vipExpire,
|
||||
};
|
||||
return this.ok(res);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取可聊天的技师数据
|
||||
async reqCanChatGirlData(req: proto.cs.ICSGetLastChatListReq): Promise<ApiResponse<proto.cs.ICSGetLastChatListRes>> {
|
||||
// TODO
|
||||
|
||||
// 返回数据
|
||||
const res: proto.cs.ICSGetLastChatListRes = {
|
||||
LastChatList: [],
|
||||
};
|
||||
return this.ok(res);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user