Documentation ¶
Index ¶
- type Usecase
- func (u *Usecase) Count(ctx context.Context, filter *socialaccount.Filter) (int64, error)
- func (u *Usecase) Disconnect(ctx context.Context, id uint64) (*model.AccountSocial, error)
- func (u *Usecase) FetchList(ctx context.Context, filter *socialaccount.Filter, order *socialaccount.Order, ...) ([]*model.AccountSocial, error)
- func (u *Usecase) FetchSessionList(ctx context.Context, socialAccountID []uint64) ([]*model.AccountSocialSession, error)
- func (u *Usecase) Get(ctx context.Context, id uint64) (*model.AccountSocial, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Usecase ¶
type Usecase struct {
// contains filtered or unexported fields
}
Usecase for social account
func New ¶
func New(repo socialaccount.Repository) *Usecase
func (*Usecase) Disconnect ¶
Disconnect social account
func (*Usecase) FetchList ¶
func (u *Usecase) FetchList(ctx context.Context, filter *socialaccount.Filter, order *socialaccount.Order, page *repository.Pagination) ([]*model.AccountSocial, error)
FetchList of social accounts
func (*Usecase) FetchSessionList ¶
func (u *Usecase) FetchSessionList(ctx context.Context, socialAccountID []uint64) ([]*model.AccountSocialSession, error)
FetchSessionList of social accounts
Click to show internal directories.
Click to hide internal directories.