confkv.go 342 B

1234567891011121314151617
  1. package model
  2. import "time"
  3. // Confkv def
  4. type Confkv struct {
  5. ID int64 `json:"id" gorm:"column:id"`
  6. Key string `json:"key" form:"key"`
  7. Value string `json:"value" form:"value"`
  8. Ctime time.Time `json:"ctime"`
  9. Mtime time.Time `json:"mtime"`
  10. }
  11. // TableName resource
  12. func (c Confkv) TableName() string {
  13. return "confkv"
  14. }