协议增加,查看图片或者视频上报,用于排行榜
This commit is contained in:
@@ -191,6 +191,12 @@ export class GirlData extends BaseData {
|
||||
|
||||
/** --------------------------------------------------------- 技师的排行榜数据 --------------------------------------------------------- */
|
||||
|
||||
/** 清空 排行榜数据 */
|
||||
public clearGirlRank(): void {
|
||||
if (!this._rankData) return;
|
||||
this._rankData.clear();
|
||||
}
|
||||
|
||||
/** 保存 排行榜数据 */
|
||||
public setGirlRank(rankType: proto.cs.EnmRankType, data: proto.cs.ICSGetRankRes): void {
|
||||
if (!data) return;
|
||||
|
||||
@@ -57,7 +57,12 @@ export class GirlService implements IGirlService {
|
||||
// 获取排行榜列表
|
||||
public async reqGirlRankData(req: proto.cs.ICSGetRankReq): Promise<ApiResponse<proto.cs.ICSGetRankRes>> {
|
||||
return this.impl.reqGirlRankData(req);
|
||||
}
|
||||
}
|
||||
|
||||
// 查看图片或者视频上报,用于排行榜
|
||||
public async reqViewGirl(req: proto.cs.ICSViewGirlReq): Promise<ApiResponse<proto.cs.ICSViewGirlRes>> {
|
||||
return this.impl.reqViewGirl(req);
|
||||
}
|
||||
|
||||
// 收藏技师
|
||||
public async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||
|
||||
@@ -84,6 +84,17 @@ export class HttpGirlService implements IGirlService {
|
||||
return this.api.call(epData, req);
|
||||
}
|
||||
|
||||
// 查看图片或者视频上报,用于排行榜
|
||||
async reqViewGirl(req: proto.cs.ICSViewGirlReq): Promise<ApiResponse<proto.cs.ICSViewGirlRes>> {
|
||||
let epData: Endpoint<proto.cs.ICSViewGirlReq, proto.cs.ICSViewGirlRes> = {
|
||||
path: "api/logic/viewGirl",
|
||||
method: "POST",
|
||||
codec: "json",
|
||||
needsAuth: true
|
||||
};
|
||||
return this.api.call(epData, req);
|
||||
}
|
||||
|
||||
// 收藏技师
|
||||
async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||
let epData: Endpoint<proto.cs.ICSBookmarkReq, proto.cs.ICSBookmarkRes> = {
|
||||
|
||||
@@ -15,7 +15,9 @@ export interface IGirlService {
|
||||
// 获取可聊天的技师数据
|
||||
reqCanChatGirlData(req: proto.cs.ICSGetLastChatListReq): Promise<ApiResponse<proto.cs.ICSGetLastChatListRes>>;
|
||||
// 获取排行榜列表
|
||||
reqGirlRankData(req: proto.cs.ICSGetRankReq): Promise<ApiResponse<proto.cs.ICSGetRankRes>>;
|
||||
reqGirlRankData(req: proto.cs.ICSGetRankReq): Promise<ApiResponse<proto.cs.ICSGetRankRes>>;
|
||||
// 查看图片或者视频上报,用于排行榜
|
||||
reqViewGirl(req: proto.cs.ICSViewGirlReq): Promise<ApiResponse<proto.cs.ICSViewGirlRes>>;
|
||||
// 收藏技师
|
||||
reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>>;
|
||||
// 获取收藏列表
|
||||
|
||||
@@ -324,6 +324,17 @@ export class MockGirlService implements IGirlService {
|
||||
return this.ok(res);
|
||||
}
|
||||
|
||||
// 查看图片或者视频上报,用于排行榜
|
||||
async reqViewGirl(req: proto.cs.ICSViewGirlReq): Promise<ApiResponse<proto.cs.ICSViewGirlRes>> {
|
||||
// TODO
|
||||
|
||||
// 返回数据
|
||||
const res: proto.cs.ICSViewGirlRes = {
|
||||
|
||||
};
|
||||
return this.ok(res);
|
||||
}
|
||||
|
||||
// 收藏技师
|
||||
async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||
// TODO
|
||||
|
||||
Reference in New Issue
Block a user