This commit is contained in:
Putoo
2026-07-12 17:36:07 +08:00
parent c40f3711bc
commit 035eb476ea
19 changed files with 932 additions and 22 deletions

View File

@@ -22,4 +22,36 @@ export class GiveService {
static async GetGiftLog(no: string, page: number) {
return await ApiService.Request("get", "/User/Give/GetGiftLog", { no, page });
}
/**
* 获取赠送物品列表
* GET /User/Give/GetGoodsData
*/
static async GetGoodsData(no: string, type: number, query: string, page: number) {
return await ApiService.Request("get", "/User/Give/GetGoodsData", { no, type, query, page });
}
/**
* 赠送物品
* GET /User/Give/GiveGoods
*/
static async GiveGoods(no: string, type: number, propId: string, count: number) {
return await ApiService.Request("get", "/User/Give/GiveGoods", { no, type, propId, count });
}
/**
* 逗一下物品列表
* GET /User/Give/GetUserDouGoods
*/
static async GetUserDouGoods(no: string) {
return await ApiService.Request("get", "/User/Give/GetUserDouGoods", { no });
}
/**
* 使用逗物品
* GET /User/Give/UseDou
*/
static async UseDou(no: string, goodsId: number, count: number) {
return await ApiService.Request("get", "/User/Give/UseDou", { no, goodsId, count });
}
}