Newer
Older
Nanping_sponge_SJJC / src / api / businessPatrol / patrolPunch.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 数据检测
import request from "@/utils/request";

// 查询巡查巡查打卡分页
export function pagepatrolPunch(query) {
  return request({
    url: "/business/patrolPunch/page",
    method: "get",
    params: query,
  });
}

// 查询巡查巡查打卡列表
export function listpatrolPunch(query) {
  return request({
    url: "/business/patrolPunch/list",
    method: "get",
    params: query,
  });
}

// 查询巡查巡查打卡详细
export function getpatrolPunch(id) {
  return request({
    url: "/business/patrolPunch/" + id,
    method: "get",
  });
}

// 新增巡查巡查打卡
export function addpatrolPunch(data) {
  return request({
    url: "/business/patrolPunch",
    method: "post",
    data: data,
  });
}

// 修改巡查巡查打卡
export function updatepatrolPunch(data) {
  return request({
    url: "/business/patrolPunch",
    method: "put",
    data: data,
  });
}

// 删除巡查巡查打卡
export function delpatrolPunch(id) {
  return request({
    url: "/business/patrolPunch/" + id,
    method: "delete",
  });
}