thing.go 470 B

123456789101112131415161718192021222324252627282930313233
  1. package models
  2. import "time"
  3. type Thing struct {
  4. ID int
  5. PlaceID int
  6. Title string
  7. Description string
  8. CreatedAt time.Time
  9. UpdatedAt time.Time
  10. }
  11. type AddThingRequest struct {
  12. Title string
  13. Description string
  14. }
  15. type UpdateThingRequest struct {
  16. ID int
  17. Title string
  18. Description string
  19. }
  20. type AddPlaceThingRequest struct {
  21. PlaceID int
  22. ThingID int
  23. }
  24. type UpdatePlaceThingRequest struct {
  25. ThingID int
  26. PlaceID int
  27. }