feat(orders): 号主可从自己的列表隐藏已结束订单

只写入隐藏时间,订单和款项仍保留给租客与后台。详情按钮固定对齐,删除跟在后面。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-10-01 16:22:55 +08:00
co-authored by Cursor
parent a1008f7e6a
commit e5cd7b5c34
15 changed files with 499 additions and 15 deletions
@@ -94,6 +94,7 @@ export interface UserOrderListItem {
deposit_waived_amount_cent: number
status: OrderStatus
handoff_status: HandoffStatus
can_hide?: boolean
payment_deadline_at?: string
created_at: string
}
@@ -385,6 +386,11 @@ export async function cancelOrder(id: number) {
return data.data
}
export async function hideOwnerOrder(id: number) {
const { data } = await apiClient.post<ApiResponse<{ hidden: boolean }>>(`/orders/${id}/hide`)
return data.data
}
export async function submitHandoff(id: number, content: string) {
const { data } = await apiClient.post<ApiResponse<HandoffRecord>>(`/orders/${id}/handoff`, {
content,