import request from '@/utils/request'
import { URL } from '@/config'

/**
 * @name 商家端-销售额
 * @api api_url + '/admin/pay/analytics/trade/getSalesAmount',
 * @returns {
 *  "today": 830.8,   今日
 *  "yestoday": 0,    昨天
 *  "daym2m": null,
 *  "month": 830.8    月
 *}
 */

export function getSalesAmount(params) {
  return request({
    url: URL.analytics.trade.getSalesAmount,
    method: 'get',
    params,
  })
}
