repository

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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 ProfileRepository

type ProfileRepository interface {
	Exist(model *account_entities.ProfileORM) bool
	List(limit, page uint32, sort string, model *account_entities.ProfileORM) (total uint32, profiles []*account_entities.ProfileORM, err error)
	Get(id string) (*account_entities.ProfileORM, error)
	GetByUserID(userId string) (*account_entities.ProfileORM, error)
	Create(model *account_entities.ProfileORM) error
}

ProfileRepository interface

func NewProfileRepository

func NewProfileRepository(db *gorm.DB) ProfileRepository

NewProfileRepository returns an instance of `ProfileRepository`.

type UserRepository

type UserRepository interface {
	Exist(model *account_entities.UserORM) bool
	List(limit, page uint32, sort string, model *account_entities.UserORM) (total uint32, users []*account_entities.UserORM, err error)
	Get(id string) (*account_entities.UserORM, error)
	Create(model *account_entities.UserORM) error
	Update(id string, model *account_entities.UserORM) error
	Delete(model *account_entities.UserORM) error
}

UserRepository interface

func NewUserRepository

func NewUserRepository(db *gorm.DB) UserRepository

NewUserRepository returns an instance of `UserRepository`.

Jump to

Keyboard shortcuts

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