和用不用dio没什么关系吧? 输入是json对象或者json字符串就行,来源都没差。。
var param = DeviceIdParam.fromParams(device_id: "DS001924"); var response = await _getDio().post("v1/cabinet/GetDeviceType", data: param.toString()); Fluttertoast.showToast(msg: response.data.toString());
Activity
debuggerx01 commentedon Jan 3, 2019
和用不用dio没什么关系吧?
输入是json对象或者json字符串就行,来源都没差。。
palorotolo commentedon Apr 15, 2019
var param = DeviceIdParam.fromParams(device_id: "DS001924");
var response = await _getDio().post("v1/cabinet/GetDeviceType",
data: param.toString());
Fluttertoast.showToast(msg: response.data.toString());