import request from "@/utils/httpRequest";
import { PUBLIC_MODULES_PATH as prefix } from "../AppPath";

export default class SupplierService {
  save (param) {
    return request({
      url: prefix + '/material/supplier/save',
      method: 'post',
      data: param
    })
  }
  queryById (id) {
    return request({
      url: prefix + '/material/supplier/queryById',
      method: 'get',
      params: {id: id}
    })
  }
  list (param) {
    return request({
      url: prefix + '/material/supplier/list',
      method: 'get',
      params: param
    })
  }
  delete (ids) {
    return request({
      url: prefix + '/material/supplier/delete',
      method: 'delete',
      params: {ids: ids}
    })
  }
  findByName (name) {
    return request({
      url: prefix + '/material/supplier/findByName',
      method: 'get',
      params: {name: name}
    })
  }
}
