import https from "../test/http" ; import { Method , ContentType } from '../src/type' ; import { LoginRoot } from "../test/loginModel" ; const userInfo = { username : 'admin' , password : 'admin' } ; https . request < LoginRoot > ( '/account/login' , Method . POST , userInfo , ContentType . form ) . then ( ( res ) => { console . log ( res ) ; } ) ;