Initial commit
This commit is contained in:
commit
c0cb826917
63 changed files with 2069 additions and 0 deletions
16
internal/domain/repository/user_repo.go
Normal file
16
internal/domain/repository/user_repo.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package repository
|
||||
|
||||
import (
|
||||
"58team_blog/internal/domain/entities"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type UsersRepository interface {
|
||||
Create(*entities.User) (*entities.User, error)
|
||||
FindById(uuid.UUID) (*entities.User, error)
|
||||
FindByName(string) (*entities.User, error)
|
||||
GetAll() ([]*entities.User, error)
|
||||
Update(*entities.User) error
|
||||
Delete(uuid.UUID) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue