Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Count(ctx context.Context, filter *socialaccount.Filter) (int64, error)
- func (r *Repository) Disconnect(ctx context.Context, id uint64) error
- func (r *Repository) FetchList(ctx context.Context, filter *socialaccount.Filter, order *socialaccount.Order, ...) ([]*model.AccountSocial, error)
- func (r *Repository) FetchSessionList(ctx context.Context, socialAccountID []uint64) ([]*model.AccountSocialSession, error)
- func (r *Repository) 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 Repository ¶
type Repository struct {
repository.Repository
}
Repository for social account
func (*Repository) Count ¶
func (r *Repository) Count(ctx context.Context, filter *socialaccount.Filter) (int64, error)
Count of social accounts
func (*Repository) Disconnect ¶
func (r *Repository) Disconnect(ctx context.Context, id uint64) error
Disconnect social account by ID
func (*Repository) FetchList ¶
func (r *Repository) FetchList(ctx context.Context, filter *socialaccount.Filter, order *socialaccount.Order, pagination *repository.Pagination) ([]*model.AccountSocial, error)
FetchList of social accounts
func (*Repository) FetchSessionList ¶
func (r *Repository) FetchSessionList(ctx context.Context, socialAccountID []uint64) ([]*model.AccountSocialSession, error)
FetchSessionList of social account
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, id uint64) (*model.AccountSocial, error)
Get social account by ID
Click to show internal directories.
Click to hide internal directories.