Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralDaoIface ¶
type GeneralDaoIface[P GoPkey, 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) GeneralDaoQueryIface[P, E] }
type GeneralDaoQueryIface ¶
type GeneralDaoQueryIface[P GoPkey, E IBaseModel[P]] interface { FindById(pkey P) (entity E, found bool, err error) FindByIds(pks string) (*[]E, error) Query() *page.PageResult QueryModel() *pagemodel.PageResult[E] QueryPageui() *pageui.PageuiResult QueryPageuiModel() *pageuimodel.PageuiResult[E] Count() (int, error) GetDB() *gorm.DB }
type IBaseEsModel ¶
type IBaseModel ¶
type ServiceIface ¶
type ServiceIface interface { Query(param *page.PageRequest) *page.PageResult Count(param *page.PageRequest) (int, error) FindById(SubsysId int32) *basedto.IchubResult FindByIds(pks string) *page.PageResult DeleteById(Id int32) *basedto.IchubResult //Save(entity any) *basedto.IchubResult UpdateNotNull(Id int32, entity map[string]interface{}) *basedto.IchubResult }
Click to show internal directories.
Click to hide internal directories.