feat: improvements in structures

This commit is contained in:
Elton Minetto
2020-09-29 21:51:18 -03:00
parent 201f7607e1
commit 2c7f87e73a
41 changed files with 821 additions and 1265 deletions
+15
View File
@@ -0,0 +1,15 @@
package user
import (
"github.com/eminetto/clean-architecture-go-v2/domain/entity"
)
//UseCase interface
type UseCase interface {
GetUser(id entity.ID) (*entity.User, error)
SearchUsers(query string) ([]*entity.User, error)
ListUsers() ([]*entity.User, error)
CreateUser(e *entity.User) (entity.ID, error)
UpdateUser(e *entity.User) error
DeleteUser(id entity.ID) error
}