notification.go 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. package dto
  2. type AddThingNotificationRequest struct {
  3. ThingID uint64 `json:"thing_id" validate:"required"`
  4. NotificationDate string `json:"notification_date" validate:"required" format:"date-time"`
  5. }
  6. type UpdateThingNotificationRequest struct {
  7. NotificationDate string `json:"notification_date" validate:"required" format:"date-time"`
  8. }
  9. type ThingNotificationResponse struct {
  10. ThingID uint64 `json:"id"`
  11. NotificationDate string `json:"notification_date"`
  12. CreatedAt string `json:"created_at"`
  13. UpdatedAt string `json:"updated_at"`
  14. }
  15. type ThingNotificationsExtResponse struct {
  16. Notifications []ThingNotificationExtResponse `json:"notifications"`
  17. }
  18. type ThingNotificationExtResponse struct {
  19. ThingID uint64 `json:"thing_id"`
  20. PlaceID uint64 `json:"place_id"`
  21. ThingTitle string `json:"thing_title"`
  22. PlaceTitle string `json:"place_title"`
  23. NotificationDate string `json:"notification_date"`
  24. CreatedAt string `json:"created_at"`
  25. UpdatedAt string `json:"updated_at"`
  26. }