import request from '@/utils/request'

// ======== Token消耗统计（仅管理端） ========

// 按日汇总
export function getTokenDaily(params) {
  return request({ url: '/workflow/lobster/token-stats/daily', method: 'get', params })
}

// 按模型汇总
export function getTokenByModel(params) {
  return request({ url: '/workflow/lobster/token-stats/model', method: 'get', params })
}

// 按实例汇总
export function getTokenByInstance(params) {
  return request({ url: '/workflow/lobster/token-stats/instance', method: 'get', params })
}

// Token消耗明细
export function listTokenRecords(params) {
  return request({ url: '/workflow/lobster/token-stats/records', method: 'get', params })
}
