import request from '@/utils/httpRequest'

export default class WorkContractService {
  save (param) {
    return request({
      url: '/workContract/workContractBorrow/save',
      method: 'post',
      data: param
    })
  }
  updateStatusById (param) {
    return request({
      url: '/workContract/workContractBorrow/updateStatusById',
      method: 'post',
      data: param
    })
  }
  updateStatusByContractInfoId (param) {
    return request({
      url: '/workContract/workContractBorrow/updateStatusByContractInfoId',
      method: 'post',
      data: param
    })
  }
  findById (id) {
    return request({
      url: '/workContract/workContractBorrow/findById',
      method: 'get',
      params: {id: id}
    })
  }
  findByContractInfoId (id) {
    return request({
      url: '/workContract/workContractBorrow/findByContractInfoId',
      method: 'get',
      params: {id: id}
    })
  }
  updateMessageStatusById (param) {
    return request({
      url: '/workContract/workContractBorrow/updateMessageStatusById',
      method: 'post',
      data: param
    })
  }
  deleteById (id) {
    return request({
      url: '/workContract/workContractBorrow/deleteById',
      method: 'get',
      params: {id: id}
    })
  }
  findMessageList (id) {
    return request({
      url: '/workContract/workContractBorrow/findMessageList',
      method: 'get',
      params: {id: id}
    })
  }
}
