Documentation ¶
Index ¶
- Variables
- func DictInit()
- func DictStr(db *gorm.DB)
- func GetDict(key string) map[string]string
- func GormInit(host, user, pass, name string) *gorm.DB
- func SetDict(key string, data map[string]string)
- func UpdateDict(key string)
- func VerifyOnly(tablename string, id string, where map[string]interface{}) bool
- type SysDictList
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Db *gorm.DB
)
Functions ¶
Types ¶
type SysDictList ¶
type SysDictList struct { ID string `gorm:"primary_key" json:"id" form:"id"` // ParentId string `json:"parentId" form:"parentId"` // ParentName string `json:"parentName" form:"code"` //字典名称 Name string `json:"name" gorm:"column:name"` Value string `json:"value" gorm:"column:value"` Status int `json:"status"` //1正常,2停用,10已删除 Sort int `json:"sort"` //排序 Type int `json:"type"` //1自定义 2 数据表 TableKey string `json:"tableKey"` //数据表主键 TableVal string `json:"tableVal"` //数据包值 }
Click to show internal directories.
Click to hide internal directories.