mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
943cdea855
* Chore: Add tempuser service * Add implementation * Fix linter; Inject tempUser into wire and HTTPServer * Fix errors
17 lines
630 B
Go
17 lines
630 B
Go
package tempuser
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
)
|
|
|
|
type Service interface {
|
|
UpdateTempUserStatus(ctx context.Context, cmd *models.UpdateTempUserStatusCommand) error
|
|
CreateTempUser(ctx context.Context, cmd *models.CreateTempUserCommand) error
|
|
UpdateTempUserWithEmailSent(ctx context.Context, cmd *models.UpdateTempUserWithEmailSentCommand) error
|
|
GetTempUsersQuery(ctx context.Context, query *models.GetTempUsersQuery) error
|
|
GetTempUserByCode(ctx context.Context, query *models.GetTempUserByCodeQuery) error
|
|
ExpireOldUserInvites(ctx context.Context, cmd *models.ExpireTempUsersCommand) error
|
|
}
|