Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
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
Click to show internal directories.
Click to hide internal directories.