删掉租期相关错误东西
This commit is contained in:
@@ -14,7 +14,6 @@ export interface Order {
|
||||
login_platform: string
|
||||
rent_start_at?: string
|
||||
rent_end_at?: string
|
||||
rent_hours: number
|
||||
rent_amount: number
|
||||
deposit_amount: number
|
||||
platform_fee: number
|
||||
@@ -44,10 +43,9 @@ interface ApiResponse<T> {
|
||||
data: T
|
||||
}
|
||||
|
||||
export async function createOrder(listingId: number, rentHours: number) {
|
||||
export async function createOrder(listingId: number) {
|
||||
const { data } = await apiClient.post<ApiResponse<Order>>('/orders', {
|
||||
listing_id: listingId,
|
||||
rent_hours: rentHours,
|
||||
})
|
||||
return data.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user