import request from '@/router/axios' export const getList = (current, size, params) => { return request({ url: '/land/land/page', method: 'get', params: { ...params, current, size } }) } export const getDetail = (id) => { return request({ url: '/land/land/details', method: 'get', params: { id } }) } export const remove = (ids) => { return request({ url: '/land/land/remove', method: 'post', params: { ids } }) } export const add = (row) => { return request({ url: '/land/land/save', method: 'post', data: row }) } export const update = (row) => { return request({ url: '/land/land/submit', method: 'post', data: row }) } export const getLandList = (userid, farmId) => { return request({ url: 'http://dev.jxpskj.com:8020/api/land/land/getLandList', method: 'get', params: { userid, farmId } }) } export const selectXCount = (farmId) => { return request({ url: '/land/land/selectXCount', method: 'get', params: { farmId } }) }