mirror of
https://github.com/grafana/grafana.git
synced 2025-01-13 09:32:12 -06:00
17 lines
770 B
Go
17 lines
770 B
Go
package tempuser
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
UpdateTempUserStatus(ctx context.Context, cmd *UpdateTempUserStatusCommand) error
|
|
CreateTempUser(ctx context.Context, cmd *CreateTempUserCommand) (*TempUser, error)
|
|
UpdateTempUserWithEmailSent(ctx context.Context, cmd *UpdateTempUserWithEmailSentCommand) error
|
|
GetTempUsersQuery(ctx context.Context, query *GetTempUsersQuery) ([]*TempUserDTO, error)
|
|
GetTempUserByCode(ctx context.Context, query *GetTempUserByCodeQuery) (*TempUserDTO, error)
|
|
ExpireOldUserInvites(ctx context.Context, cmd *ExpireTempUsersCommand) error
|
|
ExpireOldVerifications(ctx context.Context, cmd *ExpireTempUsersCommand) error
|
|
ExpirePreviousVerifications(ctx context.Context, cmd *ExpirePreviousVerificationsCommand) error
|
|
}
|