repository

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository interface {
	GetAccountByUid(uid string) (account model.Account, err error)
	CreateAccountByUid(uid string) (account model.Account, err error)
	UpdateAccount(account model.Account) error
}

func NewAccountRepository

func NewAccountRepository(db *gorm.DB) AccountRepository

type AssignmentRepository

type AssignmentRepository interface {
	GetAllAssignment(author string, formPresent bool) ([]model.Assignment, error)
	CreateAssignment(assignment *model.Assignment) error
	GetByID(id int) (*model.Assignment, error)
	Update(assignment *model.Assignment) error
	DeleteAssignment(assignmentId int) error
}

func NewAssignmentRepository

func NewAssignmentRepository(db *gorm.DB, repositoryContext context.Context, tagRepository Tag) AssignmentRepository

type Tag

type Tag interface {
	GetAllTag(author string) (tags []model.Tag, err error)
	Create(tag *model.Tag) error
	Update(tag *model.Tag) error
	GetByID(id int) (*model.Tag, error)
	DeleteTag(tagID int) error
}

func NewTagRepository

func NewTagRepository(db *gorm.DB, repositoryContext context.Context) Tag

Jump to

Keyboard shortcuts

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