api.js 456 B

1234567891011121314151617181920212223242526272829
  1. import {
  2. add,
  3. update,
  4. send
  5. } from '@/api/base'
  6. export function getRecordConfig (deviceId) {
  7. return send({
  8. url: '/deviceStream/config',
  9. method: 'GET',
  10. params: { deviceId }
  11. })
  12. }
  13. export function addRecordConfig (data) {
  14. return add({
  15. url: '/deviceStream/config',
  16. method: 'POST',
  17. data
  18. })
  19. }
  20. export function updateRecordConfig (data) {
  21. return update({
  22. url: '/deviceStream/config',
  23. method: 'PUT',
  24. data
  25. })
  26. }