common_config.go 533 B

123456789101112131415161718192021
  1. package model
  2. import "go-common/library/time"
  3. // CommonConf common config.
  4. type CommonConf struct {
  5. ID int64 `json:"id" gorm:"primary_key"`
  6. TeamID int64 `json:"team_id"`
  7. Name string `json:"name"`
  8. Comment string `json:"comment"`
  9. State int8 `json:"state"`
  10. Mark string `json:"mark"`
  11. Operator string `json:"operator"`
  12. Ctime time.Time `json:"ctime"`
  13. Mtime time.Time `json:"mtime"`
  14. }
  15. // TableName commonConfig.
  16. func (CommonConf) TableName() string {
  17. return "common_config"
  18. }