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


export default class SignatureDailyService {
  list (param) {
    return request({
      url: prefix + '/cw/signatureReport/list',
      method: 'get',
      params: param
    })
  }

  saveForm (param) {
    return request({
      url: prefix + '/cw/signatureReport/save',
      method: 'post',
      data: param
    })
  }
  findById (id) {
    return request({
      url: prefix + '/cw/signatureReport/findById',
      method: 'get',
      params: {id: id}
    })
  }
  remove (id) {
    return request({
      url: prefix + '/cw/signatureReport/remove',
      method: 'get',
      params: {id: id}
    })
  }
  updateStatusById (param) {
    return request({
      url: prefix + '/cw/signatureReport/updateStatusById',
      method: 'post',
      data: param
    })
  }

  exportFile (params) {
    return request({
      url: prefix + '/cw/signatureReport/exportFile',
      method: 'get',
      params: params,
      responseType: 'blob'
    })
  }
	saveFlowableParam (inputForm) {
		return request({
			url: prefix + `/cw/signatureReport/saveFlowableParam`,
			method: 'post',
			data: inputForm
		})
	}

	getAuditNodeById (id) {
		return request({
			url: prefix + '/cw/signatureReport/getAuditNodeById',
			method: 'get',
			params: {id: id}
		})
	}
	getSignatureTypeById(id) {
		return request({
			url: prefix + '/cw/signatureReport/getSignatureTypeById',
			method: 'get',
			params: {id: id}
		})
	}

}
