LuckyDrawService.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import request from "../../../common/request"
  2. export default class LuckyDrawService {
  3. save (inputForm) {
  4. return request({
  5. url: '/test/mobile/testMobile/save',
  6. method: 'post',
  7. data: inputForm
  8. })
  9. }
  10. delete (ids) {
  11. return request({
  12. url: '/test/mobile/testMobile/delete',
  13. method: 'delete',
  14. params: {ids: ids}
  15. })
  16. }
  17. queryById (id) {
  18. return request({
  19. url: '/test/mobile/testMobile/queryById',
  20. method: 'get',
  21. params: {id: id}
  22. })
  23. }
  24. list (params) {
  25. return request({
  26. url: '/luckyDraw/info/pjList',
  27. method: 'get',
  28. params: params
  29. })
  30. }
  31. LuckyDraw (id,number,awardId) {
  32. return request({
  33. url: '/luckyDraw/info/luckyDraw',
  34. method: 'post',
  35. params: {id: id,number: number,awardId: awardId}
  36. })
  37. }
  38. luckyDrawAgain (id,number,awardId) {
  39. return request({
  40. url: '/luckyDraw/info/luckyDrawAgain',
  41. method: 'post',
  42. params: {id: id,number: number,awardId: awardId}
  43. })
  44. }
  45. }