Versions in this module Expand all Collapse all v0 v0.1.3 Jun 10, 2021 v0.1.2 May 16, 2021 Changes in this version + func AddGenOne(handleFuncName, routerPath string, methods []string) + func FindTag(obj interface{}, field, tag string) string + func GetStringList(list []string) string + func UnMarshal(name string) string + type APIFunc func(*gin.Context) interface + type Base struct + func Annotation() *Base + func (b *Base) BasePath(router gin.IRoutes) string + func (b *Base) Model(middleware APIFunc) *Base + func (b *Base) Register(router gin.IRoutes, list []interface{}) bool + func (b *Base) SetDev(isDev bool) + func (b *Base) SetOutDoc(outDoc bool) + type BeforeAfter struct + C *gin.Context + Ctx context.Context + Error error + FuncName string + Param interface{} + Response interface{} + type DefaultBeforeAfter struct + func (d *DefaultBeforeAfter) After(r *BeforeAfter) bool + func (d *DefaultBeforeAfter) Before(r *BeforeAfter) bool + type ErrorFunc func(interface{}) + type Hook interface + After func(r *BeforeAfter) bool + Before func(r *BeforeAfter) bool + type RespBody struct + Code int + Data interface{} + Error string + State bool