punchInApi.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from "@/utils/request";
  2. /**
  3. * 查询打卡任务列表
  4. */
  5. export function queryPunchIn() {
  6. return request({
  7. url: "/punchIn/queryPunchIn"
  8. });
  9. }
  10. /**
  11. * 新增打卡任务
  12. * @param {Object} data
  13. */
  14. export function addPunchIn(data) {
  15. return request({
  16. url: "/punchIn/savePunchIn",
  17. method: "post",
  18. data
  19. });
  20. }
  21. /**
  22. * 更新打卡任务
  23. * @param {Object} data
  24. */
  25. export function updatePunchIn(data) {
  26. return request({
  27. url: "/punchIn/updatePunchIn",
  28. method: "post",
  29. data
  30. });
  31. }
  32. /**
  33. * 删除打卡任务
  34. * @param {Object} data
  35. */
  36. export function deletePunchIn(data) {
  37. return request({
  38. url: "/punchIn/deletePunchIn",
  39. method: "post",
  40. data
  41. });
  42. }
  43. /**
  44. * 打卡
  45. * @param {Object} data
  46. */
  47. export function doPunchIn(data) {
  48. return request({
  49. url: "/punchIn/doPunchIn",
  50. method: "post",
  51. data
  52. });
  53. }
  54. /**
  55. * 根据ID查询打卡任务
  56. * @param {Object} data
  57. */
  58. export function queryPunchInById(data) {
  59. return request({
  60. url: "/punchIn/queryPunchInById",
  61. method: "post",
  62. data
  63. });
  64. }