Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePropertyHandler ¶
func GetPropertyHandler ¶
func ListPropertyHandler ¶
func PropertiesRoutes ¶
func UpdatePropertyHandler ¶
Types ¶
type Property ¶
type Property struct { ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` Name string `json:"name" bson:"name" validate:"required"` Owners []primitive.ObjectID `json:"owners" bson:"owners" validate:"required"` Address string `json:"address" bson:"address" validate:"required"` Description string `json:"description" bson:"description" validate:"required"` Type string `json:"type" bson:"type" validate:"required"` Images []common.Image `json:"images" bson:"images"` Notes string `json:"notes" bson:"notes"` Rooms []Room `json:"rooms" bson:"rooms"` common.Timestamps common.Audit }
type PropertyRepository ¶
type PropertyRepository struct { adapters.MongoRepository[Property] }
Click to show internal directories.
Click to hide internal directories.