import request from '@/utils/httpRequest'

export default class ContractService {
  save (param) {
    return request({
      url: '/material/contract/save',
      method: 'post',
      data: param
    })
  }
  list (param) {
    return request({
      url: '/material/contract/list',
      method: 'get',
      params: param
    })
  }
  findById (id) {
    return request({
      url: '/material/contract/findById',
      method: 'get',
      params: {id: id}
    })
  }
  updateStatusById (param) {
    return request({
      url: '/material/contract/updateStatusById',
      method: 'post',
      data: param
    })
  }
  remove (id) {
    return request({
      url: '/material/contract/remove',
      method: 'get',
      params: {id: id}
    })
  }
}
