Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaoIface ¶
type DaoIface[P int32 | int64 | string, E IBaseModel[P]] interface { Insert(entity *E) (P, error) DeleteById(pkey P) error Save(entity *E) (P, error) Update(entity *E) (P, error) UpdateNotNull(pkey P, maps map[string]any) (P, error) UpdateMap(pkey P, maps map[string]interface{}) (P, error) FindById(pkey P) (entity *E, found bool, err error) FindByIds(pks string) (*[]E, error) Query() *page.PageResult Count() (int, error) GetDB() *gorm.DB }
type IBaseModel ¶
Click to show internal directories.
Click to hide internal directories.