/
base_key.go
38 lines (33 loc) · 1.25 KB
/
base_key.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
package models
type SysBaseKeyCatTable struct {
Id string `json:"catId" xorm:"id" binding:"required"`
Name string `json:"catName" xorm:"name"`
Description string `json:"description" xorm:"description"`
}
type SysBaseKeyCodeTable struct {
Id string `json:"codeId" xorm:"id"`
CatId string `json:"catId" xorm:"cat_id"`
Code string `json:"code" xorm:"code"`
Value string `json:"value" xorm:"value"`
Description string `json:"codeDescription" xorm:"description"`
SeqNo int `json:"seqNo" xorm:"seq_no"`
Status string `json:"status" xorm:"status"`
Cat *SysBaseKeyCatTable `json:"cat" xorm:"-"`
}
type BaseKeyCodeCreateObj struct {
CodeId string `json:"codeId"`
CatId string `json:"catId"`
Code string `json:"code"`
Value string `json:"value"`
Status string `json:"status"`
Description string `json:"codeDescription"`
}
type BaseKeyCodeSwapPositionParam struct {
CodeId string `json:"codeId" binding:"required"`
TargetIndex int `json:"targetIndex"`
Up bool `json:"up"`
}
type OptionItemObj struct {
Label string `json:"label"`
Value string `json:"value"`
}