feat: 订单列表 & 球局详情头像
This commit is contained in:
@@ -78,8 +78,8 @@ export interface GameOrderRes {
|
||||
// 发布球局类
|
||||
class OrderService {
|
||||
// 查询订单列表
|
||||
async getOrderList() {
|
||||
return httpService.post("/user/orders", {}, { showLoading: true });
|
||||
async getOrderList(pagination: { page: number, pageSize: number }) {
|
||||
return httpService.post("/user/orders", pagination, { showLoading: true });
|
||||
}
|
||||
|
||||
// 获取订单详情
|
||||
@@ -161,6 +161,21 @@ class OrderService {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
// 删除订单
|
||||
async deleteOrder({
|
||||
order_id,
|
||||
}: {
|
||||
order_id: number;
|
||||
}): Promise<ApiResponse<any>> {
|
||||
return httpService.post(
|
||||
"/payment/delete_order",
|
||||
{ order_id },
|
||||
{
|
||||
showLoading: true,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 导出认证服务实例
|
||||
|
||||
Reference in New Issue
Block a user