add comments and new parameter id for client request order
This commit is contained in:
@@ -7,14 +7,16 @@ import (
|
||||
"github.com/tecamino/tecamino-json_data/utils"
|
||||
)
|
||||
|
||||
// publish model
|
||||
type Publish struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Uuid uuid.UUID `json:"uuid,omitempty"`
|
||||
Path string `json:"path,omitempty"`
|
||||
Type Type `json:"type,omitempty"`
|
||||
Value any `json:"value,omitempty"`
|
||||
Event string `json:"event,omitempty"` // publish event onCreate|onChange|onDelete
|
||||
Uuid uuid.UUID `json:"uuid,omitempty"` // universally unique identifier
|
||||
Path string `json:"path,omitempty"` // dbm path
|
||||
Type Type `json:"type,omitempty"` // dbm datatype
|
||||
Value any `json:"value,omitempty"` // dbm value
|
||||
}
|
||||
|
||||
// returns input parameter as assigned dbm datatype
|
||||
func (p *Publish) ConvertValue() any {
|
||||
switch p.Type {
|
||||
case BIT:
|
||||
|
Reference in New Issue
Block a user