property

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusCreated           = 10
	StatusInactive          = 50
	StatusPermanentlyClosed = 100
	StatusClosed            = 150
	StatusActive            = 200
)

staus of property

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Address   string
	City      string
	State     string
	CreatedAt time.Time
	UpdatedAt time.Time
	IsTest    bool
	IsDeleted bool
}

Address of property

type AddressMap

type AddressMap struct {
	PropertyID string
	Radius     int64
	Lat        float64
	Long       float64
	CreatedAt  time.Time
	IsTest     bool
	IsDeleted  bool
}

AddressMap of the property

type Amenities

type Amenities struct {
	PropertyID  string
	AmenitiesID string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	IsTest      bool
	IsDeleted   bool
}

Amenities of property

type Detail

type Detail struct {
	PropertyID string
	Address    string
	Amenities  []string
	CreatedAt  time.Time
	UpdatedAt  time.Time
	IsTest     bool
	IsDeleted  bool
}

Detail of property data

type Pricing

type Pricing struct {
	PropertyID string
	CreatedAt  time.Time
	IsTest     bool
	IsDeleted  bool
}

Pricing of property

type Property

type Property struct {
	ID      string
	Owner   int64
	Name    string
	Type    Type
	Segment Segment
	// it means we can book the room instead of property
	HasRooms  bool
	Status    Status
	Detail    Detail
	CreatedAt time.Time
	UpdatedAt time.Time
	IsTest    bool
	IsDeleted bool
}

Property data

type Segment

type Segment int

Segment of the property

const (
	SegmentStay Segment = 1
)

segment list of property

type Status

type Status int

Status of property

type Type

type Type int

Type of property

const (
	TypeKos         Type = 1
	TypeHostel      Type = 2
	TypeHotel       Type = 3
	TypeHouse       Type = 4
	TypeApartment   Type = 5
	TypeFlat        Type = 6
	TypePrivateRoom Type = 7
)

type list of property

Jump to

Keyboard shortcuts

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