import { http2 } from '@/utils/request.js'

/** 获取 007pay 支付配置 */
export const getPay007Config = () => {
  return http2.get('/api/v1/admin/pay007/config')
}

/** 更新 007pay 支付配置 */
export const updatePay007Config = (data) => {
  return http2.post('/api/v1/admin/pay007/config/update', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

/** 查询 007pay 订单 */
export const getPay007Orders = (params) => {
  return http2.get('/api/v1/admin/pay007/orders', { params })
}

/** 查询 007pay 收益统计 */
export const getPay007Stats = (params) => {
  return http2.get('/api/v1/admin/pay007/stats', { params })
}
