socialaccount

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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 {
	ID       []uint64
	Provider []string
	Username []string
	Email    []string
	UserID   []uint64
}

func (*Filter) PrepareQuery

func (f *Filter) PrepareQuery(q *gorm.DB) *gorm.DB

type Order

type Order struct {
	ID        model.Order
	UserID    model.Order
	Provider  model.Order
	Email     model.Order
	Username  model.Order
	FirstName model.Order
	LastName  model.Order
}

func (*Order) PrepareQuery

func (o *Order) PrepareQuery(q *gorm.DB) *gorm.DB

type Repository

type Repository interface {
	Get(ctx context.Context, id uint64) (*model.AccountSocial, error)
	FetchList(ctx context.Context, filter *Filter, order *Order, pagination *repository.Pagination) ([]*model.AccountSocial, error)
	Count(ctx context.Context, filter *Filter) (int64, error)
	Disconnect(ctx context.Context, id uint64) error
	FetchSessionList(ctx context.Context, socialAccountID []uint64) ([]*model.AccountSocialSession, error)
}

type Usecase

type Usecase interface {
	Get(ctx context.Context, id uint64) (*model.AccountSocial, error)
	FetchList(ctx context.Context, filter *Filter, order *Order, page *repository.Pagination) ([]*model.AccountSocial, error)
	Count(ctx context.Context, filter *Filter) (int64, error)
	Disconnect(ctx context.Context, id uint64) (*model.AccountSocial, error)
	FetchSessionList(ctx context.Context, socialAccountID []uint64) ([]*model.AccountSocialSession, error)
}

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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