mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
44 lines
1.4 KiB
Go
44 lines
1.4 KiB
Go
package structs
|
|
|
|
type PanelJSON struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
AspectRatio string `json:"aspectRatio"`
|
|
Macros map[string]string `json:"macros"`
|
|
}
|
|
|
|
type PanelSaveJSON struct {
|
|
// Name string `json:"name"`
|
|
// Description string `json:"description"`
|
|
// AspectRatio string `json:"aspectRatio"`
|
|
// Macros map[string]string `json:"macros"`
|
|
Dir string `json:"dir"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
AspectRatio string `json:"aspectRatio"`
|
|
Macros interface{} `json:"macros"`
|
|
}
|
|
|
|
type PanelInfo struct {
|
|
Dir string `json:"dir"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
AspectRatio string `json:"aspectRatio"`
|
|
Macros map[string]string `json:"macros"`
|
|
Thumb string `json:"thumb"`
|
|
}
|
|
|
|
type PanelRequest struct {
|
|
Dir string `json:"dir"`
|
|
}
|
|
|
|
type PanelResponse struct {
|
|
Dir string `json:"dir"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
AspectRatio string `json:"aspectRatio"`
|
|
Macros map[string]string `json:"macros"`
|
|
Thumb string `json:"thumb"`
|
|
HTML string `json:"html"`
|
|
Style string `json:"style"`
|
|
}
|