Documentation ¶
Index ¶
- func All(db *gorm.DB, elem interface{}) func(w http.ResponseWriter, r *http.Request, id string)
- func Delete(db *gorm.DB, new interface{}) func(w http.ResponseWriter, r *http.Request, id string)
- func Get(db *gorm.DB, elem interface{}) func(w http.ResponseWriter, r *http.Request, id string)
- func Link(db *gorm.DB, root interface{}, op string) func(w http.ResponseWriter, r *http.Request, id string)
- func Page(db *gorm.DB, elem interface{}) func(w http.ResponseWriter, r *http.Request, id string)
- func Save(db *gorm.DB, new interface{}) func(w http.ResponseWriter, r *http.Request, id string)
- func WrapGin(f func(http.ResponseWriter, *http.Request, string)) gin.HandlerFunc
- func WrapMux(f func(http.ResponseWriter, *http.Request, string)) func(http.ResponseWriter, *http.Request)
- type ErrorCrud
- type LinkStatusCrud
- type MapperGinGormCrud
- func (g MapperGinGormCrud) All() MapperGinGormCrud
- func (g MapperGinGormCrud) Base() MapperGinGormCrud
- func (g MapperGinGormCrud) Delete() MapperGinGormCrud
- func (g MapperGinGormCrud) Full() MapperGinGormCrud
- func (g MapperGinGormCrud) Get() MapperGinGormCrud
- func (g MapperGinGormCrud) LinkMethod() MapperGinGormCrud
- func (g MapperGinGormCrud) LinkUrl() MapperGinGormCrud
- func (g MapperGinGormCrud) NewMap(restBase string, entity interface{}, array interface{}) MapperGinGormCrud
- func (g MapperGinGormCrud) Page() MapperGinGormCrud
- func (g MapperGinGormCrud) Save() MapperGinGormCrud
- type MapperGormCrud
- func (g MapperGormCrud) All() MapperGormCrud
- func (g MapperGormCrud) Base() MapperGormCrud
- func (g MapperGormCrud) Delete() MapperGormCrud
- func (g MapperGormCrud) Full() MapperGormCrud
- func (g MapperGormCrud) Get() MapperGormCrud
- func (g MapperGormCrud) LinkMethod() MapperGormCrud
- func (g MapperGormCrud) LinkUrl() MapperGormCrud
- func (g MapperGormCrud) NewMap(restBase string, entity interface{}, array interface{}) MapperGormCrud
- func (g MapperGormCrud) Page() MapperGormCrud
- func (g MapperGormCrud) Save() MapperGormCrud
- type ValidateDelete
- type ValidateSave
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Link ¶
func Link(db *gorm.DB, root interface{}, op string) func(w http.ResponseWriter, r *http.Request, id string)
Link is
func WrapGin ¶ added in v0.2.0
func WrapGin(f func(http.ResponseWriter, *http.Request, string)) gin.HandlerFunc
WrapF is a helper function for wrapping http.HandlerFunc and returns a Gin middleware.
Types ¶
type LinkStatusCrud ¶
type MapperGinGormCrud ¶ added in v0.2.0
type MapperGinGormCrud struct { R *gin.Engine RestBase string Db *gorm.DB Entity interface{} Array interface{} }
***************************GIN*********************************************
func (MapperGinGormCrud) All ¶ added in v0.2.0
func (g MapperGinGormCrud) All() MapperGinGormCrud
func (MapperGinGormCrud) Base ¶ added in v0.2.0
func (g MapperGinGormCrud) Base() MapperGinGormCrud
func (MapperGinGormCrud) Delete ¶ added in v0.2.0
func (g MapperGinGormCrud) Delete() MapperGinGormCrud
func (MapperGinGormCrud) Full ¶ added in v0.2.0
func (g MapperGinGormCrud) Full() MapperGinGormCrud
func (MapperGinGormCrud) Get ¶ added in v0.2.0
func (g MapperGinGormCrud) Get() MapperGinGormCrud
func (MapperGinGormCrud) LinkMethod ¶ added in v0.2.0
func (g MapperGinGormCrud) LinkMethod() MapperGinGormCrud
func (MapperGinGormCrud) LinkUrl ¶ added in v0.2.0
func (g MapperGinGormCrud) LinkUrl() MapperGinGormCrud
func (MapperGinGormCrud) NewMap ¶ added in v0.2.0
func (g MapperGinGormCrud) NewMap(restBase string, entity interface{}, array interface{}) MapperGinGormCrud
func (MapperGinGormCrud) Page ¶ added in v0.2.0
func (g MapperGinGormCrud) Page() MapperGinGormCrud
func (MapperGinGormCrud) Save ¶ added in v0.2.0
func (g MapperGinGormCrud) Save() MapperGinGormCrud
type MapperGormCrud ¶ added in v0.1.0
type MapperGormCrud struct { R *mux.Router RestBase string Db *gorm.DB Entity interface{} Array interface{} }
func (MapperGormCrud) All ¶ added in v0.1.0
func (g MapperGormCrud) All() MapperGormCrud
func (MapperGormCrud) Base ¶ added in v0.1.0
func (g MapperGormCrud) Base() MapperGormCrud
func (MapperGormCrud) Delete ¶ added in v0.1.0
func (g MapperGormCrud) Delete() MapperGormCrud
func (MapperGormCrud) Full ¶ added in v0.1.0
func (g MapperGormCrud) Full() MapperGormCrud
func (MapperGormCrud) Get ¶ added in v0.1.0
func (g MapperGormCrud) Get() MapperGormCrud
func (MapperGormCrud) LinkMethod ¶ added in v0.1.0
func (g MapperGormCrud) LinkMethod() MapperGormCrud
func (MapperGormCrud) LinkUrl ¶ added in v0.1.0
func (g MapperGormCrud) LinkUrl() MapperGormCrud
func (MapperGormCrud) NewMap ¶ added in v0.1.0
func (g MapperGormCrud) NewMap(restBase string, entity interface{}, array interface{}) MapperGormCrud
func (MapperGormCrud) Page ¶ added in v0.1.0
func (g MapperGormCrud) Page() MapperGormCrud
func (MapperGormCrud) Save ¶ added in v0.1.0
func (g MapperGormCrud) Save() MapperGormCrud
type ValidateDelete ¶
ValidateDelete is
type ValidateSave ¶
ValidateSave is
Click to show internal directories.
Click to hide internal directories.