reportApi.js 993 Bytes
const biUrl = 'rop-dj-pe-analysis/router'

export default {
  /**
   * 
   * 查询数据报告汇总
   * 
   */
  getReportSummary (data = {}) {
    data.method = 'dj.api.smartcarlife.data.report.summary.query'
    return window.$DJ_HTTP({
      url: biUrl,
      data,
      returnAll: true
    })
  },
  /**
   * 查询用户订阅配置
   */
  getUserSubscribeConfig (data = {}) {
    data.method = 'org.ore.api.report.subscribe.config'
    return window.$DJ_HTTP({
      url: biUrl,
      data,
    })
  },
  /**
更新展业月报订阅状态
   */
  updateMonthlySubscribeStatus (data = {}) {
    data.method = 'org.ore.api.report.subscribe.monthly'
    return window.$DJ_HTTP({
      url: biUrl,
      data,
    })
  },
  /**
更新展业周报订阅状态
   */
  updateWeeklySubscribeStatus (data = {}) {
    data.method = 'org.ore.api.report.subscribe.weekly'
    return window.$DJ_HTTP({
      url: biUrl,
      data,
    })
  },
}