Files
grafana/pkg/services/user/user.go
T

19 lines
705 B
Go
Raw Normal View History

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