deviceListRequest.js 754 B

123456789101112131415161718192021222324252627
  1. const { request } = require('../utils/util.js')
  2. import util from "../utils/util.js";
  3. module.exports = {
  4. // 设备列表
  5. deviceList: (data) => {
  6. return request("/mini/wx/device/base/deviceList", data, "GET", util.jsonType, false)
  7. },
  8. // 设备类型列表
  9. deviceTypeList: (data) => {
  10. return request("/mini/wx/device/base/typeList", data, "GET", util.jsonType, false)
  11. },
  12. // 设备分类列表
  13. deviceCategoryList: (data) => {
  14. return request("/mini/wx/device/base/categoryList", data, "GET",)
  15. },
  16. // 设备版本 OTA
  17. deviceVersion: (clientType, type, version) => {
  18. return request("/mini/wx/device/base/appDeviceVersionGet", {
  19. clientType: clientType,
  20. type: type,
  21. version: version,
  22. }, "GET",)
  23. },
  24. }