companyRecharge.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. // 充值接口
  49. export function recharge(data) {
  50. return request({
  51. url: '/company/companyRecharge/recharge',
  52. method: 'post',
  53. data: data
  54. })
  55. }
  56. export function redRecharge(data) {
  57. return request({
  58. url: '/his/company/redRecharge',
  59. method: 'post',
  60. data: data
  61. })
  62. }
  63. export function getCompanyRedPacketBalance() {
  64. return request({
  65. url: '/company/companyRedPacketBalanceLogs/redBalance',
  66. method: 'get'
  67. })
  68. }