更新时间:2021-12-17 GMT+08:00
分享

查询城市编码

功能介绍

查询城市编码。

URI

  • URI格式
    POST /softcomai/datalake/collection/v1.0/countryCityCode/search
  • 参数说明

    无。

请求

  • 请求样例
    https://console.ulanqab.huawei.com/naiedatacollectsecurity/softcomai/datalake/collection/v1.0/countryCityCode/search
    {
    "id": "123",
    "code": "100000",
    "name": "北京",
    "parentCode": "150000",
    "level": "city",
    "lasted": "true"
    }
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    id

    String

    ID。

    code

    String

    编码。

    name

    String

    名称。

    parentCode

    String

    父编码。

    level

    String

    等级参数。

    lasted

    String

    是否最后一级。

响应

  • 响应样例
    {
    "success": true,
    "returnData": [
    {
    "id": "f16604eed62c49a48229323a53879094",
    "code": "150100",
    "name": "呼和浩特市",
    "parentCode": "150000",
    "level": "city",
    "lasted": "false"
    },
    {
    "id": "e960e313091d4fa997d54a24ea88889a",
    "code": "150200",
    "name": "包头市",
    "parentCode": "150000",
    "level": "city",
    "lasted": "false"
    },
    {
    "id": "90f4ab795e4d457a902b4df84141a9a9",
    "code": "150300",
    "name": "乌海市",
    "parentCode": "150000",
    "level": "city",
    "lasted": "false"
    }
    ]
    }
  • 要素说明

    参数名

    参数类型

    备注

    success

    Boolean

    请求是否成功。

    returnData

    object

    返回值。

    id

    String

    ID。

    code

    String

    编码。

    name

    String

    名称。

    parentCode

    String

    父编码。

    level

    String

    等级参数。

    lasted

    String

    是否最后一级。

状态码

具体请参考状态码

分享:

    相关文档

    相关产品