feat: add layer definition api
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
package store
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
type (
|
||||
LayerName Name
|
||||
@ -23,3 +26,8 @@ type Layer struct {
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
Options LayerOptions `json:"options"`
|
||||
}
|
||||
|
||||
type LayerDefinition struct {
|
||||
Type LayerType `json:"type"`
|
||||
Options json.RawMessage `json:"options"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user