-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.go
41 lines (36 loc) · 1.55 KB
/
template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package model
type Template struct {
Id int `yaml:"id,omitempty" json:"id"`
Name string `yaml:"name,omitempty" json:"name"`
Description string `yaml:"description,omitempty" json:"description"`
Tag string `yaml:"tag,omitempty" json:"tag"`
ImageName string `yaml:"imageName,omitempty" json:"imageName"`
}
type TemplateEnglish struct {
Id int `yaml:"id,omitempty" json:"id"`
Name string `yaml:"name,omitempty" json:"name"`
DescriptionEnglish string `yaml:"descriptionEnglish,omitempty" json:"description"`
Tag string `yaml:"tag,omitempty" json:"tag"`
ImageName string `yaml:"imageName,omitempty" json:"imageName"`
}
type TemplateChinese struct {
Id int `yaml:"id,omitempty" json:"id"`
Name string `yaml:"name,omitempty" json:"name"`
DescriptionChinese string `yaml:"descriptionChinese,omitempty" json:"description"`
Tag string `yaml:"tag,omitempty" json:"tag"`
ImageName string `yaml:"imageName,omitempty" json:"imageName"`
}
type TemplateVo struct {
Id int `yaml:"id" json:"id"`
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
Tag string `yaml:"tag" json:"tag"`
ImageName string `yaml:"imageName" json:"imageName"`
Template string `yaml:"template" json:"template"`
}
type TemplateDetail struct {
Id int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Yaml string `json:"yaml"`
}