models

package
v0.0.0-...-92f781d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSModel

type JSModel struct {
	Total     int `json:"total"`
	Parameter struct {
		CityName string `json:"cityname"`
		CityID   string `json:"cityid"`
	} `json:"parameter"`

	Hotels []struct {
		Eid              string `json:"eid"`
		Pic153           string `json:"pic153"`
		Hotelname        string `json:"hotelname"`
		BusinessZoneName string `json:"BusinessZoneName"` // 位置
		DistrictName     string `json:"DistrictName"`     // 区域
		Address          string `json:"address"`          // 具体地址
		RenovationDate   string `json:"renovation_date"`  // 装修时间
		ShowPrice        int    `json:"show_price"`       // 价格
		ID               int    `json:"id"`
		Url              string `json:"url"`
	} `json:"hotels"`

	AveragePrice float64 `json:"average_price"` // 均价
	Median       int     `json:"median"`        // 中位数
}

func (*JSModel) AvgPrice

func (j *JSModel) AvgPrice() *JSModel

func (*JSModel) MedianPrice

func (j *JSModel) MedianPrice() *JSModel

Jump to

Keyboard shortcuts

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