answer/internal/entity/config_entity.go

14 lines
278 B
Go
Raw Normal View History

2022-09-27 17:59:05 +08:00
package entity
// Config config
type Config struct {
ID int `xorm:"not null pk autoincr INT(11) id"`
Key string `xorm:"unique VARCHAR(128) key"`
Value string `xorm:"TEXT value"`
2022-09-27 17:59:05 +08:00
}
// TableName config table name
func (Config) TableName() string {
return "config"
}