feat: 订单列表

This commit is contained in:
2025-09-10 18:29:03 +08:00
parent d60445b850
commit 7ab40efae4
5 changed files with 59 additions and 55 deletions

View File

@@ -68,7 +68,11 @@ export interface GameOrderRes {
// 发布球局类
class OrderService {
// 用户登录
// 查询订单列表
async getOrderList() {
return httpService.post('/user/orders', {}, { showLoading: true })
}
// 创建订单
async createOrder(game_id: number): Promise<ApiResponse<OrderResponse>> {
return httpService.post('/payment/create_order', { game_id }, {
showLoading: true,