Initial commit
This commit is contained in:
commit
c0cb826917
63 changed files with 2069 additions and 0 deletions
16
internal/application/interfaces/user_service.go
Normal file
16
internal/application/interfaces/user_service.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package interfaces
|
||||
|
||||
import (
|
||||
"58team_blog/internal/application/commands"
|
||||
"58team_blog/internal/application/common"
|
||||
"58team_blog/internal/application/queries"
|
||||
)
|
||||
|
||||
type UserService interface {
|
||||
Create(commands.CreateUserCommand) (*common.UserResult, error)
|
||||
FindById(queries.UserFindByIdQuery) (*queries.UserFindByIdResult, error)
|
||||
FindByName(queries.UserFindByNameQuery) (*queries.UserFindByNameResult, error)
|
||||
GetAll() (*queries.UserGetAllResult, error)
|
||||
Update(commands.UpdateUserCommand) (*common.UserResult, error)
|
||||
Delete(commands.DeleteUserCommand) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue