import request from "@/utils/request"; /** * 查询打卡任务列表 */ export function queryPunchIn() { return request({ url: "/punchIn/queryPunchIn" }); } /** * 新增打卡任务 * @param {Object} data */ export function addPunchIn(data) { return request({ url: "/punchIn/savePunchIn", method: "post", data, loading: true, loadingText: "正在保存打卡任务,请稍后..." }); } /** * 更新打卡任务 * @param {Object} data */ export function updatePunchIn(data) { return request({ url: "/punchIn/updatePunchIn", method: "post", data, loading: true, loadingText: "正在更新打卡任务,请稍后..." }); } /** * 删除打卡任务 * @param {Object} data */ export function deletePunchIn(data) { return request({ url: "/punchIn/deletePunchIn", method: "post", data, loading: true, loadingText: "正在删除打卡任务,请稍后..." }); } /** * 打卡 * @param {Object} data */ export function doPunchIn(data) { return request({ url: "/punchIn/doPunchIn", method: "post", data, loading: true, loadingText: "正在打卡,请稍后..." }); } /** * 根据ID查询打卡任务 * @param {Object} data */ export function queryPunchInById(data) { return request({ url: "/punchIn/queryPunchInById", method: "post", data }); }