GET api/User/GetUserGateways?userId={userId}

根据用户ID查询所属用户的网关信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

用户编号

string

Required

Body Parameters

None.

Response Information

Resource Description

通用报文响应结果{ Success: bool , Code: int , Error: string , Result:string } Success: 是否执行成功. 成功为 true Code: 错误代码. 1 执行成功 , 0, 没有处理 , < 执行失败 Error: 错误消息. Result: 如果有结果,结果保存在此字段中 [{ GatewayId: "" , Ip: "" },]

JResultOfListOfGatewayInfo
NameDescriptionTypeAdditional information
Code

integer

None.

Error

string

None.

Result

Collection of GatewayInfo

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 1,
  "Error": "sample string 2",
  "Result": [
    {
      "GatewayId": "sample string 1",
      "Ip": "sample string 2"
    },
    {
      "GatewayId": "sample string 1",
      "Ip": "sample string 2"
    }
  ],
  "Success": true
}