repository

package
v0.0.0-...-3852566 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 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 LanguageRepository

type LanguageRepository interface {
	Exist(model *entities.LanguageORM) bool
	List(limit, page uint32, sort string) (total uint32, languages []*entities.LanguageORM, err error)
	Get(id string) (*entities.LanguageORM, error)
	Create(model *entities.LanguageORM) error
	Update(id string, model *entities.LanguageORM) error
	Delete(model *entities.LanguageORM) error
}

LanguageRepository interface

func NewLanguageRepository

func NewLanguageRepository(db *gorm.DB) LanguageRepository

NewLanguageRepository returns an instance of `LanguageRepository`.

type SkillRepository

type SkillRepository interface {
	Exist(model *entities.SkillORM) bool
	List(limit, page uint32, sort string) (total uint32, skills []*entities.SkillORM, err error)
	Get(id string) (*entities.SkillORM, error)
	Create(model *entities.SkillORM) error
	Update(id string, model *entities.SkillORM) error
	Delete(model *entities.SkillORM) error
}

SkillRepository interface

func NewSkillRepository

func NewSkillRepository(db *gorm.DB) SkillRepository

NewSkillRepository returns an instance of `SkillRepository`.

type WordRepository

type WordRepository interface {
	Exist(model *entities.WordORM) bool
	List(limit, page uint32, sort string) (total uint32, words []*entities.WordORM, err error)
	Get(id string) (*entities.WordORM, error)
	Create(model *entities.WordORM) error
	Update(id string, model *entities.WordORM) error
	Delete(model *entities.WordORM) error
}

WordRepository interface

func NewWordRepository

func NewWordRepository(db *gorm.DB) WordRepository

NewWordRepository returns an instance of `WordRepository`.

Jump to

Keyboard shortcuts

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