// 资金模块

export const getAssetsList = {
  url: '/assets/user/page',
  method: 'GET',
  dealReqData: ({ pageNum, pageSize, userKey, coin, type }) => {
    return { pageNum, pageSize, userKey, coin, type }
  }
}

export const getAssetsWithdrawList = {
  url: '/assets/withdrawList',
  method: 'GET',
  dealReqData: ({ pageNum, pageSize, userKey, startTime, endTime }) => {
    return { pageNum, pageSize, userKey, startTime, endTime }
  }
}

export const getAssetsRecordList = {
  url: '/assets/flow/page',
  method: 'GET',
  dealReqData: ({ pageNum, pageSize, userKey, type, startTime, endTime }) => {
    return { pageNum, pageSize, userKey, type, startTime, endTime }
  }
}

// 获取发票列表
export const getInvoiceList = {
  url: '/assets/invoice/page',
  method: 'GET',
  dealReqData: ({ timeHead, timeTail, keyword, pageNum, pageSize, status }) => {
    return { timeHead, timeTail, keyword, pageNum, pageSize, status }
  }
}

// 开发票
export const applyInvoice = {
  url: '/assets/invoice/apply',
  method: 'POST',
  dealReqData: ({ invoiceId }) => {
    return { invoiceId }
  }
}

// 获取分润明细
export const getProfitRecordList = {
  url: '/assets/profitRecord/page',
  method: 'GET',
  dealReqData: ({ pageNum, pageSize, oid, searchKey, type, buyType, startTime, endTime }) => {
    return { pageNum, pageSize, oid, searchKey, type, buyType, startTime, endTime }
  }
}
