import { handle } from '../index'

const suffix = 'api'

export const login = (params: any) => handle({
  url: `/${suffix}/auth/login`,
  method: 'post',
  params
})

export const logout = () => handle({
  url: `/${suffix}/auth/logout`,
  method: 'get',
})
