统一甲屿云命名体系

This commit is contained in:
2026-06-29 23:26:43 +08:00
parent 48c47fe3ff
commit bc8a7d8d4c
1268 changed files with 3477 additions and 3511 deletions
+62
View File
@@ -0,0 +1,62 @@
export type IdType = string | number
export interface PageResult<T> {
list: T[]
total: number
page?: number
size?: number
}
export interface ApiResult<T> {
code: number
message?: string
data: T
}
export interface UserInfo {
id: IdType
account?: string
nickname?: string
phone?: string
contactPhone?: string
avatar?: string
wechatId?: string
signature?: string
type?: number
shopId?: IdType
shopName?: string
shopIds?: IdType[]
shopNames?: string[]
permissions?: string[]
createTime?: string
updateTime?: string
}
export interface LoginResponse {
accessToken: string
refreshToken: string
userInfo: UserInfo
}
export interface LoginShop {
id: IdType
shopName?: string
name?: string
}
export interface LoginShopSelectionResponse {
allowShoplessLogin?: boolean
message?: string
shops: LoginShop[]
}
export interface LegalAgreement {
id: IdType
agreementType: 'USER_TERMS' | 'PRIVACY_POLICY'
agreementTypeName?: string
title: string
version: string
content: string
status?: number
effectiveTime?: string
}
+177
View File
@@ -0,0 +1,177 @@
import type { IdType, PageResult, UserInfo } from '@/types/common'
export interface Artist {
id: IdType
userId?: IdType
name: string
nickname?: string
phone?: string
color?: string
shortName?: string
avatar?: string
level?: string
enabled?: number
status?: number
description?: string
rangeCount?: number
shopId?: IdType
}
export interface Product {
id: IdType
title: string
price?: number | string
approximateDuration?: string
serviceDurationMinutes?: number
description?: string
imageUrls?: string[]
bookableArtists?: string
tags?: string
tagList?: string[]
tagInfos?: Array<{ tagName?: string }>
}
export interface Appointment {
orderId?: IdType
orderItemId: IdType
customerUserId?: IdType
customerName?: string
customerPhone?: string
phone?: string
artistId?: IdType
artistName?: string
productId?: IdType
productTitle?: string
startTime?: string
endTime?: string
startMinute?: number
endMinute?: number
durationMinutes?: number
date?: string
status?: number
statusText?: string
remark?: string
manualProductTitle?: string
manualProductPrice?: number
}
export interface ArtistSchedule {
id?: IdType
artistId: IdType
date: string
startTime: string
endTime: string
status: number
capacity?: number
shopId?: IdType
}
export interface ArtistScheduleRuleSetting {
rule?: ArtistScheduleRule
exceptions?: ArtistScheduleException[]
}
export interface ArtistScheduleRule {
id?: IdType
artistId: IdType
shopId?: IdType
workDays: string
startTime: string
endTime: string
enabled?: number
}
export interface ArtistScheduleException {
id?: IdType
artistId: IdType
shopId?: IdType
workDate: string
startTime?: string
endTime?: string
status: number
reason?: string
}
export interface DaySummary {
date: string
totalCount: number
dayStatus?: string
artistCounts?: Array<{
artistId: IdType
artistName?: string
shortName?: string
color?: string
count: number
status?: string
}>
}
export interface PlanningCalendar {
businessStartTime?: string
businessEndTime?: string
artists?: Artist[]
appointments?: Appointment[]
schedules?: ArtistSchedule[]
daySummaries?: DaySummary[]
}
export interface AppointmentForm {
customerUserId: string
customerName: string
phone: string
appointmentDate: string
appointmentTime: string
productId: string
manualProductTitle: string
manualProductPrice: string
manualProductDescription: string
manualProductTags: string
manualProductTargetAudience: string
manualProductPrecautions: string
manualProductImageFileIds: string
manualProductImageUrl: string
durationMinutes: string
artistId: string
remark: string
}
export type AppointmentCreateRequest = Omit<Partial<AppointmentForm>, 'durationMinutes' | 'manualProductPrice'> & {
customerUserId?: string
productId?: string
artistId: string
durationMinutes: number
manualProductPrice?: number
clientRequestId: string
}
export interface ShopInfo {
id: IdType
shopName?: string
name?: string
phone?: string
address?: string
businessHours?: string
startTime?: string
endTime?: string
description?: string
logo?: string
imageUrl?: string
authorizationExpireTime?: string
}
export interface CustomerCreateRequest {
nickname: string
phone: string
}
export interface EmployeeCreateRequest {
nickname: string
phone: string
account: string
password: string
contactPhone?: string
wechatId?: string
avatar?: string
}
export type CustomerPage = PageResult<UserInfo>