service

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService interface {
	GetUserByUid(uid string) (account model.AccountPublic, err error)
	CheckForCompromisedPassword(hashedPassword string) (isCompromised bool, err error)
	UpdateAccountConsentByUid(uid string, consent bool) (err error)
}

func NewAccountService

func NewAccountService(app *firebase.App, accountRepository repository.AccountRepository) AccountService

type AssignmentService

type AssignmentService interface {
	CreateAssignment(assignment *model.Assignment) error
	GetAllAssignment(author string, fromPresent bool) ([]model.Assignment, error)
	GetAssignmentById(assignmentId int) (model.AssignmentPublic, error)
	UpdateAssignment(updateAssignmentRequest *model.UpdateAssignmentRequest, id int) (*model.Assignment, error)
	DeleteAssignment(assignmentId int) error
}

func NewAssignmentService

func NewAssignmentService(assignmentRepository repository.AssignmentRepository) AssignmentService

type Tag

type Tag interface {
	GetAllTag(author string) ([]model.Tag, error)
	CreateTag(tag *model.Tag) error
	UpdateTag(tagId int, tagUpdateRequest *model.UpdateTagRequest) (*model.Tag, error)
	GetTagById(tagId int) (model.TagPublic, error)
	DeleteTag(tagId int) error
	IsTagExist(tagId int) bool
}

func NewTagService

func NewTagService(tagRepository repository.Tag) Tag

Jump to

Keyboard shortcuts

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