import request from '@/utils/request' ; export interface LoginParamsType { userName : string ; password : string ; } export interface UserInfoParamsType { userid : string ; } export async function queryLogin ( params ) { return request ( '/api/login' , { method : 'POST' , data : params , } ) ; } export async function queryUserInfo ( params ) { return request ( '/api/userInfo' , { method : 'POST' , data : params , } ) ; } export async function logout ( ) { return request ( '/api/logout' ) ; }