import request from '@/utils/request' ; import { UserSystem } from '@root/src/models/userSystem' ; export const getUserInfoByToken = ( ) => { return request . get < ResponseData < UserSystem > > ( '/user/token' ) ; } ; export const login = ( params ) => { return request . post < ResponseData < UserSystem > > ( '/login' , params ) ; } ;