initial commit lets start to have some fun
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package schema
|
||||
|
||||
type Array struct {
|
||||
Start int `json:"start"`
|
||||
End int `json:"end"`
|
||||
Values []any `json:"values"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package schema
|
||||
|
||||
type Device struct {
|
||||
Name string `json:"name"`
|
||||
Tasks []*Task `json:"tasks"`
|
||||
Globals []*Global `json:"globals"`
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package schema
|
||||
|
||||
type Global struct {
|
||||
Name string `json:"name"`
|
||||
Variables []*Variable `json:"variables"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package schema
|
||||
|
||||
type Information struct {
|
||||
CompanyName string `json:"companyName"`
|
||||
ProductName string `json:"productName"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package schema
|
||||
|
||||
type Program struct {
|
||||
Name string `json:"name"`
|
||||
TypeName string `json:"typeName"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package schema
|
||||
|
||||
type Project struct {
|
||||
ProjectName string `json:"projectName"`
|
||||
Platform string `json:"platfrom"`
|
||||
GenerateType int `json:"generateType"`
|
||||
Information Information `json:"information"`
|
||||
Devices []*Device `json:"devices"`
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package schema
|
||||
|
||||
type Task struct {
|
||||
Name string `json:"name"`
|
||||
Interval int `json:"interval"`
|
||||
IntervalUnit string `json:"intervalUnit"`
|
||||
KindOfTask string `json:"kindOfTask"`
|
||||
Priority int `json:"priority"`
|
||||
Programs []*Program `json:"programs"`
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package schema
|
||||
|
||||
type Variable struct {
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Value any `json:"value,omitempty"`
|
||||
Array *Array `json:"array,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user