thing_notification.go 818 B

123456789101112131415161718192021222324252627282930
  1. package models
  2. import "time"
  3. type ThingNotification struct {
  4. ThingID uint64 `db:"thing_id"`
  5. NotificationDate time.Time `db:"notification_date"`
  6. CreatedAt time.Time `db:"created_at"`
  7. UpdatedAt time.Time `db:"updated_at"`
  8. }
  9. type AddThingNotificationRequest struct {
  10. ThingID uint64
  11. NotificationDate time.Time
  12. }
  13. type UpdateThingNotificationRequest struct {
  14. ThingID uint64
  15. NotificationDate time.Time
  16. }
  17. type ExtThingNotification struct {
  18. ThingID uint64 `db:"thing_id"`
  19. PlaceID uint64 `db:"place_id"`
  20. ThingTitle string `db:"thing_title"`
  21. PlaceTitle string `db:"place_title"`
  22. NotificationDate time.Time `db:"notification_date"`
  23. CreatedAt time.Time `db:"created_at"`
  24. UpdatedAt time.Time `db:"updated_at"`
  25. }