You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
286 B

5 years ago
5 years ago
5 years ago
  1. import ApiService from '@/services/api.service'
  2. class UserService {
  3. constructor() {
  4. this.request = ApiService
  5. }
  6. getMe() {
  7. return this.request.get('/me')
  8. }
  9. getUserList(query) {
  10. return this.request.get(`/users?q=${query}`)
  11. }
  12. }
  13. export default new UserService()