智能农场的接口文档

2019-10-13  本文已影响0人  熊熊我爱你天

1、智能农场APP和服务器的通信全部使用HTTP,通知考虑使用成熟的方式JPush

2、接口请求参数

{

"userId": "13598762134",

"token": "32位服务器生成的唯一的值",

"traceId": "客户端生成32位值",

"api": "com.qican.farm.user",

"interface": "login",

"requestNo": "32位数字,请求流水号,幂等场景使用,从服务器获取",

"requestTime": "2019-10-12 12:01:21",

"value": {},

"sign": "RSA",

"vsersion": "1.0.0",

"extInfo":""

}

3、接口回执消息

{

"userId": "13598762134",

"requestNo": "",

"traceId": "客户端生成32位值",

"api": "com.qican.farm.user",

"interface": "login",

"responseTime": "2019-10-12 12:01:21",

"code": "000",

"message": "success",

"description": "处理成功",

"response": {},

"isSuccess": true,

"retry": false,

"extInfo": ""

}

上一篇下一篇

猜你喜欢

热点阅读