Documentation
¶
Overview ¶
Package crud 是 data 门面子包:框架无关 CRUD——Service/Repository/查询构造。
re-export 自 github.com/oekit/gormx/crud:类型为泛型 type alias(与源包**完全同一类型**, 双向赋值互通);非泛型函数/变量经 var 引用同一函数值。源包新增导出符号时 本壳需同步(门面跟版税,data 门面化决策已接受)。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = src.ErrNotFound
View Source
var NewQuery = src.NewQuery
Functions ¶
This section is empty.
Types ¶
type BaseService ¶
type BaseService[T any, CreateReq, UpdateReq any] = src.BaseService[T, CreateReq, UpdateReq]
func NewBaseService ¶
func NewBaseService[T any, CreateReq, UpdateReq any](repo Repository[T]) *BaseService[T, CreateReq, UpdateReq]
NewBaseService 创建通用 CRUD Service。
type PageResponse ¶
type PageResponse[T any] = src.PageResponse[T]
type Repository ¶
type Repository[T any] = src.Repository[T]
type TxRepository ¶
type TxRepository[T any] = src.TxRepository[T]
Click to show internal directories.
Click to hide internal directories.