auth.ts 324 B

123456789101112
  1. import http from '../utils/http'
  2. const AuthApi = {
  3. async Authenticate(input: any) {
  4. return http.post('/api/OpenAuth/Authenticate', input) as Promise<IRestResult<any>>
  5. },
  6. async Entrance(input: any) {
  7. return http.post('/api/OpenAuth/Entrance', input) as Promise<IRestResult<any>>
  8. },
  9. }
  10. export default AuthApi