mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29: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",
|
||||
"/panel/get",
|
||||
"/panel/list",
|
||||
"/panel/save/json",
|
||||
},
|
||||
Remote: []string{
|
||||
"/macro/list",
|
||||
|
|
@ -31,9 +32,12 @@ var Endpoints = Allowed{
|
|||
"/device/link/end",
|
||||
"/device/handshake",
|
||||
"/device/auth",
|
||||
"/panel/list",
|
||||
// "/panel/get",
|
||||
},
|
||||
Auth: []string{
|
||||
"/macro/play",
|
||||
"/device/link/remove",
|
||||
"/panel/get",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,38 @@ type PanelJSON struct {
|
|||
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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue