console.js 1.94 KB
/*
 * @Author: yangming yangming@didihu.com.cn
 * @Date: 2022-11-24 16:20:21
 * @LastEditors: yangming yangming@didihu.com.cn
 * @LastEditTime: 2022-11-29 10:23:34
 * @FilePath: \live\src\api\modules\console.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { http } from '@/main'
//基本信息
const consoleBasic = params => {
  params.method = `scrm.api.shopmall.livebroadcast.console.basic`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//流量数据-详情列表导出
const detailexport = params => {
  params.method = `scrm.api.shopmall.livebroadcast.console.detailexport`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//流量数据-详情列表导出
const consoleExport = params => {
  params.method = `scrm.api.shopmall.livebroadcast.console.export`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//流量数据-详情列表查询(分页)
const detailpage = params => {
  params.method = `scrm.api.shopmall.livebroadcast.console.detailpage`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//直播间信息
const consoleInfo = params => {
  params.method = `scrm.api.shopmall.livebroadcast.console.info`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//分页查询流量数据列表
const consolePage = params => {
  params.method = `scrm.api.shopmall.livebroadcast.console.page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
export default {
  consoleBasic,
  consolePage,
  consoleInfo,
  detailpage,
  detailexport,
  consoleExport
}