提交 2892549e 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

new definition format

上级 ab9ea07a
......@@ -7,20 +7,25 @@ type ClsBase struct {
Version string `yaml:"version"`
}
type ClsRange struct {
// range refer
type ClsRanges struct {
ClsBase
FieldBase
Field string
Field string `yaml:"field"`
Ranges map[string]string `yaml:"ranges"`
}
type ClsInst struct {
// instance refer
type ClsInsts struct {
ClsBase
Field string
Instances []struct {
FieldBase
Instance string `yaml:"Instance"`
} `yaml:"fields,flow"`
Field string `yaml:"field"`
Instances []ClsInst `yaml:"instances,flow"`
}
type ClsInst struct {
FieldBase
Instance string `yaml:"instance"`
}
// common item
type DefData struct {
ClsBase
Fields []DefField `yaml:"fields,flow"`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册