Documentation ¶
Index ¶
- func CheckGormModels(db *gorm.DB, c *jsonapi.Controller, models ...interface{}) error
- type GORMRepository
- func (g *GORMRepository) Create(scope *jsonapi.Scope) *unidb.Error
- func (g *GORMRepository) Delete(scope *jsonapi.Scope) *unidb.Error
- func (g *GORMRepository) Get(scope *jsonapi.Scope) *unidb.Error
- func (g *GORMRepository) List(scope *jsonapi.Scope) *unidb.Error
- func (g *GORMRepository) Patch(scope *jsonapi.Scope) *unidb.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGormModels ¶
func CheckGormModels(db *gorm.DB, c *jsonapi.Controller, models ...interface{}) error
Types ¶
type GORMRepository ¶
type GORMRepository struct {
// contains filtered or unexported fields
}
func (*GORMRepository) Create ¶
func (g *GORMRepository) Create(scope *jsonapi.Scope) *unidb.Error
func (*GORMRepository) Delete ¶
func (g *GORMRepository) Delete(scope *jsonapi.Scope) *unidb.Error
func (*GORMRepository) Get ¶
func (g *GORMRepository) Get(scope *jsonapi.Scope) *unidb.Error
func (*GORMRepository) List ¶
func (g *GORMRepository) List(scope *jsonapi.Scope) *unidb.Error
func (*GORMRepository) Patch ¶
func (g *GORMRepository) Patch(scope *jsonapi.Scope) *unidb.Error
Click to show internal directories.
Click to hide internal directories.