import request from "../../common/request"
import { PUBLIC_MODULES_PATH as prefix } from "@/api/AppPath";

export default class MaterialTypeService {
  list (param) {
    return request({
      url: prefix + '/material/materialType/list',
      method: 'get',
      params: param
    })
  }
  bxList (param) {
    return request({
      url: prefix + '/material/materialType/bxList',
      method: 'get',
      params: param
    })
  }
  cgList (param) {
    return request({
      url: prefix + '/material/materialType/cgList',
      method: 'get',
      params: param
    })
  }
  save (param) {
    return request({
      url: prefix + '/material/materialType/save',
      method: 'post',
      data: param
    })
  }
  findById (id) {
    return request({
      url: prefix + '/material/materialType/findById',
      method: 'get',
      params: {id: id}
    })
  }
  remove (id) {
    return request({
      url: prefix + '/material/materialType/deleteById',
      method: 'get',
      params: {id: id}
    })
  }
}
