import request from '@/config/axios'

/** 用户钱包查询参数 */
export interface PayCurrencyUserReqVO {
  userId: number
}
/** 钱包 VO */
export interface CurrencyVO {
  id: number
  userId: number
  userType: number
  balance: number
  totalExpense: number
  totalRecharge: number
  freezePrice: number
}

/** 查询用户钱包详情 */
export const getCurrency = async (params: PayCurrencyUserReqVO) => {
  return await request.get<CurrencyVO>({ url: `/pay/currency/get`, params })
}

// 查询会员钱包列表
export const getCurrencyPage = async (params) => {
  return await request.get({ url: `/pay/currency/page`, params })
}
