companyRecharge.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import request from '@/utils/request'
  2. // 查询充值列表
  3. export function listCompanyRecharge(query) {
  4. return request({
  5. url: '/company/companyRecharge/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询充值详细
  11. export function getCompanyRecharge(rechargeId) {
  12. return request({
  13. url: '/company/companyRecharge/' + rechargeId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增充值
  18. export function addCompanyRecharge(data) {
  19. return request({
  20. url: '/company/companyRecharge',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改充值
  26. export function updateCompanyRecharge(data) {
  27. return request({
  28. url: '/company/companyRecharge',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除充值
  34. export function delCompanyRecharge(rechargeId) {
  35. return request({
  36. url: '/company/companyRecharge/' + rechargeId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出充值
  41. export function exportCompanyRecharge(query) {
  42. return request({
  43. url: '/company/companyRecharge/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. export function audit(data) {
  49. return request({
  50. url: '/company/companyRecharge/audit',
  51. method: 'post',
  52. data: data
  53. })
  54. }