vo.go 307 B

123456789101112131415
  1. package db
  2. import "time"
  3. type Model struct {
  4. ID uint `json:"id" gorm:"primary_key"`
  5. CreatedAt time.Time
  6. UpdatedAt time.Time
  7. DeletedAt *time.Time `sql:"index"`
  8. }
  9. type Filter struct {
  10. Field string `json:"field"`
  11. Compare string `json:"compare"`
  12. Value interface{} `json:"value"`
  13. }