import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { AuditMatchQuery, MatchQuery, MatchVO } from '@/api/bls/match/matchtypes';

/**
 * 查询团体暂收费列表
 * @param query
 * @returns {*}
 */

export const listMatch = (query) => {
  return request({
    url: '/bls/match/matchlist',
    method: 'get',
    params: query
  });
};

export const listDetail = (matchId) => {
  const data = {
    matchId
  };
  return request({
    url: '/bls/match/detaillist',
    method: 'post',
    data: data
  });
};

export const passMatch = (matchId, auditReason) => {
  const data = {
    matchId,
    auditReason
  };
  return request({
    url: '/bls/match/passmatch',
    method: 'post',
    data: data
  });
};

export const failMatch = (matchId, auditReason) => {
  const data = {
    matchId,
    auditReason
  };
  return request({
    url: '/bls/match/failmatch',
    method: 'post',
    data: data
  });
};

/**
 * 查询保费匹配清单
 * @param query
 */
export const queryMatchList = (query) => {
  return request({
    url: '/bls/match/queryMatchList',
    method: 'get',
    params: query
  });
};
