12345678910111213141516171819202122232425262728293031323334 |
- const requestUtil = require('../utils/requestUtil');
- module.exports = {
- // 设备列表
- deviceList: (data) => {
- return requestUtil.request("/mini/wx/device/base/deviceList", data, "GET", requestUtil.jsonType, false)
- },
- // 设备类型列表
- deviceTypeList: (data) => {
- return requestUtil.request("/mini/wx/device/base/typeList", data, "GET", requestUtil.jsonType, false)
- },
- // 设备分类列表
- deviceCategoryList: (data) => {
- return requestUtil.request("/mini/wx/device/base/categoryList", data, "GET", )
- },
- // 设备版本 OTA
- deviceVersion: (clientType, type, version) => {
- console.log("OTA版本:", clientType, type, version)
- return requestUtil.request("/mini/wx/device/base/appDeviceVersionGet", {
- clientType: clientType,
- type: type,
- version: version,
- }, "GET", ).catch((error) => {
- console.error('Request error:', error);
- // 处理错误
- });
- },
- // 壁纸列表
- deviceWallPaper: () => {
- return requestUtil.request("/mini/wx/config/wallpaperList", {}, "GET", )
- },
- }
|