1212121
This commit is contained in:
25
Web/src/services/user/GiveService.ts
Normal file
25
Web/src/services/user/GiveService.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user