获取城市列表

简要描述
  • 用户注册接口
请求URL
  • http://xx.com/supreme/city/list
请求方式
  • GET
参数
参数名 必选 类型 说明
isDomestic int 0国内,1国外,-1全部
userID int 用户ID
返回示例
  {
    "code": 200,
    "data": [
        {
            "key": "hot",
            "value": [
                {
                    "cityID": 1,
                    "city": "北京",
                    "isDomestic": 0,
                    "level": "B",
                    "hot": 1,
                    "createTime": 1614245233000,
                    "updateTime": 1614245233000
                },
                {
                    "cityID": 2,
                    "city": "上海",
                    "isDomestic": 0,
                    "level": "S",
                    "hot": 1,
                    "createTime": 1614245266000,
                    "updateTime": 1614245266000
                },
                {
                    "cityID": 3,
                    "city": "广州",
                    "isDomestic": 0,
                    "level": "G",
                    "hot": 1,
                    "createTime": 1614245280000,
                    "updateTime": 1614245280000
                },
                {
                    "cityID": 4,
                    "city": "深圳",
                    "isDomestic": 0,
                    "level": "S",
                    "hot": 1,
                    "createTime": 1614245304000,
                    "updateTime": 1614245304000
                },
                {
                    "cityID": 5,
                    "city": "成都",
                    "isDomestic": 0,
                    "level": "C",
                    "hot": 1,
                    "createTime": 1614245316000,
                    "updateTime": 1614245316000
                },
                {
                    "cityID": 6,
                    "city": "杭州",
                    "isDomestic": 0,
                    "level": "H",
                    "hot": 1,
                    "createTime": 1614245336000,
                    "updateTime": 1614245336000
                },
                {
                    "cityID": 11,
                    "city": "日本",
                    "isDomestic": 1,
                    "level": "J",
                    "hot": 1,
                    "createTime": 1617087824000,
                    "updateTime": 1617087824000
                },
                {
                    "cityID": 12,
                    "city": "欧洲",
                    "isDomestic": 1,
                    "level": "E",
                    "hot": 1,
                    "createTime": 1617087840000,
                    "updateTime": 1617087840000
                }
            ]
        },
        {
            "key": "B",
            "value": [
                {
                    "cityID": 1,
                    "city": "北京",
                    "isDomestic": 0,
                    "level": "B",
                    "hot": 1,
                    "createTime": 1614245233000,
                    "updateTime": 1614245233000
                },
                {
                    "cityID": 9,
                    "city": "蚌埠",
                    "isDomestic": 0,
                    "level": "B",
                    "hot": 0,
                    "createTime": 1614248076000,
                    "updateTime": 1614248076000
                }
            ]
        },
        {
            "key": "C",
            "value": [
                {
                    "cityID": 5,
                    "city": "成都",
                    "isDomestic": 0,
                    "level": "C",
                    "hot": 1,
                    "createTime": 1614245316000,
                    "updateTime": 1614245316000
                },
                {
                    "cityID": 13,
                    "city": "中国线上",
                    "isDomestic": 0,
                    "level": "C",
                    "hot": 0,
                    "createTime": 1617170602000,
                    "updateTime": 1617170602000
                }
            ]
        },
        {
            "key": "D",
            "value": [
                {
                    "cityID": 10,
                    "city": "大连",
                    "isDomestic": 0,
                    "level": "D",
                    "hot": 0,
                    "createTime": 1614248116000,
                    "updateTime": 1614248116000
                }
            ]
        },
        {
            "key": "E",
            "value": [
                {
                    "cityID": 12,
                    "city": "欧洲",
                    "isDomestic": 1,
                    "level": "E",
                    "hot": 1,
                    "createTime": 1617087840000,
                    "updateTime": 1617087840000
                }
            ]
        },
        {
            "key": "G",
            "value": [
                {
                    "cityID": 3,
                    "city": "广州",
                    "isDomestic": 0,
                    "level": "G",
                    "hot": 1,
                    "createTime": 1614245280000,
                    "updateTime": 1614245280000
                },
                {
                    "cityID": 15,
                    "city": "贵阳",
                    "isDomestic": 0,
                    "level": "G",
                    "hot": 0,
                    "createTime": 1620367852000,
                    "updateTime": 1620367852000
                }
            ]
        },
        {
            "key": "H",
            "value": [
                {
                    "cityID": 6,
                    "city": "杭州",
                    "isDomestic": 0,
                    "level": "H",
                    "hot": 1,
                    "createTime": 1614245336000,
                    "updateTime": 1614245336000
                }
            ]
        },
        {
            "key": "J",
            "value": [
                {
                    "cityID": 11,
                    "city": "日本",
                    "isDomestic": 1,
                    "level": "J",
                    "hot": 1,
                    "createTime": 1617087824000,
                    "updateTime": 1617087824000
                }
            ]
        },
        {
            "key": "S",
            "value": [
                {
                    "cityID": 2,
                    "city": "上海",
                    "isDomestic": 0,
                    "level": "S",
                    "hot": 1,
                    "createTime": 1614245266000,
                    "updateTime": 1614245266000
                },
                {
                    "cityID": 4,
                    "city": "深圳",
                    "isDomestic": 0,
                    "level": "S",
                    "hot": 1,
                    "createTime": 1614245304000,
                    "updateTime": 1614245304000
                }
            ]
        },
        {
            "key": "T",
            "value": [
                {
                    "cityID": 16,
                    "city": "天津",
                    "isDomestic": 0,
                    "level": "T",
                    "hot": 0,
                    "createTime": 1620453384000,
                    "updateTime": 1620453384000
                }
            ]
        },
        {
            "key": "#",
            "value": [
                {
                    "cityID": 7,
                    "city": "密西西比河",
                    "isDomestic": 1,
                    "level": "#",
                    "hot": 0,
                    "createTime": 1614246297000,
                    "updateTime": 1615443276000
                },
                {
                    "cityID": 8,
                    "city": "密西西比河",
                    "isDomestic": 1,
                    "level": "#",
                    "hot": 0,
                    "createTime": 1614246729000,
                    "updateTime": 1615443280000
                }
            ]
        }
    ],
    "message": "请求成功"
}
备注
  • 更多返回错误代码请看首页的错误代码描述

欢迎使用ShowDoc!