GET api/v1/City/GetCitiesAndDefault?longitude={longitude}&latitude={latitude}&wx={wx}&dealerId={dealerId}

获取已开通了纷享业务或者酒店业务的城市和所在城市

请求信息(Request)

URI 参数

名称描述类型备注
longitude

GPS经度

decimal number

Required

latitude

GPS纬度

decimal number

Required

wx

是否是微信坐标

boolean

Default value is False

dealerId

integer

Default value is 0

Body 参数

None.

响应信息(Response)

资源描述

城市列表,从近到远排序

RequestResultOfCityAndDefaultDTO
名称描述类型备注
Data

CityAndDefaultDTO

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'WLife.Application.DTOs.CityDTO'. Path 'Data.DefaultDTO.City1'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'WLife.Application.DTOs.CityDTO'. Path 'Data.DefaultDTO.City1'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “WLife.Application.DTOs.CityDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “WLife.Application.DTOs.CityDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。