deviceListRequest.js 945 B

1234567891011121314151617181920212223242526272829303132333435
  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. // 壁纸列表
  25. deviceWallPaper: () => {
  26. return request("/mini/wx/config/wallpaperList", {
  27. clientType: clientType,
  28. type: type,
  29. version: version,
  30. }, "GET",)
  31. },
  32. }