Documentation ¶
Overview ¶
Package controllers provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type API
- func (a API) CreateRoom(ctx echo.Context, params CreateRoomParams) error
- func (a API) CreateRoomType(ctx echo.Context, params CreateRoomTypeParams) error
- func (a API) DeleteRoomById(ctx echo.Context, roomId string) error
- func (a API) DeleteRoomTypeById(ctx echo.Context, roomTypeId string) error
- func (a API) GetAllRoom(ctx echo.Context, params GetAllRoomParams) error
- func (a API) GetAllRoomType(ctx echo.Context, params GetAllRoomTypeParams) error
- func (a API) GetRoomById(ctx echo.Context, roomId string) error
- func (a API) GetRoomTypeById(ctx echo.Context, roomTypeId string) error
- func (a API) OnlyAdmin() echo.MiddlewareFunc
- func (a API) UpdateRoomById(ctx echo.Context, roomId string) error
- func (a API) UpdateRoomTypeById(ctx echo.Context, roomTypeId string) error
- func (a API) UploadRoomTypePhotos(ctx echo.Context) error
- type CreateRoom201JSONResponse
- type CreateRoom400JSONResponse
- type CreateRoomJSONRequestBody
- type CreateRoomParams
- type CreateRoomRequestObject
- type CreateRoomResponseObject
- type CreateRoomType201JSONResponse
- type CreateRoomType400JSONResponse
- type CreateRoomTypeJSONRequestBody
- type CreateRoomTypeParams
- type CreateRoomTypeRequestObject
- type CreateRoomTypeResponseObject
- type CreateRoomTypedefaultJSONResponse
- type CreateRoomdefaultJSONResponse
- type DeleteRoomById204Response
- type DeleteRoomById404JSONResponse
- type DeleteRoomByIdRequestObject
- type DeleteRoomByIdResponseObject
- type DeleteRoomByIddefaultJSONResponse
- type DeleteRoomTypeById204Response
- type DeleteRoomTypeById404JSONResponse
- type DeleteRoomTypeByIdRequestObject
- type DeleteRoomTypeByIdResponseObject
- type DeleteRoomTypeByIddefaultJSONResponse
- type EchoRouter
- type Error
- type GetAllRoom200JSONResponse
- type GetAllRoomParams
- type GetAllRoomRequestObject
- type GetAllRoomResponseObject
- type GetAllRoomType200JSONResponse
- type GetAllRoomTypeParams
- type GetAllRoomTypeRequestObject
- type GetAllRoomTypeResponseObject
- type GetAllRoomTypedefaultJSONResponse
- type GetAllRoomdefaultJSONResponse
- type GetRoomById200JSONResponse
- type GetRoomById404JSONResponse
- type GetRoomByIdRequestObject
- type GetRoomByIdResponseObject
- type GetRoomByIddefaultJSONResponse
- type GetRoomTypeById200JSONResponse
- type GetRoomTypeById404JSONResponse
- type GetRoomTypeByIdRequestObject
- type GetRoomTypeByIdResponseObject
- type GetRoomTypeByIddefaultJSONResponse
- type Room
- type RoomId
- type RoomType
- type RoomTypeId
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) CreateRoom(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateRoomType(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteRoomById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteRoomTypeById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetAllRoom(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetAllRoomType(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetRoomById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetRoomTypeById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateRoomById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateRoomTypeById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UploadRoomTypePhotos(ctx echo.Context) error
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type UpdateRoomById200JSONResponse
- type UpdateRoomById400JSONResponse
- type UpdateRoomById404JSONResponse
- type UpdateRoomByIdJSONRequestBody
- type UpdateRoomByIdRequestObject
- type UpdateRoomByIdResponseObject
- type UpdateRoomByIddefaultJSONResponse
- type UpdateRoomTypeById200JSONResponse
- type UpdateRoomTypeById400JSONResponse
- type UpdateRoomTypeById404JSONResponse
- type UpdateRoomTypeByIdJSONRequestBody
- type UpdateRoomTypeByIdRequestObject
- type UpdateRoomTypeByIdResponseObject
- type UpdateRoomTypeByIddefaultJSONResponse
- type UploadResult
- type UploadRoomTypePhotos201JSONResponse
- type UploadRoomTypePhotos400JSONResponse
- type UploadRoomTypePhotosMultipartBody
- type UploadRoomTypePhotosMultipartRequestBody
- type UploadRoomTypePhotosRequestObject
- type UploadRoomTypePhotosResponseObject
- type UploadRoomTypePhotosdefaultJSONResponse
- type User
Constants ¶
const (
OnlyAdminScopes = "onlyAdmin.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type API ¶
func (API) CreateRoom ¶
func (a API) CreateRoom(ctx echo.Context, params CreateRoomParams) error
func (API) CreateRoomType ¶
func (a API) CreateRoomType(ctx echo.Context, params CreateRoomTypeParams) error
func (API) DeleteRoomById ¶
func (API) DeleteRoomTypeById ¶
func (API) GetAllRoom ¶
func (a API) GetAllRoom(ctx echo.Context, params GetAllRoomParams) error
func (API) GetAllRoomType ¶
func (a API) GetAllRoomType(ctx echo.Context, params GetAllRoomTypeParams) error
func (API) GetRoomById ¶
func (API) GetRoomTypeById ¶
func (API) UpdateRoomById ¶
func (API) UpdateRoomTypeById ¶
func (API) UploadRoomTypePhotos ¶
type CreateRoom201JSONResponse ¶
type CreateRoom201JSONResponse RoomId
func (CreateRoom201JSONResponse) VisitCreateRoomResponse ¶
func (response CreateRoom201JSONResponse) VisitCreateRoomResponse(w http.ResponseWriter) error
type CreateRoom400JSONResponse ¶
type CreateRoom400JSONResponse Error
func (CreateRoom400JSONResponse) VisitCreateRoomResponse ¶
func (response CreateRoom400JSONResponse) VisitCreateRoomResponse(w http.ResponseWriter) error
type CreateRoomJSONRequestBody ¶
type CreateRoomJSONRequestBody = Room
CreateRoomJSONRequestBody defines body for CreateRoom for application/json ContentType.
type CreateRoomParams ¶
type CreateRoomParams struct { // Offset The number of items to skip before starting to collect the result Offset *int `form:"offset,omitempty" json:"offset,omitempty"` // Limit The numbers of items to return Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
CreateRoomParams defines parameters for CreateRoom.
type CreateRoomRequestObject ¶
type CreateRoomRequestObject struct { Params CreateRoomParams Body *CreateRoomJSONRequestBody }
type CreateRoomResponseObject ¶
type CreateRoomResponseObject interface {
VisitCreateRoomResponse(w http.ResponseWriter) error
}
type CreateRoomType201JSONResponse ¶
type CreateRoomType201JSONResponse RoomTypeId
func (CreateRoomType201JSONResponse) VisitCreateRoomTypeResponse ¶
func (response CreateRoomType201JSONResponse) VisitCreateRoomTypeResponse(w http.ResponseWriter) error
type CreateRoomType400JSONResponse ¶
type CreateRoomType400JSONResponse Error
func (CreateRoomType400JSONResponse) VisitCreateRoomTypeResponse ¶
func (response CreateRoomType400JSONResponse) VisitCreateRoomTypeResponse(w http.ResponseWriter) error
type CreateRoomTypeJSONRequestBody ¶
type CreateRoomTypeJSONRequestBody = RoomType
CreateRoomTypeJSONRequestBody defines body for CreateRoomType for application/json ContentType.
type CreateRoomTypeParams ¶
type CreateRoomTypeParams struct { // Offset The number of items to skip before starting to collect the result Offset *int `form:"offset,omitempty" json:"offset,omitempty"` // Limit The numbers of items to return Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
CreateRoomTypeParams defines parameters for CreateRoomType.
type CreateRoomTypeRequestObject ¶
type CreateRoomTypeRequestObject struct { Params CreateRoomTypeParams Body *CreateRoomTypeJSONRequestBody }
type CreateRoomTypeResponseObject ¶
type CreateRoomTypeResponseObject interface {
VisitCreateRoomTypeResponse(w http.ResponseWriter) error
}
type CreateRoomTypedefaultJSONResponse ¶
func (CreateRoomTypedefaultJSONResponse) VisitCreateRoomTypeResponse ¶
func (response CreateRoomTypedefaultJSONResponse) VisitCreateRoomTypeResponse(w http.ResponseWriter) error
type CreateRoomdefaultJSONResponse ¶
func (CreateRoomdefaultJSONResponse) VisitCreateRoomResponse ¶
func (response CreateRoomdefaultJSONResponse) VisitCreateRoomResponse(w http.ResponseWriter) error
type DeleteRoomById204Response ¶
type DeleteRoomById204Response struct { }
func (DeleteRoomById204Response) VisitDeleteRoomByIdResponse ¶
func (response DeleteRoomById204Response) VisitDeleteRoomByIdResponse(w http.ResponseWriter) error
type DeleteRoomById404JSONResponse ¶
type DeleteRoomById404JSONResponse Error
func (DeleteRoomById404JSONResponse) VisitDeleteRoomByIdResponse ¶
func (response DeleteRoomById404JSONResponse) VisitDeleteRoomByIdResponse(w http.ResponseWriter) error
type DeleteRoomByIdRequestObject ¶
type DeleteRoomByIdRequestObject struct {
RoomId string `json:"RoomId"`
}
type DeleteRoomByIdResponseObject ¶
type DeleteRoomByIdResponseObject interface {
VisitDeleteRoomByIdResponse(w http.ResponseWriter) error
}
type DeleteRoomByIddefaultJSONResponse ¶
func (DeleteRoomByIddefaultJSONResponse) VisitDeleteRoomByIdResponse ¶
func (response DeleteRoomByIddefaultJSONResponse) VisitDeleteRoomByIdResponse(w http.ResponseWriter) error
type DeleteRoomTypeById204Response ¶
type DeleteRoomTypeById204Response struct { }
func (DeleteRoomTypeById204Response) VisitDeleteRoomTypeByIdResponse ¶
func (response DeleteRoomTypeById204Response) VisitDeleteRoomTypeByIdResponse(w http.ResponseWriter) error
type DeleteRoomTypeById404JSONResponse ¶
type DeleteRoomTypeById404JSONResponse Error
func (DeleteRoomTypeById404JSONResponse) VisitDeleteRoomTypeByIdResponse ¶
func (response DeleteRoomTypeById404JSONResponse) VisitDeleteRoomTypeByIdResponse(w http.ResponseWriter) error
type DeleteRoomTypeByIdRequestObject ¶
type DeleteRoomTypeByIdRequestObject struct {
RoomTypeId string `json:"RoomTypeId"`
}
type DeleteRoomTypeByIdResponseObject ¶
type DeleteRoomTypeByIdResponseObject interface {
VisitDeleteRoomTypeByIdResponse(w http.ResponseWriter) error
}
type DeleteRoomTypeByIddefaultJSONResponse ¶
func (DeleteRoomTypeByIddefaultJSONResponse) VisitDeleteRoomTypeByIdResponse ¶
func (response DeleteRoomTypeByIddefaultJSONResponse) VisitDeleteRoomTypeByIdResponse(w http.ResponseWriter) error
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type Error ¶
type Error struct { // Code Error code Code int32 `json:"code"` // Message Error message Message string `json:"message"` }
Error defines model for Error.
type GetAllRoom200JSONResponse ¶
type GetAllRoom200JSONResponse []Room
func (GetAllRoom200JSONResponse) VisitGetAllRoomResponse ¶
func (response GetAllRoom200JSONResponse) VisitGetAllRoomResponse(w http.ResponseWriter) error
type GetAllRoomParams ¶
type GetAllRoomParams struct { // Offset The number of items to skip before starting to collect the result Offset *int `form:"offset,omitempty" json:"offset,omitempty"` // Limit The numbers of items to return Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
GetAllRoomParams defines parameters for GetAllRoom.
type GetAllRoomRequestObject ¶
type GetAllRoomRequestObject struct {
Params GetAllRoomParams
}
type GetAllRoomResponseObject ¶
type GetAllRoomResponseObject interface {
VisitGetAllRoomResponse(w http.ResponseWriter) error
}
type GetAllRoomType200JSONResponse ¶
type GetAllRoomType200JSONResponse []RoomType
func (GetAllRoomType200JSONResponse) VisitGetAllRoomTypeResponse ¶
func (response GetAllRoomType200JSONResponse) VisitGetAllRoomTypeResponse(w http.ResponseWriter) error
type GetAllRoomTypeParams ¶
type GetAllRoomTypeParams struct { // Offset The number of items to skip before starting to collect the result Offset *int `form:"offset,omitempty" json:"offset,omitempty"` // Limit The numbers of items to return Limit *int `form:"limit,omitempty" json:"limit,omitempty"` }
GetAllRoomTypeParams defines parameters for GetAllRoomType.
type GetAllRoomTypeRequestObject ¶
type GetAllRoomTypeRequestObject struct {
Params GetAllRoomTypeParams
}
type GetAllRoomTypeResponseObject ¶
type GetAllRoomTypeResponseObject interface {
VisitGetAllRoomTypeResponse(w http.ResponseWriter) error
}
type GetAllRoomTypedefaultJSONResponse ¶
func (GetAllRoomTypedefaultJSONResponse) VisitGetAllRoomTypeResponse ¶
func (response GetAllRoomTypedefaultJSONResponse) VisitGetAllRoomTypeResponse(w http.ResponseWriter) error
type GetAllRoomdefaultJSONResponse ¶
func (GetAllRoomdefaultJSONResponse) VisitGetAllRoomResponse ¶
func (response GetAllRoomdefaultJSONResponse) VisitGetAllRoomResponse(w http.ResponseWriter) error
type GetRoomById200JSONResponse ¶
type GetRoomById200JSONResponse Room
func (GetRoomById200JSONResponse) VisitGetRoomByIdResponse ¶
func (response GetRoomById200JSONResponse) VisitGetRoomByIdResponse(w http.ResponseWriter) error
type GetRoomById404JSONResponse ¶
type GetRoomById404JSONResponse Error
func (GetRoomById404JSONResponse) VisitGetRoomByIdResponse ¶
func (response GetRoomById404JSONResponse) VisitGetRoomByIdResponse(w http.ResponseWriter) error
type GetRoomByIdRequestObject ¶
type GetRoomByIdRequestObject struct {
RoomId string `json:"RoomId"`
}
type GetRoomByIdResponseObject ¶
type GetRoomByIdResponseObject interface {
VisitGetRoomByIdResponse(w http.ResponseWriter) error
}
type GetRoomByIddefaultJSONResponse ¶
func (GetRoomByIddefaultJSONResponse) VisitGetRoomByIdResponse ¶
func (response GetRoomByIddefaultJSONResponse) VisitGetRoomByIdResponse(w http.ResponseWriter) error
type GetRoomTypeById200JSONResponse ¶
type GetRoomTypeById200JSONResponse RoomType
func (GetRoomTypeById200JSONResponse) VisitGetRoomTypeByIdResponse ¶
func (response GetRoomTypeById200JSONResponse) VisitGetRoomTypeByIdResponse(w http.ResponseWriter) error
type GetRoomTypeById404JSONResponse ¶
type GetRoomTypeById404JSONResponse Error
func (GetRoomTypeById404JSONResponse) VisitGetRoomTypeByIdResponse ¶
func (response GetRoomTypeById404JSONResponse) VisitGetRoomTypeByIdResponse(w http.ResponseWriter) error
type GetRoomTypeByIdRequestObject ¶
type GetRoomTypeByIdRequestObject struct {
RoomTypeId string `json:"RoomTypeId"`
}
type GetRoomTypeByIdResponseObject ¶
type GetRoomTypeByIdResponseObject interface {
VisitGetRoomTypeByIdResponse(w http.ResponseWriter) error
}
type GetRoomTypeByIddefaultJSONResponse ¶
func (GetRoomTypeByIddefaultJSONResponse) VisitGetRoomTypeByIdResponse ¶
func (response GetRoomTypeByIddefaultJSONResponse) VisitGetRoomTypeByIdResponse(w http.ResponseWriter) error
type RoomId ¶
type RoomId struct {
Id *openapi_types.UUID `json:"id,omitempty"`
}
RoomId defines model for RoomId.
type RoomTypeId ¶
type RoomTypeId struct {
Id *openapi_types.UUID `json:"id,omitempty"`
}
RoomTypeId defines model for RoomTypeId.
type ServerInterface ¶
type ServerInterface interface { // Get All Room // (GET /v1/room) GetAllRoom(ctx echo.Context, params GetAllRoomParams) error // Create a new room // (POST /v1/room) CreateRoom(ctx echo.Context, params CreateRoomParams) error // Delete Room By Room Id // (DELETE /v1/room/{RoomId}) DeleteRoomById(ctx echo.Context, roomId string) error // Get a room by ID // (GET /v1/room/{RoomId}) GetRoomById(ctx echo.Context, roomId string) error // Update a room by ID // (PUT /v1/room/{RoomId}) UpdateRoomById(ctx echo.Context, roomId string) error // Get All RoomType // (GET /v1/roomtype) GetAllRoomType(ctx echo.Context, params GetAllRoomTypeParams) error // Create a new room type // (POST /v1/roomtype) CreateRoomType(ctx echo.Context, params CreateRoomTypeParams) error // Upload Room Type Photos // (POST /v1/roomtype/upload) UploadRoomTypePhotos(ctx echo.Context) error // Delete Room Type By RoomType Id // (DELETE /v1/roomtype/{RoomTypeId}) DeleteRoomTypeById(ctx echo.Context, roomTypeId string) error // Get a room type by ID // (GET /v1/roomtype/{RoomTypeId}) GetRoomTypeById(ctx echo.Context, roomTypeId string) error // Update a room type by ID // (PUT /v1/roomtype/{RoomTypeId}) UpdateRoomTypeById(ctx echo.Context, roomTypeId string) error }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) CreateRoom ¶
func (w *ServerInterfaceWrapper) CreateRoom(ctx echo.Context) error
CreateRoom converts echo context to params.
func (*ServerInterfaceWrapper) CreateRoomType ¶
func (w *ServerInterfaceWrapper) CreateRoomType(ctx echo.Context) error
CreateRoomType converts echo context to params.
func (*ServerInterfaceWrapper) DeleteRoomById ¶
func (w *ServerInterfaceWrapper) DeleteRoomById(ctx echo.Context) error
DeleteRoomById converts echo context to params.
func (*ServerInterfaceWrapper) DeleteRoomTypeById ¶
func (w *ServerInterfaceWrapper) DeleteRoomTypeById(ctx echo.Context) error
DeleteRoomTypeById converts echo context to params.
func (*ServerInterfaceWrapper) GetAllRoom ¶
func (w *ServerInterfaceWrapper) GetAllRoom(ctx echo.Context) error
GetAllRoom converts echo context to params.
func (*ServerInterfaceWrapper) GetAllRoomType ¶
func (w *ServerInterfaceWrapper) GetAllRoomType(ctx echo.Context) error
GetAllRoomType converts echo context to params.
func (*ServerInterfaceWrapper) GetRoomById ¶
func (w *ServerInterfaceWrapper) GetRoomById(ctx echo.Context) error
GetRoomById converts echo context to params.
func (*ServerInterfaceWrapper) GetRoomTypeById ¶
func (w *ServerInterfaceWrapper) GetRoomTypeById(ctx echo.Context) error
GetRoomTypeById converts echo context to params.
func (*ServerInterfaceWrapper) UpdateRoomById ¶
func (w *ServerInterfaceWrapper) UpdateRoomById(ctx echo.Context) error
UpdateRoomById converts echo context to params.
func (*ServerInterfaceWrapper) UpdateRoomTypeById ¶
func (w *ServerInterfaceWrapper) UpdateRoomTypeById(ctx echo.Context) error
UpdateRoomTypeById converts echo context to params.
func (*ServerInterfaceWrapper) UploadRoomTypePhotos ¶
func (w *ServerInterfaceWrapper) UploadRoomTypePhotos(ctx echo.Context) error
UploadRoomTypePhotos converts echo context to params.
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictecho.StrictEchoHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictecho.StrictEchoMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Get All Room // (GET /v1/room) GetAllRoom(ctx context.Context, request GetAllRoomRequestObject) (GetAllRoomResponseObject, error) // Create a new room // (POST /v1/room) CreateRoom(ctx context.Context, request CreateRoomRequestObject) (CreateRoomResponseObject, error) // Delete Room By Room Id // (DELETE /v1/room/{RoomId}) DeleteRoomById(ctx context.Context, request DeleteRoomByIdRequestObject) (DeleteRoomByIdResponseObject, error) // Get a room by ID // (GET /v1/room/{RoomId}) GetRoomById(ctx context.Context, request GetRoomByIdRequestObject) (GetRoomByIdResponseObject, error) // Update a room by ID // (PUT /v1/room/{RoomId}) UpdateRoomById(ctx context.Context, request UpdateRoomByIdRequestObject) (UpdateRoomByIdResponseObject, error) // Get All RoomType // (GET /v1/roomtype) GetAllRoomType(ctx context.Context, request GetAllRoomTypeRequestObject) (GetAllRoomTypeResponseObject, error) // Create a new room type // (POST /v1/roomtype) CreateRoomType(ctx context.Context, request CreateRoomTypeRequestObject) (CreateRoomTypeResponseObject, error) // Upload Room Type Photos // (POST /v1/roomtype/upload) UploadRoomTypePhotos(ctx context.Context, request UploadRoomTypePhotosRequestObject) (UploadRoomTypePhotosResponseObject, error) // Delete Room Type By RoomType Id // (DELETE /v1/roomtype/{RoomTypeId}) DeleteRoomTypeById(ctx context.Context, request DeleteRoomTypeByIdRequestObject) (DeleteRoomTypeByIdResponseObject, error) // Get a room type by ID // (GET /v1/roomtype/{RoomTypeId}) GetRoomTypeById(ctx context.Context, request GetRoomTypeByIdRequestObject) (GetRoomTypeByIdResponseObject, error) // Update a room type by ID // (PUT /v1/roomtype/{RoomTypeId}) UpdateRoomTypeById(ctx context.Context, request UpdateRoomTypeByIdRequestObject) (UpdateRoomTypeByIdResponseObject, error) }
StrictServerInterface represents all server handlers.
type UpdateRoomById200JSONResponse ¶
type UpdateRoomById200JSONResponse RoomId
func (UpdateRoomById200JSONResponse) VisitUpdateRoomByIdResponse ¶
func (response UpdateRoomById200JSONResponse) VisitUpdateRoomByIdResponse(w http.ResponseWriter) error
type UpdateRoomById400JSONResponse ¶
type UpdateRoomById400JSONResponse Error
func (UpdateRoomById400JSONResponse) VisitUpdateRoomByIdResponse ¶
func (response UpdateRoomById400JSONResponse) VisitUpdateRoomByIdResponse(w http.ResponseWriter) error
type UpdateRoomById404JSONResponse ¶
type UpdateRoomById404JSONResponse Error
func (UpdateRoomById404JSONResponse) VisitUpdateRoomByIdResponse ¶
func (response UpdateRoomById404JSONResponse) VisitUpdateRoomByIdResponse(w http.ResponseWriter) error
type UpdateRoomByIdJSONRequestBody ¶
type UpdateRoomByIdJSONRequestBody = Room
UpdateRoomByIdJSONRequestBody defines body for UpdateRoomById for application/json ContentType.
type UpdateRoomByIdRequestObject ¶
type UpdateRoomByIdRequestObject struct { RoomId string `json:"RoomId"` Body *UpdateRoomByIdJSONRequestBody }
type UpdateRoomByIdResponseObject ¶
type UpdateRoomByIdResponseObject interface {
VisitUpdateRoomByIdResponse(w http.ResponseWriter) error
}
type UpdateRoomByIddefaultJSONResponse ¶
func (UpdateRoomByIddefaultJSONResponse) VisitUpdateRoomByIdResponse ¶
func (response UpdateRoomByIddefaultJSONResponse) VisitUpdateRoomByIdResponse(w http.ResponseWriter) error
type UpdateRoomTypeById200JSONResponse ¶
type UpdateRoomTypeById200JSONResponse RoomTypeId
func (UpdateRoomTypeById200JSONResponse) VisitUpdateRoomTypeByIdResponse ¶
func (response UpdateRoomTypeById200JSONResponse) VisitUpdateRoomTypeByIdResponse(w http.ResponseWriter) error
type UpdateRoomTypeById400JSONResponse ¶
type UpdateRoomTypeById400JSONResponse Error
func (UpdateRoomTypeById400JSONResponse) VisitUpdateRoomTypeByIdResponse ¶
func (response UpdateRoomTypeById400JSONResponse) VisitUpdateRoomTypeByIdResponse(w http.ResponseWriter) error
type UpdateRoomTypeById404JSONResponse ¶
type UpdateRoomTypeById404JSONResponse Error
func (UpdateRoomTypeById404JSONResponse) VisitUpdateRoomTypeByIdResponse ¶
func (response UpdateRoomTypeById404JSONResponse) VisitUpdateRoomTypeByIdResponse(w http.ResponseWriter) error
type UpdateRoomTypeByIdJSONRequestBody ¶
type UpdateRoomTypeByIdJSONRequestBody = RoomType
UpdateRoomTypeByIdJSONRequestBody defines body for UpdateRoomTypeById for application/json ContentType.
type UpdateRoomTypeByIdRequestObject ¶
type UpdateRoomTypeByIdRequestObject struct { RoomTypeId string `json:"RoomTypeId"` Body *UpdateRoomTypeByIdJSONRequestBody }
type UpdateRoomTypeByIdResponseObject ¶
type UpdateRoomTypeByIdResponseObject interface {
VisitUpdateRoomTypeByIdResponse(w http.ResponseWriter) error
}
type UpdateRoomTypeByIddefaultJSONResponse ¶
func (UpdateRoomTypeByIddefaultJSONResponse) VisitUpdateRoomTypeByIdResponse ¶
func (response UpdateRoomTypeByIddefaultJSONResponse) VisitUpdateRoomTypeByIdResponse(w http.ResponseWriter) error
type UploadResult ¶
type UploadRoomTypePhotos201JSONResponse ¶
type UploadRoomTypePhotos201JSONResponse struct {
Url *[]string `json:"url,omitempty"`
}
func (UploadRoomTypePhotos201JSONResponse) VisitUploadRoomTypePhotosResponse ¶
func (response UploadRoomTypePhotos201JSONResponse) VisitUploadRoomTypePhotosResponse(w http.ResponseWriter) error
type UploadRoomTypePhotos400JSONResponse ¶
type UploadRoomTypePhotos400JSONResponse Error
func (UploadRoomTypePhotos400JSONResponse) VisitUploadRoomTypePhotosResponse ¶
func (response UploadRoomTypePhotos400JSONResponse) VisitUploadRoomTypePhotosResponse(w http.ResponseWriter) error
type UploadRoomTypePhotosMultipartBody ¶
type UploadRoomTypePhotosMultipartBody struct {
Photos *[]openapi_types.File `json:"photos,omitempty"`
}
UploadRoomTypePhotosMultipartBody defines parameters for UploadRoomTypePhotos.
type UploadRoomTypePhotosMultipartRequestBody ¶
type UploadRoomTypePhotosMultipartRequestBody UploadRoomTypePhotosMultipartBody
UploadRoomTypePhotosMultipartRequestBody defines body for UploadRoomTypePhotos for multipart/form-data ContentType.
type UploadRoomTypePhotosResponseObject ¶
type UploadRoomTypePhotosResponseObject interface {
VisitUploadRoomTypePhotosResponse(w http.ResponseWriter) error
}
type UploadRoomTypePhotosdefaultJSONResponse ¶
func (UploadRoomTypePhotosdefaultJSONResponse) VisitUploadRoomTypePhotosResponse ¶
func (response UploadRoomTypePhotosdefaultJSONResponse) VisitUploadRoomTypePhotosResponse(w http.ResponseWriter) error