2025-03-21 11:05:42 +08:00

66 lines
1.4 KiB
Go

package dto
type PearConfig struct {
Logo Logo `json:"logo"`
Menu Menu `json:"menu"`
Tab Tab `json:"tab"`
Theme Theme `json:"theme"`
Colors []Colors `json:"colors"`
Other Other `json:"other"`
Header Header `json:"header"`
}
type Logo struct {
Title string `json:"title"`
Image string `json:"image"`
}
type Menu struct {
Data string `json:"data"`
Method string `json:"method"`
Accordion bool `json:"accordion"`
Collapse bool `json:"collapse"`
Control bool `json:"control"`
Select string `json:"select"`
Async bool `json:"async"`
}
type Index struct {
Id string `json:"id"`
Href string `json:"href"`
Title string `json:"title"`
}
type Tab struct {
Enable bool `json:"enable"`
KeepState bool `json:"keepState"`
Session bool `json:"session"`
Preload bool `json:"preload"`
Max string `json:"max"`
Index Index `json:"index"`
}
type Theme struct {
DefaultColor string `json:"defaultColor"`
DefaultMenu string `json:"defaultMenu"`
DefaultHeader string `json:"defaultHeader"`
AllowCustom bool `json:"allowCustom"`
Banner bool `json:"banner"`
}
type Colors struct {
Id string `json:"id"`
Color string `json:"color"`
Second string `json:"second"`
}
type Other struct {
KeepLoad string `json:"keepLoad"`
AutoHead bool `json:"autoHead"`
Footer bool `json:"footer"`
}
type Header struct {
Message string `json:"message"`
}