Files
Kg.SeaTime/Web/src/services/user/GiveService.ts
2026-07-12 17:36:07 +08:00

57 lines
1.7 KiB
TypeScript

export class GiveService {
/**
* 获取赠送礼物物品
* GET /User/Give/GetUserGiftGoods
*/
static async GetUserGiftGoods(no: string) {
return await ApiService.Request("get", "/User/Give/GetUserGiftGoods", { no });
}
/**
* 赠送礼物
* GET /User/Give/ToGift
*/
static async ToGift(no: string, goodsId: number, count: number) {
return await ApiService.Request("get", "/User/Give/ToGift", { no, goodsId, count });
}
/**
* 获取礼物记录
* GET /User/Give/GetGiftLog
*/
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 });
}
}