protocols

package
v0.0.0-...-f7b771d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ads

type Ads struct {
	ListID               int          `json:"list_id"`
	FirstPublicationDate string       `json:"first_publication_date"`
	ExpirationDate       string       `json:"expiration_date"`
	IndexDate            string       `json:"index_date"`
	Status               string       `json:"status"`
	CategoryID           string       `json:"category_id"`
	CategoryName         string       `json:"category_name"`
	Subject              string       `json:"subject"`
	Body                 string       `json:"body"`
	AdType               string       `json:"ad_type"`
	URL                  string       `json:"url"`
	Price                []int        `json:"price"`
	PriceCalendar        interface{}  `json:"price_calendar"`
	Images               Images       `json:"images"`
	Attributes           []Attributes `json:"attributes"`
	Location             Location     `json:"location"`
	Owner                Owner        `json:"owner"`
	Options              Options      `json:"options"`
	HasPhone             bool         `json:"has_phone"`
}

type Attributes

type Attributes struct {
	Key        string `json:"key"`
	Value      string `json:"value"`
	KeyLabel   string `json:"key_label,omitempty"`
	ValueLabel string `json:"value_label"`
	Generic    bool   `json:"generic"`
}

type CategoryFilter

type CategoryFilter struct {
	ID string `json:"id"`
}

CategoryFilter ...

type Filters

type Filters struct {
	Category *CategoryFilter           `json:"category"`
	Location map[string]interface{}    `json:"location"`
	Keywords *KeywordsFilter           `json:"keywords"`
	Ranges   map[string]map[string]int `json:"ranges"`
	Enums    map[string][]string       `json:"enums"`
}

Filters holds the filters for the search.

type Images

type Images struct {
	ThumbURL  string   `json:"thumb_url"`
	SmallURL  string   `json:"small_url"`
	NbImages  int      `json:"nb_images"`
	Urls      []string `json:"urls"`
	UrlsThumb []string `json:"urls_thumb"`
	UrlsLarge []string `json:"urls_large"`
}

type KeywordsFilter

type KeywordsFilter struct {
	Text string `json:"text"`
}

KeywordsFilter ...

type Location

type Location struct {
	RegionID       string  `json:"region_id"`
	RegionName     string  `json:"region_name"`
	DepartmentID   string  `json:"department_id"`
	DepartmentName string  `json:"department_name"`
	CityLabel      string  `json:"city_label"`
	City           string  `json:"city"`
	Zipcode        string  `json:"zipcode"`
	Lat            float64 `json:"lat"`
	Lng            float64 `json:"lng"`
	Source         string  `json:"source"`
	Provider       string  `json:"provider"`
	IsShape        bool    `json:"is_shape"`
}

type Options

type Options struct {
	HasOption  bool `json:"has_option"`
	Booster    bool `json:"booster"`
	Photosup   bool `json:"photosup"`
	Urgent     bool `json:"urgent"`
	Gallery    bool `json:"gallery"`
	SubToplist bool `json:"sub_toplist"`
}

type Owner

type Owner struct {
	StoreID    string `json:"store_id"`
	UserID     string `json:"user_id"`
	Type       string `json:"type"`
	Name       string `json:"name"`
	NoSalesmen bool   `json:"no_salesmen"`
}

type Request

type Request struct {
	Limit   int      `json:"limit"`
	Filters *Filters `json:"filters"`
}

Request is used to request.

type Response

type Response struct {
	Total         int    `json:"total"`
	TotalAll      int    `json:"total_all"`
	TotalPro      int    `json:"total_pro"`
	TotalPrivate  int    `json:"total_private"`
	TotalActive   int    `json:"total_active"`
	TotalInactive int    `json:"total_inactive"`
	Pivot         string `json:"pivot"`
	Ads           []Ads  `json:"ads"`
}

type ZipCode

type ZipCode struct {
	ZipCode string `json:"zipcode"`
}

ZipCode ...

Jump to

Keyboard shortcuts

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