rent_house

package
v0.0.0-...-9c4fc95 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRentHousesByConditionsResponse

func GetRentHousesByConditionsResponse(conditions *GetRentHousesConditions) (*pb.GetRentHousesResponse, error)

Types

type GetRentHousesConditions

type GetRentHousesConditions struct {
	Keyword string `json:"keyword,omitempty"`
	City    string `json:"city,omitempty"`
}

func GetGetRentHousesConditionsByJSONString

func GetGetRentHousesConditionsByJSONString(jsonString string) (*GetRentHousesConditions, error)

type RentHouse

type RentHouse struct {
	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Type holds the value of the "type" field.
	Type int `json:"type,omitempty"`
	// PostID holds the value of the "post_id" field.
	PostID int `json:"post_id,omitempty"`
	// KindName holds the value of the "kind_name" field.
	KindName string `json:"kind_name,omitempty"`
	// RoomStr holds the value of the "room_str" field.
	RoomStr string `json:"room_str,omitempty"`
	// FloorStr holds the value of the "floor_str" field.
	FloorStr string `json:"floor_str,omitempty"`
	// Community holds the value of the "community" field.
	Community string `json:"community,omitempty"`
	// Price holds the value of the "price" field.
	Price int `json:"price,omitempty"`
	// PriceUnit holds the value of the "price_unit" field.
	PriceUnit string `json:"price_unit,omitempty"`
	// PhotoList holds the value of the "photo_list" field.
	PhotoList []string `json:"photo_list,omitempty"`
	// RegionName holds the value of the "region_name" field.
	RegionName string `json:"region_name,omitempty"`
	// SectionName holds the value of the "section_name" field.
	SectionName string `json:"section_name,omitempty"`
	// StreetName holds the value of the "street_name" field.
	StreetName string `json:"street_name,omitempty"`
	// Location holds the value of the "location" field.
	Location string `json:"location,omitempty"`
	// Area holds the value of the "area" field.
	Area string `json:"area,omitempty"`
	// RoleName holds the value of the "role_name" field.
	RoleName string `json:"role_name,omitempty"`
	// Contact holds the value of the "contact" field.
	Contact string `json:"contact,omitempty"`
	// RefreshTime holds the value of the "refresh_time" field.
	RefreshTime string `json:"refresh_time,omitempty"`
	// YesterdayHit holds the value of the "yesterday_hit" field.
	YesterdayHit int `json:"yesterday_hit,omitempty"`
	// IsVip holds the value of the "is_vip" field.
	IsVip int `json:"is_vip,omitempty"`
	// IsCombine holds the value of the "is_combine" field.
	IsCombine int `json:"is_combine,omitempty"`
	// Hurry holds the value of the "hurry" field.
	Hurry int `json:"hurry,omitempty"`
	// IsSocial holds the value of the "is_social" field.
	IsSocial int `json:"is_social,omitempty"`
	// DiscountPriceStr holds the value of the "discount_price_str" field.
	DiscountPriceStr string `json:"discount_price_str,omitempty"`
	// CasesID holds the value of the "cases_id" field.
	CasesID int `json:"cases_id,omitempty"`
	// IsVideo holds the value of the "is_video" field.
	IsVideo int `json:"is_video,omitempty"`
	// Preferred holds the value of the "preferred" field.
	Preferred int `json:"preferred,omitempty"`
	// Cid holds the value of the "cid" field.
	Cid int `json:"cid,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	DetailUrl string
}

func ConvertGetRentHousesResponseToRentHouses

func ConvertGetRentHousesResponseToRentHouses(grhr *pb.GetRentHousesResponse) ([]*RentHouse, error)

Jump to

Keyboard shortcuts

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