14 lines
485 B
Go
14 lines
485 B
Go
package interfaces
|
|
|
|
import "git.lumeweb.com/LumeWeb/portal/db/models"
|
|
|
|
type AccountService interface {
|
|
EmailExists(email string) (bool, models.User)
|
|
PubkeyExists(pubkey string) (bool, models.PublicKey)
|
|
AccountExists(id uint64) (bool, models.User)
|
|
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)
|
|
}
|