import request from '@/utils/request' export function add(data) { return request({ url: 'api/gridField', method: 'post', data }) } export function batchAdd(json) { // use return request({ url: 'api/gridField/batchAdd', method: 'post', data: json }) } export function del(ids) { return request({ url: 'api/gridField/', method: 'delete', data: ids }) } export function edit(data) { return request({ url: 'api/gridField', method: 'put', data }) } export function getGridFieldsById(id) { // use return request({ url: 'api/gridField/getGridFields', method: 'post', data: id }) } export function getGridFieldsByCode(grid_code) { // use return request({ url: 'api/gridField/getGridFieldsByCode', method: 'post', data: grid_code }) } export default { add, edit, del, batchAdd, getGridFieldsById, getGridFieldsByCode }