GET api/SysConfig/GetIPLocation?ip={ip}
查询IP归属
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ip | string |
Required |
Body Parameters
None.
Response Information
Resource Description
查询IP归属
IP138QueryResultDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| IP |
IP |
string |
None. |
| Country |
国家 |
string |
None. |
| Province |
省份 |
string |
None. |
| City |
城市 |
string |
None. |
| PostCode |
邮编 |
string |
None. |
| SectionCode |
区号 |
string |
None. |
Response Formats
application/json
Sample:
text/json
Sample:
application/xml, text/xml
Sample:
<IP138QueryResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.IP138Query"> <City>sample string 5</City> <Country>sample string 3</Country> <IP>sample string 2</IP> <Id>1</Id> <PostCode>sample string 6</PostCode> <Province>sample string 4</Province> <SectionCode>sample string 7</SectionCode> </IP138QueryResultDto>