import request from '@/utils/request'

export interface LoginParams {
  account: string
  password: string
}

export interface LoginResult {
  token: string
}

/** 登录接口 */
export const apiLogin = (data: LoginParams) =>
  request.post<LoginResult>('/Sys/login/userLogin', data)
  
/** 退出登录 */
export const apiLogout = () => request.post('/Sys/login/userLogout')