协议增加,收藏角色,收藏列表
This commit is contained in:
@@ -58,4 +58,14 @@ export class GirlService implements IGirlService {
|
|||||||
public async reqGirlRankData(req: proto.cs.ICSGetRankReq): Promise<ApiResponse<proto.cs.ICSGetRankRes>> {
|
public async reqGirlRankData(req: proto.cs.ICSGetRankReq): Promise<ApiResponse<proto.cs.ICSGetRankRes>> {
|
||||||
return this.impl.reqGirlRankData(req);
|
return this.impl.reqGirlRankData(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 收藏技师
|
||||||
|
public async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||||
|
return this.impl.reqBookmarkGirl(req);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取收藏列表
|
||||||
|
public async reqBookmarkGirlList(req: proto.cs.ICSGetBookmarkReq): Promise<ApiResponse<proto.cs.ICSGetBookmarkRes>> {
|
||||||
|
return this.impl.reqBookmarkGirlList(req);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,4 +83,26 @@ export class HttpGirlService implements IGirlService {
|
|||||||
};
|
};
|
||||||
return this.api.call(epData, req);
|
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> = {
|
||||||
|
path: "api/logic/bookmark",
|
||||||
|
method: "POST",
|
||||||
|
codec: "json",
|
||||||
|
needsAuth: true
|
||||||
|
};
|
||||||
|
return this.api.call(epData, req);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取收藏列表
|
||||||
|
async reqBookmarkGirlList(req: proto.cs.ICSGetBookmarkReq): Promise<ApiResponse<proto.cs.ICSGetBookmarkRes>> {
|
||||||
|
let epData: Endpoint<proto.cs.ICSGetBookmarkReq, proto.cs.ICSGetBookmarkRes> = {
|
||||||
|
path: "api/logic/getBookmark",
|
||||||
|
method: "POST",
|
||||||
|
codec: "json",
|
||||||
|
needsAuth: true
|
||||||
|
};
|
||||||
|
return this.api.call(epData, req);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,4 +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>>;
|
||||||
|
// 收藏技师
|
||||||
|
reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>>;
|
||||||
|
// 获取收藏列表
|
||||||
|
reqBookmarkGirlList(req: proto.cs.ICSGetBookmarkReq): Promise<ApiResponse<proto.cs.ICSGetBookmarkRes>>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,4 +323,26 @@ export class MockGirlService implements IGirlService {
|
|||||||
};
|
};
|
||||||
return this.ok(res);
|
return this.ok(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 收藏技师
|
||||||
|
async reqBookmarkGirl(req: proto.cs.ICSBookmarkReq): Promise<ApiResponse<proto.cs.ICSBookmarkRes>> {
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
// 返回数据
|
||||||
|
const res: proto.cs.ICSBookmarkRes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
return this.ok(res);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取收藏列表
|
||||||
|
async reqBookmarkGirlList(req: proto.cs.ICSGetBookmarkReq): Promise<ApiResponse<proto.cs.ICSGetBookmarkRes>> {
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
// 返回数据
|
||||||
|
const res: proto.cs.ICSGetBookmarkRes = {
|
||||||
|
girls: [],
|
||||||
|
};
|
||||||
|
return this.ok(res);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user