2022-06-28 07:32:25 -05:00
|
|
|
package user
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
|
|
|
Create(context.Context, *CreateUserCommand) (*User, error)
|
2022-07-19 09:01:05 -05:00
|
|
|
Delete(context.Context, *DeleteUserCommand) error
|
2022-08-02 09:58:05 -05:00
|
|
|
GetByID(context.Context, *GetUserByIDQuery) (*User, error)
|
2022-08-04 06:22:43 -05:00
|
|
|
GetByLogin(context.Context, *GetUserByLoginQuery) (*User, error)
|
2022-08-04 06:47:30 -05:00
|
|
|
GetByEmail(context.Context, *GetUserByEmailQuery) (*User, error)
|
2022-08-04 07:22:44 -05:00
|
|
|
Update(context.Context, *UpdateUserCommand) error
|
2022-08-04 08:05:05 -05:00
|
|
|
ChangePassword(context.Context, *ChangeUserPasswordCommand) error
|
2022-08-04 08:44:14 -05:00
|
|
|
UpdateLastSeenAt(context.Context, *UpdateUserLastSeenAtCommand) error
|
2022-08-11 06:28:55 -05:00
|
|
|
SetUsingOrg(context.Context, *SetUsingOrgCommand) error
|
|
|
|
GetSignedInUserWithCacheCtx(context.Context, *GetSignedInUserQuery) (*SignedInUser, error)
|
2022-06-28 07:32:25 -05:00
|
|
|
}
|