This commit is contained in:
@@ -49,6 +49,24 @@ type createUserResult struct {
|
||||
Token *auth.Token
|
||||
}
|
||||
|
||||
type demoResetInput struct {
|
||||
Name string
|
||||
Email string
|
||||
PasswordHash []byte
|
||||
}
|
||||
|
||||
type demoResetResult struct {
|
||||
Email string `json:"email"`
|
||||
Garden string `json:"garden"`
|
||||
Images int `json:"images"`
|
||||
Locations int `json:"locations"`
|
||||
Species int `json:"species"`
|
||||
Plants int `json:"plants"`
|
||||
Tasks int `json:"tasks"`
|
||||
Journal int `json:"journal_entries"`
|
||||
Attachments int `json:"attachments"`
|
||||
}
|
||||
|
||||
type adminStore interface {
|
||||
Ping(context.Context) error
|
||||
CreateUser(context.Context, createUserInput) (createUserResult, error)
|
||||
@@ -59,6 +77,7 @@ type adminStore interface {
|
||||
ResetPassword(context.Context, string, []byte) (userView, error)
|
||||
SetUserRole(context.Context, string, string) (userView, error)
|
||||
AddGardenMember(context.Context, int, string, string) (gardenMemberView, error)
|
||||
ResetDemo(context.Context, demoResetInput) (demoResetResult, error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user