1234567891011121314151617 |
- package models
- type Setting struct {
- Id int `orm:"pk;auto" json:"id"`
- Name string `orm:"size(255)" json:"name"`
- ConfigKey string `orm:"unique;size(255)" json:"configKey"`
- ConfigValue string `orm:"unique;column(dn)" json:"configValue"`
- Description string `orm:"size(255)" json:"description"`
- Remark string `orm:"null;type(text)" json:"remark"`
- Enable bool `orm:"default(false)" json:"enable"`
- }
- func (s *Setting) UniqueClone() (*Setting, string) {
- return &Setting{
- ConfigKey: s.ConfigKey,
- }, "ConfigKey"
- }
|