Documentation ¶
Index ¶
- type GORMRepository
- func (g *GORMRepository) Count(req interface{}) (count int, dberr *dberrors.Error)
- func (g *GORMRepository) Create(req interface{}) *dberrors.Error
- func (g *GORMRepository) Delete(req, where interface{}) *dberrors.Error
- func (g *GORMRepository) Get(req interface{}) (res interface{}, dberr *dberrors.Error)
- func (g *GORMRepository) List(req interface{}) (res interface{}, dberr *dberrors.Error)
- func (g *GORMRepository) ListWithParams(req interface{}, params *repository.ListParameters) (res interface{}, dberr *dberrors.Error)
- func (g *GORMRepository) Patch(req, where interface{}) (dberr *dberrors.Error)
- func (g *GORMRepository) Update(req interface{}) (dberr *dberrors.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GORMRepository ¶
type GORMRepository struct {
// contains filtered or unexported fields
}
GORMRepository is an implementation of Repository interface for 'jinzhu/gorm' package. It is composed of *gorm.DB and dberrors.Converter.
func (*GORMRepository) Count ¶
func (g *GORMRepository) Count(req interface{}) (count int, dberr *dberrors.Error)
func (*GORMRepository) Create ¶
func (g *GORMRepository) Create(req interface{}) *dberrors.Error
func (*GORMRepository) Delete ¶
func (g *GORMRepository) Delete(req, where interface{}) *dberrors.Error
func (*GORMRepository) Get ¶
func (g *GORMRepository) Get(req interface{}) (res interface{}, dberr *dberrors.Error)
func (*GORMRepository) List ¶
func (g *GORMRepository) List( req interface{}, ) (res interface{}, dberr *dberrors.Error)
func (*GORMRepository) ListWithParams ¶
func (g *GORMRepository) ListWithParams( req interface{}, params *repository.ListParameters, ) (res interface{}, dberr *dberrors.Error)
func (*GORMRepository) Patch ¶
func (g *GORMRepository) Patch(req, where interface{}) (dberr *dberrors.Error)
func (*GORMRepository) Update ¶
func (g *GORMRepository) Update(req interface{}) (dberr *dberrors.Error)
Click to show internal directories.
Click to hide internal directories.