package
0.0.75
Repository: https://github.com/icarus-go/component.git
Documentation: pkg.go.dev

# Packages

Package config Description: The database param model Author: Kevin · Cai Created: 2022/3/4 17:07:50.
No description provided by the author

# Functions

DefaultNew 默认仅仅开启(DDL表名规范、自动注册表、日志).
MustPaginate Author: Kevin·CC Description: 必须有分页参数 Param paging 分页 Return func(db *gorm.DB) *gorm.DB 分页 limit , offset Return error 错误信息.
No description provided by the author
NewMultiResolver 多主多从 Param multipart 多主多从配置 Param fn 启动方法 Return *Resolver: 帮助工具 Return error: 错误信息.
NewResolver 一主多从 Param separate 一主多从配置 Param fn 方法 Return *Resolver: 帮助工具 Return error: 错误信息.
Order 排序方法 orders 排序对象.
Paginate Author: Kevin·CC Description: 分页非必须 适合通用方法/基础方法 Param paging 分页 Return func(db *gorm.DB) *gorm.DB 分页返回.
Preload Author: Kevin·CC Description: 预加载 Param preload 预加载对象 Return func(db *gorm.DB) *gorm.DB 限制.
Restrict Author: Kevin·CC Description: 限制预加载, 必须继承接口的实现 Param restrict 限制参数 Return func(tx *gorm.DB) *gorm.DB 限制.

# Structs

No description provided by the author
Gorm Author: Kevin·CC Description: GORM实例包装.
No description provided by the author

# Interfaces

AutoMigrateTable Author: Kevin·CC Description: 自动注册接口,每个模块需要注册哪些内容.