draincloud-core/internal/storage/interface.go
2024-09-28 01:37:58 +03:00

18 lines
383 B
Go

package storage
import (
"context"
"git.optclblast.xyz/draincloud/draincloud-light/internal/storage/models"
)
type Database interface {
AuthStorage
}
type AuthStorage interface {
AddUser(ctx context.Context, user *models.User) error
GetUserByLogin(ctx context.Context, login string) (*models.User, error)
GetUserByID(ctx context.Context, id uint64) (*models.User, error)
}