// 银行业务相关API
const request = require('../utils/request.js')

const bankService = {
  // 获取客户列表
  getCustomers(params = {}) {
    return request.get('/bank/customers', params)
  },

  // 获取客户详情
  getCustomerDetail(customerId) {
    return request.get(`/bank/customers/${customerId}`)
  },

  // 获取交易记录
  getTransactions(params = {}) {
    return request.get('/bank/transactions', params)
  },

  // 获取交易详情
  getTransactionDetail(transactionId) {
    return request.get(`/bank/transactions/${transactionId}`)
  },

  // 获取资产列表
  getAssets(params = {}) {
    return request.get('/bank/assets', params)
  },

  // 获取资产详情
  getAssetDetail(assetId) {
    return request.get(`/bank/assets/${assetId}`)
  },

  // 获取风险数据
  getRiskData(params = {}) {
    return request.get('/bank/risk', params)
  },

  // 获取报表数据
  getReports(params = {}) {
    return request.get('/bank/reports', params)
  },

  // 获取仪表板数据
  getDashboardData() {
    return request.get('/bank/dashboard')
  }
}

module.exports = bankService
