repository

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 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 *pb.ProfileORM) bool
	List(limit, page uint32, sort string, model *pb.ProfileORM) (total uint32, profiles []*pb.ProfileORM, err error)
	Get(id string) (*pb.ProfileORM, error)
	Create(model *pb.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 *pb.UserORM) bool
	List(limit, page uint32, sort string, model *pb.UserORM) (total uint32, users []*pb.UserORM, err error)
	Get(id string) (*pb.UserORM, error)
	Create(model *pb.UserORM) error
	Update(id string, model *pb.UserORM) error
	Delete(model *pb.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