import request from '@/utils/request'

// 查询账期价格复审主列表
export const getPriceFinallReviewList = (data, query) => {
    return request({
        method: 'post',
        url: '/bussiness/baseusercredithistory/credit-period-repeatedly-review-list',
        data,
        params: query,
    })
}

//账期额度复审列表（两个列表一个接口）
//账期列表type是0，额度列表type是零1
export const getLastPaymentAndQuotaList = (data, query) => {
    return request({
        method: 'post',
        url: '/bussiness/baseusercredithistory/goods-credit-period-repeatedly-review-list',
        params: query,
        data: data
    })
}

export const directorLastReviewPayment = (query) => {
    return request({
        method: 'put',
        url: '/bussiness/baseusercredithistory/goods-credit-period-repeatedly-review',
        params: query,
    })
}