GET api/hotel/techson/getcity?lang={lang}&countryCode={countryCode}&cityCode={cityCode}&isdownload={isdownload}

获取城市

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(en-us,zh-hk,zh-cn)

string

Required

countryCode

国家编码

string

Default value is

cityCode

城市编码

string

Default value is

isdownload

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

获取城市

ReturnResultOfcityRS
NameDescriptionTypeAdditional information
data

cityRS

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "cityListField": [
      {
        "codeField": "sample string 1",
        "nameENGField": "sample string 2",
        "nameCHNField": "sample string 3",
        "nameSIMField": "sample string 4",
        "countryField": {
          "codeField": "sample string 1",
          "nameENGField": "sample string 2",
          "nameCHNField": "sample string 3",
          "nameSIMField": "sample string 4",
          "capitalField": "sample string 5",
          "sortSequenceField": 6,
          "sortSequenceFieldSpecified": true,
          "continentCodeField": "sample string 8",
          "PropertyChanged": null
        },
        "regionCodeField": "sample string 5",
        "provinceCodeField": "sample string 6",
        "districtCodeField": "sample string 7",
        "sortSequenceField": 8,
        "sortSequenceFieldSpecified": true,
        "cityDistrictListField": [
          {
            "codeField": "sample string 1",
            "cityCodeField": "sample string 2",
            "nameENGField": "sample string 3",
            "nameCHNField": "sample string 4",
            "nameSIMField": "sample string 5",
            "sortSequenceField": 6,
            "sortSequenceFieldSpecified": true,
            "PropertyChanged": null
          },
          {
            "codeField": "sample string 1",
            "cityCodeField": "sample string 2",
            "nameENGField": "sample string 3",
            "nameCHNField": "sample string 4",
            "nameSIMField": "sample string 5",
            "sortSequenceField": 6,
            "sortSequenceFieldSpecified": true,
            "PropertyChanged": null
          }
        ],
        "PropertyChanged": null
      },
      {
        "codeField": "sample string 1",
        "nameENGField": "sample string 2",
        "nameCHNField": "sample string 3",
        "nameSIMField": "sample string 4",
        "countryField": {
          "codeField": "sample string 1",
          "nameENGField": "sample string 2",
          "nameCHNField": "sample string 3",
          "nameSIMField": "sample string 4",
          "capitalField": "sample string 5",
          "sortSequenceField": 6,
          "sortSequenceFieldSpecified": true,
          "continentCodeField": "sample string 8",
          "PropertyChanged": null
        },
        "regionCodeField": "sample string 5",
        "provinceCodeField": "sample string 6",
        "districtCodeField": "sample string 7",
        "sortSequenceField": 8,
        "sortSequenceFieldSpecified": true,
        "cityDistrictListField": [
          {
            "codeField": "sample string 1",
            "cityCodeField": "sample string 2",
            "nameENGField": "sample string 3",
            "nameCHNField": "sample string 4",
            "nameSIMField": "sample string 5",
            "sortSequenceField": 6,
            "sortSequenceFieldSpecified": true,
            "PropertyChanged": null
          },
          {
            "codeField": "sample string 1",
            "cityCodeField": "sample string 2",
            "nameENGField": "sample string 3",
            "nameCHNField": "sample string 4",
            "nameSIMField": "sample string 5",
            "sortSequenceField": 6,
            "sortSequenceFieldSpecified": true,
            "PropertyChanged": null
          }
        ],
        "PropertyChanged": null
      }
    ],
    "serviceErrorField": {
      "timestampField": 1,
      "codeField": "sample string 2",
      "messageField": "sample string 3",
      "detailedMessageField": "sample string 4",
      "PropertyChanged": null
    },
    "rawDataField": "sample string 1",
    "morePageField": true,
    "morePageFieldSpecified": true,
    "PropertyChanged": null
  },
  "code": 1,
  "message": "sample string 2"
}