12345678910111213141516171819202122232425262728293031 |
- package dto
- type AddThingNotificationRequest struct {
- ThingID uint64 `json:"thing_id" validate:"required"`
- NotificationDate string `json:"notification_date" validate:"required" format:"date-time"`
- }
- type UpdateThingNotificationRequest struct {
- NotificationDate string `json:"notification_date" validate:"required" format:"date-time"`
- }
- type ThingNotificationResponse struct {
- ThingID uint64 `json:"id"`
- NotificationDate string `json:"notification_date"`
- CreatedAt string `json:"created_at"`
- UpdatedAt string `json:"updated_at"`
- }
- type ThingNotificationsExtResponse struct {
- Notifications []ThingNotificationExtResponse `json:"notifications"`
- }
- type ThingNotificationExtResponse struct {
- ThingID uint64 `json:"thing_id"`
- PlaceID uint64 `json:"place_id"`
- ThingTitle string `json:"thing_title"`
- PlaceTitle string `json:"place_title"`
- NotificationDate string `json:"notification_date"`
- CreatedAt string `json:"created_at"`
- UpdatedAt string `json:"updated_at"`
- }
|