mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
clean: removed use of "." in imports
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
. "GohCMS2/adapters/secondary/gateways"
|
||||
. "GohCMS2/domain/user"
|
||||
"GohCMS2/adapters/secondary/gateways"
|
||||
"GohCMS2/domain/user"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ListUsersUseCase struct {
|
||||
userRepository UserRepository
|
||||
userRepository gateways.UserRepository
|
||||
}
|
||||
|
||||
func NewListUsersUseCase(db *gorm.DB) *ListUsersUseCase {
|
||||
return &ListUsersUseCase{
|
||||
userRepository: *NewUserRepository(db),
|
||||
userRepository: *gateways.NewUserRepository(db),
|
||||
}
|
||||
}
|
||||
|
||||
func (g *ListUsersUseCase) ListUsers() []User {
|
||||
func (g *ListUsersUseCase) ListUsers() []user.User {
|
||||
return g.userRepository.GetAll()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user