import { RootObject } from '@/model/rootObject'
import { https } from '@/utils/https'
import { ContentType, Method } from 'axios-mapper'
import { setupService, testApi } from '@/config'

/**
 * 
 * @param data 获取用户信息
 * @returns 
 */
export const getUsersInfo = () => {
  return https().request(`server1/userInfo`, Method.GET, undefined, ContentType.json)
}
/**
 * 获取企业用户列表
 */
export const getCompanyUsers = () => {
  return https().request('/api/user/companyUsers', Method.GET, undefined, ContentType.json)
}

/**
 * 
 * @param data 登录
 * @returns 
 */
export const login = (data: any) => {
  return https().request(`server/login`, Method.POST, data, ContentType.json)
}
