const { apiError, apiSuccess, requestAssist } = require('./requestAssist.js')

async function getAccountProgress({ domain = 'services', message = '' } = {}) {
  try {
    const result = await requestAssist({
      intent: 'getAccountProgress',
      domain,
      message,
    })
    return apiSuccess(result, result.reply || '已读取你的服务进度摘要。')
  } catch (error) {
    return apiError(error, '服务进度读取失败')
  }
}

module.exports = getAccountProgress
