portal/interfaces/account.go

13 lines
439 B
Go
Raw Normal View History

2024-01-16 05:19:36 +00:00
package interfaces
import "git.lumeweb.com/LumeWeb/portal/db/models"
2024-01-16 05:19:36 +00:00
type AccountService interface {
EmailExists(email string) (bool, models.User)
PubkeyExists(pubkey string) (bool, models.PublicKey)
CreateAccount(email string, password string) (*models.User, error)
AddPubkeyToAccount(user models.User, pubkey string) error
LoginPassword(email string, password string) (string, error)
LoginPubkey(pubkey string) (string, error)
2024-01-16 05:19:36 +00:00
}