config.go 634 B

1234567891011121314151617181920212223242526272829
  1. package model
  2. import "go-common/library/time"
  3. var (
  4. //ConfigIng config ing.
  5. ConfigIng = int8(1)
  6. //ConfigEnd config ing.
  7. ConfigEnd = int8(2)
  8. )
  9. // Config config.
  10. type Config struct {
  11. ID int64 `json:"id" gorm:"primary_key"`
  12. AppID int64 `json:"app_id"`
  13. Name string `json:"name"`
  14. Comment string `json:"comment"`
  15. From int64 `json:"from"`
  16. State int8 `json:"state"`
  17. Mark string `json:"mark"`
  18. Operator string `json:"operator"`
  19. Ctime time.Time `json:"ctime"`
  20. Mtime time.Time `json:"mtime"`
  21. }
  22. // TableName config
  23. func (Config) TableName() string {
  24. return "config"
  25. }