删掉租期相关错误东西

This commit is contained in:
yml2213
2026-05-23 14:44:32 +08:00
parent e6cc9f1255
commit a6a1afb879
41 changed files with 127 additions and 312 deletions
+1 -3
View File
@@ -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
}