/
dictail_mod.go
36 lines (31 loc) · 1019 Bytes
/
dictail_mod.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
package service_swa
import (
"github.com/ServiceWeaver/weaver"
"time"
)
type ModDictail struct {
weaver.AutoMarshal
ModBase
Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"`
Value int `json:"value" form:"value" gorm:"column:value;comment:字典值"`
Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"`
Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"`
SwaDictID int `json:"swaDictID" form:"swaDictID" gorm:"column:swaDictID;comment:关联标记"`
}
func (ModDictail) TableName() string {
return "swa_dict_details"
}
type SearchInfoDictail struct {
weaver.AutoMarshal
ModDictail
PageInfo
StartCreatedAt time.Time `json:"startCreatedAt" form:"startCreatedAt"`
EndCreatedAt time.Time `json:"endCreatedAt" form:"endCreatedAt"`
OrderKey string `json:"orderKey"`
Desc bool `json:"desc"`
}
type SwaDictailSearch struct {
weaver.AutoMarshal
ModDictail
PageInfo
}