协议增加,查看图片或者视频上报,用于排行榜
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 {
|
public setGirlRank(rankType: proto.cs.EnmRankType, data: proto.cs.ICSGetRankRes): void {
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
|
|||||||
@@ -59,6 +59,11 @@ export class GirlService implements IGirlService {
|
|||||||
return this.impl.reqGirlRankData(req);
|
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>> {
|
public async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||||
return this.impl.reqBookmarkGirl(req);
|
return this.impl.reqBookmarkGirl(req);
|
||||||
|
|||||||
@@ -84,6 +84,17 @@ export class HttpGirlService implements IGirlService {
|
|||||||
return this.api.call(epData, req);
|
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>> {
|
async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||||
let epData: Endpoint<proto.cs.ICSBookmarkReq, proto.cs.ICSBookmarkRes> = {
|
let epData: Endpoint<proto.cs.ICSBookmarkReq, proto.cs.ICSBookmarkRes> = {
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ export interface IGirlService {
|
|||||||
reqCanChatGirlData(req: proto.cs.ICSGetLastChatListReq): Promise<ApiResponse<proto.cs.ICSGetLastChatListRes>>;
|
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>>;
|
reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>>;
|
||||||
// 获取收藏列表
|
// 获取收藏列表
|
||||||
|
|||||||
@@ -324,6 +324,17 @@ export class MockGirlService implements IGirlService {
|
|||||||
return this.ok(res);
|
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>> {
|
async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
Reference in New Issue
Block a user