fix(refactor): add services/adapters/useCases
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
import Users from '@helpers/Users/Users.js';
|
||||
|
||||
const path = import.meta.env.VITE_API_ADDR
|
||||
const UsersService = new Users(path, {
|
||||
id: 'id',
|
||||
first_name: 'first_name',
|
||||
last_name: 'last_name',
|
||||
email: 'email',
|
||||
role: 'role',
|
||||
is_active: 'is_active'
|
||||
})
|
||||
const UsersService = new Users(path)
|
||||
|
||||
const initState = {
|
||||
usersList: [],
|
||||
@@ -36,7 +29,7 @@ const actions = {
|
||||
commit('setComponentState', 'active')
|
||||
},
|
||||
resetStore: ({state}) => {
|
||||
Object.entries(initState).forEach(([k,v]) => {
|
||||
Object.entries(initState).forEach(([k, v]) => {
|
||||
state[k] = v
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user