Files
wxapp-guantong/uniapp/utils/types.uts
T
2026-09-22 22:51:19 +08:00

69 lines
979 B
Plaintext

export type User = {
id: string
openid: string
phone: any | null
}
export type Project = {
id: string
category_id: string
name: string
subtitle: string
price_text: string
image?: string
image_key?: string
sortIndex?: number
}
export type Category = {
id: string
name: string
icon?: string
image_key?: string
projects: Project[]
}
export type Day = {
date: string
status?: string
slots: Slot[]
}
export type Slot = {
id: string
start_time: string
status: string
statusText?: string
}
export type Draft = {
project: Project | null
day: Day | null
date: string
slot: Slot | null
phone: string
}
export type Booking = {
id: string
status: string
}
export type BookingDetail = {
booking: Booking
project: Project
day: Day
slot: Slot
key?: string
dateText?: string
statusText?: string
canCancel?: boolean
}
export type QuickAction = {
key: string
title: string
subtitle: string
icon: string
}