socialauth

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	UserID          []uint64
	SocialID        []string
	Provider        []string
	Email           []string
	RetrieveDeleted bool
}

func (*Filter) PrepareQuery

func (fl *Filter) PrepareQuery(query *gorm.DB) *gorm.DB

type Repository

type Repository interface {
	Get(ctx context.Context, id uint64) (*model.AccountSocial, error)
	List(ctx context.Context, filter *Filter) ([]*model.AccountSocial, error)
	Create(ctx context.Context, account *model.AccountSocial) (uint64, error)
	Update(ctx context.Context, id uint64, account *model.AccountSocial) error
	Token(ctx context.Context, name string, accountSocialID uint64) (*elogin.Token, error)
	SetToken(ctx context.Context, name string, accountSocialID uint64, token *elogin.Token) error
}

type Usecase

type Usecase interface {
	Get(ctx context.Context, id uint64) (*model.AccountSocial, error)
	List(ctx context.Context, filter *Filter) ([]*model.AccountSocial, error)
	Register(ctx context.Context, user *model.User, account *model.AccountSocial) (uint64, error)
	Update(ctx context.Context, id uint64, account *model.AccountSocial) error
	Token(ctx context.Context, name string, accountSocialID uint64) (*elogin.Token, error)
	SetToken(ctx context.Context, name string, accountSocialID uint64, token *elogin.Token) error
}

Usecase of the socialauth account which provides bussiness logic for socialauth access and connection to the user account by social network

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL