/
dict_mod.go
36 lines (31 loc) · 944 Bytes
/
dict_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 ModDict struct {
weaver.AutoMarshal
ModBase
Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"`
Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"`
Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"`
Detail string `json:"detail" form:"detail" gorm:"column:detail;comment:描述"`
ModDictails []ModDictail `json:"swaDictail" gorm:"-"`
}
func (ModDict) TableName() string {
return "swa_dicts"
}
type SearchInfoDict struct {
weaver.AutoMarshal
ModDict
PageInfo
StartCreatedAt time.Time `json:"startCreatedAt" form:"startCreatedAt"`
EndCreatedAt time.Time `json:"endCreatedAt" form:"endCreatedAt"`
OrderKey string `json:"orderKey"`
Desc bool `json:"desc"`
}
type SwaDictSearch struct {
weaver.AutoMarshal
ModDict
PageInfo
}