12345678910111213141516171819 |
- package business_conf
- import (
- "time"
- )
- type BusinessConf struct {
- Id int `gorm:"column:id;primary_key;AUTO_INCREMENT;NOT NULL" json:"id"`
- ConfKey string `gorm:"column:conf_key;default:;NOT NULL;comment:'配置Key'" json:"conf_key"`
- ConfVal string `gorm:"column:conf_val;comment:'配置值'" json:"conf_val"`
- ValType int `gorm:"column:val_type;default:0;NOT NULL;comment:'1-字符串;2-数值;3-数组;4-富文本;'" json:"val_type"`
- Necessary int `gorm:"column:necessary;default:0;NOT NULL;comment:'是否必填:0-否;1-是'" json:"necessary"`
- Remark string `gorm:"column:remark;default:;NOT NULL;comment:'备注'" json:"remark"`
- CreateTime time.Time `gorm:"column:create_time;default:NULL;comment:'创建时间'" json:"create_time"`
- }
- func (b *BusinessConf) TableName() string {
- return "business_conf"
- }
|