mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
Structs added+updated
This commit is contained in:
parent
6767f77fcf
commit
434f917fb2
2 changed files with 32 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ var Endpoints = Allowed{
|
||||||
"/device/handshake",
|
"/device/handshake",
|
||||||
"/panel/get",
|
"/panel/get",
|
||||||
"/panel/list",
|
"/panel/list",
|
||||||
|
"/panel/save/json",
|
||||||
},
|
},
|
||||||
Remote: []string{
|
Remote: []string{
|
||||||
"/macro/list",
|
"/macro/list",
|
||||||
|
|
@ -31,9 +32,12 @@ var Endpoints = Allowed{
|
||||||
"/device/link/end",
|
"/device/link/end",
|
||||||
"/device/handshake",
|
"/device/handshake",
|
||||||
"/device/auth",
|
"/device/auth",
|
||||||
|
"/panel/list",
|
||||||
|
// "/panel/get",
|
||||||
},
|
},
|
||||||
Auth: []string{
|
Auth: []string{
|
||||||
"/macro/play",
|
"/macro/play",
|
||||||
"/device/link/remove",
|
"/device/link/remove",
|
||||||
|
"/panel/get",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,38 @@ type PanelJSON struct {
|
||||||
Macros map[string]string `json:"macros"`
|
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 {
|
type PanelInfo struct {
|
||||||
|
Dir string `json:"dir"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
AspectRatio string `json:"aspectRatio"`
|
AspectRatio string `json:"aspectRatio"`
|
||||||
Macros map[string]string `json:"macros"`
|
Macros map[string]string `json:"macros"`
|
||||||
Thumb string `json:"thumb"`
|
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"`
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue