Advertisement
kidto1412

example-services

Jun 30th, 2024
1,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // import {AXIOS} from '../common/server';
  2. import { api } from '../boot/axios'
  3. import header from '../common/header'
  4. import util from '../tools/utility'
  5.  
  6. class AuthService {
  7.   AuthLogin(data: any) {
  8.     let config = header.authHeaderLogin()
  9.     return api.post('/v1/auth/authenticate', data, config)
  10.   }
  11.  
  12.   AuthLogout() {
  13.     let config = header.authHeaderLogin()
  14.     return api.get(`/v1/auth/logout`, config)
  15.   }
  16.   ChangePassword(data: any) {
  17.     return api.post(`v1/user/force/change-password`, data)
  18.   }
  19.  
  20.   // GetListMenu() {
  21.  
  22.   //   let config = header.authHeader(deviceId)
  23.   //   return api.get('/adm/user/my-profile', config)
  24.   // }
  25. }
  26.  
  27. export default new AuthService()
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement