fix(refactor): add services/adapters/useCases

This commit is contained in:
2024-03-06 12:46:19 +03:00
parent e8609ee6d4
commit 4b6cda8632
25 changed files with 769 additions and 50 deletions

View File

@@ -0,0 +1,14 @@
class ServiceOfServices {
constructor(adapterOfServices, store) {
this.adapterOfServices = adapterOfServices
this.store = store
}
async fetchUsersList() {
const services = await this.adapterOfServices.getServices()
await this.store.dispatch('services/saveServices', services)
return services
}
}
export default ServiceOfServices

View File

@@ -0,0 +1,6 @@
class UsersOfServices {
constructor() {
}
}
export default UsersOfServices