repository

package
v0.0.0-...-f2087f5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerRepository

type AnswerRepository interface {
	FindById(answerID uint64) entity.Answer
	AllAnswer() []entity.Answer
	InsertAnswer(b entity.Answer) entity.Answer
	UpdateAnswer(b entity.Answer) entity.Answer
	DeleteAnswer(b entity.Answer)
}

func NewAnswerRepository

func NewAnswerRepository(db *gorm.DB) AnswerRepository

type QuestionRepository

type QuestionRepository interface {
	FindById(questionID uint64) entity.Question
	AllQuestion() []entity.Question
	InsertQuestion(b entity.Question) entity.Question
	UpdateQuestion(b entity.Question) entity.Question
	DeleteQuestion(b entity.Question, questionID uint64)
	FindAnswer(questionID uint64) []entity.Answer
}

func NewQuestionRepository

func NewQuestionRepository(db *gorm.DB) QuestionRepository

type UserRepository

type UserRepository interface {
	VerifyCredential(email string, password string) interface{}
	ProfileUser(id string) entity.User
}

func NewUserRepository

func NewUserRepository(db *gorm.DB) UserRepository

Jump to

Keyboard shortcuts

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