properties_search

package
v0.0.0-...-946fd12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package properties_search @title properties actions @host localhost:8090

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service Service) Handler

func (Handler) AddRoutes

func (t Handler) AddRoutes(e *echo.Group, m ...echo.MiddlewareFunc)

func (Handler) Search

func (t Handler) Search(ctx echo.Context) error

Search

@Summary Search properties. @Description Search properties using different filters @Tags properties @Accept json @Produce json @Param Search body propertySearchRequest true "property search body" @Success 200 {object} common.DefaultResponse{data=[]propertyResponse} @Failure 400 {object} common.ErrorResponse @Failure 401 {object} common.ErrorResponse @Failure 403 {object} common.ErrorResponse @Failure 404 {object} common.ErrorResponse @Failure 500 {object} common.ErrorResponse @Router /v1/properties/search [POST]

func (Handler) SearchMarkers

func (t Handler) SearchMarkers(ctx echo.Context) error

SearchMarkers

@Summary Search properties markers. @Description Search properties markers using different filters @Tags properties @Accept json @Produce json @Param Search body propertySearchRequest true "property search body" @Success 200 {object} common.DefaultResponse{data=[]propertyMarkerResponse} @Failure 400 {object} common.ErrorResponse @Failure 401 {object} common.ErrorResponse @Failure 403 {object} common.ErrorResponse @Failure 404 {object} common.ErrorResponse @Failure 500 {object} common.ErrorResponse @Router /v1/properties/markers [POST]

func (Handler) Similar

func (t Handler) Similar(ctx echo.Context) error

Similar

@Summary List properties by similarity @Description List properties by similarity base on specified property id. @Tags properties @Accept json @Produce json @Param Search body propertyListRequest true "property list body" @Success 200 {object} common.DefaultResponse{data=[]propertyResponse} @Failure 400 {object} common.ErrorResponse @Failure 401 {object} common.ErrorResponse @Failure 403 {object} common.ErrorResponse @Failure 404 {object} common.ErrorResponse @Failure 500 {object} common.ErrorResponse @Router /v1/properties/{id}/similar [POST]

type Service

type Service interface {
	Search(ctx context.Context, search *search.PropertySearchRequest) ([]properties.Property, int, error)
	SearchSimilar(ctx context.Context, id int) ([]properties.Property, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL