/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-07-07 14:02:05
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-07-31 13:58:48
 * @FilePath: /water_dealer-agent/src/api/statistical.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from '@/utils/request'

// 获取 首页数据看板数据
export function getMiddlesUserDatas (item) {
  return request({
    url: '/middles/user/datas',
    method: 'get',
    params: {
      time_type: item
    }
  })
}

export function getHomeUserInfo () {
  return request({
    url: '/data/user',
    method: 'get'
  })
}
