repository

package
v0.0.0-...-ef8624d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookRepo

type BookRepo struct {
	// contains filtered or unexported fields
}

func NewBookRepo

func NewBookRepo(db *gorm.DB) *BookRepo

func (*BookRepo) All

func (r *BookRepo) All() []*entity.Book

func (*BookRepo) FindByDownload

func (r *BookRepo) FindByDownload(downloadID uint) *entity.Book

func (*BookRepo) FindByID

func (r *BookRepo) FindByID(bookID uint) *entity.Book

func (*BookRepo) FindWithProgress

func (r *BookRepo) FindWithProgress(userID uint) []*entity.Book

type DownloadRepo

type DownloadRepo struct {
	// contains filtered or unexported fields
}

func NewDownloadRepo

func NewDownloadRepo(db *gorm.DB) *DownloadRepo

func (*DownloadRepo) FindByID

func (r *DownloadRepo) FindByID(id uint) *entity.Download

func (*DownloadRepo) FindByMagnet

func (r *DownloadRepo) FindByMagnet(magnet string) *entity.Download

type ProgressRepo

type ProgressRepo struct {
	// contains filtered or unexported fields
}

func NewProgressRepo

func NewProgressRepo(db *gorm.DB) *ProgressRepo

func (*ProgressRepo) FindByBook

func (r *ProgressRepo) FindByBook(bookID uint, userID uint) *entity.Progress

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

func NewUserRepo

func NewUserRepo(db *gorm.DB) *UserRepo

func (*UserRepo) FindByID

func (r *UserRepo) FindByID(userID uint) *entity.User

Jump to

Keyboard shortcuts

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