Versions in this module Expand all Collapse all v0 v0.0.1 Jul 31, 2026 Changes in this version + var DefaultFileManager = &FileManager + var DefaultServiceHandler = &ServiceHandler + func BindParam(_ *ServiceContext, c *gin.Context, paramValue reflect.Value) error + type BusinessError struct + Code int + HTTPCode int + Message string + func (e *BusinessError) Error() string + type FileField struct + AllowedTypes []string + FieldName string + MaxCount int + MaxSize int64 + Multiple bool + NameGenerator func(originalName string) string + Required bool + SaveDir string + type FileInfo struct + Extension string + FieldName string + FileName string + FilePath string + FileURL string + MimeType string + OriginalName string + Size int64 + type FileManager struct + BaseDir string + BaseURL string + DefaultAllowedTypes []string + DefaultMaxSize int64 + DefaultNameGenerator func(originalName string) string + func (fm *FileManager) ProcessFileField(ctx *ServiceContext, field *FileField) (any, error) + func (fm *FileManager) ProcessFiles(ctx *ServiceContext, fields ...*FileField) (map[string]any, error) + func (fm *FileManager) ProcessMultipleFilesFromArrayFormat(ctx *ServiceContext, field *FileField) ([]*FileInfo, error) + type FileTag struct + AllowedTypes []string + FieldName string + MaxCount int + MaxSize int64 + Multiple bool + Required bool + SaveDir string + func ParseFileTag(tag reflect.StructTag) *FileTag + func (ft *FileTag) ToFileField() *FileField + type Response struct + Code int + Data any + Message string + type RouterGroup struct + Handler *ServiceHandler + func WrapRouter(rg *gin.RouterGroup, handler ...*ServiceHandler) *RouterGroup + func (rg *RouterGroup) DELETE(path string, handler any) *RouterGroup + func (rg *RouterGroup) GET(path string, handler any) *RouterGroup + func (rg *RouterGroup) POST(path string, handler any) *RouterGroup + func (rg *RouterGroup) PUT(path string, handler any) *RouterGroup + type ServiceContext struct + GinContext *gin.Context + Metadata map[string]any + TenantID string + UserID uint + type ServiceHandler struct + Binder func(*ServiceContext, any) error + ContextFactory func(*gin.Context) *ServiceContext + ErrorHandler func(*ServiceContext, error) + FileHandler *FileManager + ResponseHandler func(*ServiceContext, any, error)