1234567891011121314151617181920212223242526272829303132333435 |
- package dto
- type AddThingRequest struct {
- PlaceID int `json:"place_id" validate:"required"`
- Title string `json:"title" validate:"required"`
- Description string `json:"description"`
- }
- type UpdateThingRequest struct {
- PlaceID int `json:"place_id" validate:"required"`
- Title string `json:"title" validate:"required"`
- Description string `json:"description"`
- }
- type ThingResponse struct {
- ID int `json:"id"`
- PlaceID int `json:"place_id"`
- Title string `json:"title"`
- Description string `json:"description"`
- CreatedAt string `json:"created_at"`
- UpdatedAt string `json:"updated_at"`
- }
- type ThingsResponse struct {
- Things []ThingResponse `json:"things"`
- }
- type ThingExtResponse struct {
- ThingResponse
- Tags []TagResponse `json:"tags"`
- }
- type ThingsExtResponse struct {
- Things []ThingExtResponse `json:"things"`
- }
|