import request from "@/utils/request"

/** 牧场 — 分页列表 */
export function listPasture(query) {
  return request({
    url: "/dataModel/pasture/list",
    method: "get",
    params: query
  })
}

/** 详情 */
export function getPasture(id) {
  return request({
    url: "/dataModel/pasture/" + id,
    method: "get"
  })
}

/** 从第三方同步 */
export function syncPasture() {
  return request({
    url: "/dataModel/pasture/sync",
    method: "post"
  })
}
