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

export default class WorkContractService {
  save (param) {
    return request({
      url: prefix + '/jy/workContract/workContractFile/save',
      method: 'post',
      data: param
    })
  }
  updateStatusById (param) {
    return request({
      url: prefix + '/jy/workContract/workContractFile/updateStatusById',
      method: 'post',
      data: param
    })
  }
  findById (id) {
    return request({
      url: prefix + '/jy/workContract/workContractFile/findById',
      method: 'get',
      params: {id: id}
    })
  }
  findByContractInfoId (id) {
    return request({
      url: prefix + '/jy/workContract/workContractFile/findByContractInfoId',
      method: 'get',
      params: {id: id}
    })
  }
}
