Add scaffold commision page
This commit is contained in:
59
src/types/commissions.ts
Normal file
59
src/types/commissions.ts
Normal file
@ -0,0 +1,59 @@
|
||||
// types/commissions.ts
|
||||
|
||||
export interface CommissionType {
|
||||
name: string
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface CommissionOptionType {
|
||||
name: string
|
||||
basePrice: number
|
||||
}
|
||||
|
||||
export interface CommissionOption {
|
||||
type: CommissionOptionType
|
||||
price: number
|
||||
}
|
||||
|
||||
export interface CommissionExtraType {
|
||||
name: string
|
||||
description: string
|
||||
pricePercent?: number
|
||||
price?: number
|
||||
priceRange?: string
|
||||
}
|
||||
|
||||
export interface CommissionExtra {
|
||||
type: CommissionExtraType
|
||||
price?: number
|
||||
pricePercent?: number
|
||||
priceRange?: string
|
||||
}
|
||||
|
||||
export interface Commission {
|
||||
type: CommissionType
|
||||
options: CommissionOption[]
|
||||
extras: CommissionExtra[]
|
||||
}
|
||||
|
||||
export interface CommissionCardProps {
|
||||
type: {
|
||||
key: string
|
||||
name: string
|
||||
description: string
|
||||
}
|
||||
options: {
|
||||
key: string
|
||||
name: string
|
||||
price: number
|
||||
}[]
|
||||
extras: {
|
||||
key: string
|
||||
name: string
|
||||
description: string
|
||||
price?: number
|
||||
pricePercent?: number
|
||||
priceRange?: string
|
||||
}[],
|
||||
examples?: string[]
|
||||
}
|
Reference in New Issue
Block a user