mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
d1c9b308bc
* Move tempuser model to tempuser package * Add xorm tags for ID
15 lines
593 B
Go
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
|
|
}
|