grafana/pkg/services/temp_user/temp_user.go
idafurjes d1c9b308bc
Chore: Move tempuser model to tempuser package (#61024)
* Move tempuser model to tempuser package

* Add xorm tags for ID
2023-01-06 09:02:05 +01:00

15 lines
593 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
}