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

// 查询巡查段配置分页
export function pagepatrolSection(query) {
  return request({
    url: "/business/patrolSection/page",
    method: "get",
    params: query,
  });
}

// 查询巡查段配置列表
export function listpatrolSection(query) {
  return request({
    url: "/business/patrolSection/list",
    method: "get",
    params: query,
  });
}

// 查询巡查段配置详细
export function getpatrolSection(id) {
  return request({
    url: "/business/patrolSection/" + id,
    method: "get",
  });
}

// 新增巡查段配置
export function addpatrolSection(data) {
  return request({
    url: "/business/patrolSection",
    method: "post",
    data: data,
  });
}

// 修改巡查段配置
export function updatepatrolSection(data) {
  return request({
    url: "/business/patrolSection",
    method: "put",
    data: data,
  });
}

// 删除巡查段配置
export function delpatrolSection(id) {
  return request({
    url: "/business/patrolSection/" + id,
    method: "delete",
  });
}