LotteryPrizes.js 831 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/utils/request'
  2. // 分页查询抽奖奖品
  3. export function getPageLotteryPrize(params) {
  4. return request({
  5. url: '/lotteryPrize/page',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 查询抽奖奖品
  11. export function getByIdLotteryPrize(params) {
  12. return request({
  13. url: '/lotteryPrize/getById',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 新增抽奖奖品
  19. export function saveLotteryPrize(data) {
  20. return request({
  21. url: '/lotteryPrize/save',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 修改抽奖奖品
  27. export function updateLotteryPrize(data) {
  28. return request({
  29. url: '/lotteryPrize/update',
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 删除抽奖奖品
  35. export function deleteByIdLotteryPrize(params) {
  36. return request({
  37. url: '/lotteryPrize/deleteById',
  38. method: 'delete',
  39. params
  40. })
  41. }