usecase

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Count

func (u *Usecase) Count(ctx context.Context, filter *socialaccount.Filter) (int64, error)

Count social accounts

func (*Usecase) Disconnect

func (u *Usecase) Disconnect(ctx context.Context, id uint64) (*model.AccountSocial, error)

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

func (*Usecase) Get

func (u *Usecase) Get(ctx context.Context, id uint64) (*model.AccountSocial, error)

Get social account by ID

Jump to

Keyboard shortcuts

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