dao

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	ListByUserID(ctx context.Context, uid uint) ([]*models.UserLink, error)
	GetByID(ctx context.Context, id uint) (*models.UserLink, error)
	DeleteByID(ctx context.Context, id uint) error
	CreateLink(ctx context.Context, link *models.UserLink) (*models.UserLink, error)
	GetByIDPAndSub(ctx context.Context, id uint, sub string) (*models.UserLink, error)
}

func NewDAO

func NewDAO(db *gorm.DB) DAO

NewDAO returns an instance of the default DAO

Jump to

Keyboard shortcuts

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