Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

71 lignes
1.2 KiB

  1. import fetch from '@/utils/fetch'
  2. // 列表
  3. export function appList(params) {
  4. return fetch({
  5. url: '/service-ota/apps',
  6. method: 'post',
  7. data: params
  8. })
  9. }
  10. // apk列表
  11. export function apkList(appId) {
  12. return fetch({
  13. url: '/service-ota/apkVersions/' + appId,
  14. method: 'get'
  15. })
  16. }
  17. // 添加
  18. export function appAdd(params) {
  19. return fetch({
  20. url: '/service-ota/app',
  21. method: 'post',
  22. data: params
  23. })
  24. }
  25. // apkAdd添加
  26. export function apkAdd(params) {
  27. return fetch({
  28. url: '/service-ota/apkVersion',
  29. method: 'post',
  30. data: params
  31. })
  32. }
  33. // 更新状态
  34. export function appDel(params) {
  35. return fetch({
  36. url: '/service-ota/app/status',
  37. method: 'put',
  38. data: params
  39. })
  40. }
  41. // 添加策略
  42. export function appStrategy(params) {
  43. return fetch({
  44. url: '/service-ota/apkVersionStrategy',
  45. method: 'post',
  46. data: params
  47. })
  48. }
  49. // 策略列表
  50. export function listStrategy(params) {
  51. return fetch({
  52. url: '/service-ota/apkVersionStrategies',
  53. method: 'post',
  54. data: params
  55. })
  56. }
  57. // 详情
  58. export function showStrategy(id) {
  59. return fetch({
  60. url: '/unionService/OTA/apkVersionStrategy/detail/' + id,
  61. method: 'get'
  62. })
  63. }