import request from '@/utils/request'

export function listWecomInboundTrace(query) {
  return request({
    url: '/jarvis/wecom/inboundTrace/list',
    method: 'get',
    params: query
  })
}

export function getWecomInboundTrace(id) {
  return request({
    url: '/jarvis/wecom/inboundTrace/' + id,
    method: 'get'
  })
}

export function delWecomInboundTrace(ids) {
  return request({
    url: '/jarvis/wecom/inboundTrace/' + (Array.isArray(ids) ? ids.join(',') : ids),
    method: 'delete'
  })
}

/** 清理测试数据（追踪表 + 可选 Redis） */
export function cleanWecomInboundTraceTestData(data) {
  return request({
    url: '/jarvis/wecom/inboundTrace/cleanTestData',
    method: 'post',
    data: data || {}
  })
}
