Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaoIface ¶
type DaoIface interface { /* @title 函数名称: Query @description : 通用查询 @auth 作者 : leijianming@163.com 时间: 2024-03-26 12:46:24 @param 输入参数名: param * simpledto.EmployeeQueryParam @return 返回参数名: * simpledto.EmployeePageResult */ Query(param *page.PageRequest) *page.PageResult /* @title 函数名称 : Count @description : 通用查询计数 @auth 作者 : leijianming@163.com 时间: 2024-03-26 12:46:24 @param 输入参数名: param * simpledto.EmployeeQueryParam @return 返回参数名: * simpledto.EmployeeJsonResult */ Count(queryParam *page.PageRequest) (int, error) /* @title 函数名称: FindById(Id int32) @description : 根据主键查询记录 @auth 作者: leijianming@163.com 时间: 2024-03-26 12:46:24 @param 输入参数名:Id int32 @return 返回参数名:*simpledto.EmployeeJsonResult */ FindById(Id int) (entity any, found bool, err error) /* @title 函数名称: FindByIds(pks string) @description : 根据主键Id 查询多条记录 例子: FindByIds("1,36,39") @auth 作者: leijianming@163.com 时间: 2024-03-26 12:46:24 @param 输入参数名:Id int32 @return 返回参数名:*simpledto.EmployeeJsonResult */ FindByIds(pks string) (any, error) /* @title 函数名称: DeleteById @description : 根据主键软删除。 @auth 作者 : leijianming@163.com 时间: 2024-03-26 12:46:24 @param 输入参数名: Id int32 @return 返回参数名: *basedto.JsonResult */ DeleteById(Id int) error /* @title 函数名称: UpdateNotNullProps @description : 更新非空字段 @auth 作者 : leijianming@163.com 时间: 2024-03-26 12:46:24 @param 输入参数名: Id int64,entity map[string]interface{} @return 返回参数名: *basedto.JsonResult */ UpdateNotNull(Id int, entity map[string]interface{}) (int, error) }
type FindWebFacade ¶
type FindWebFacade interface {
FindWebFacade(q elastic.Query) *webfacade.WebFacade[baseindex.IndexMapping]
}
type FindWebFacadeOf ¶
type FindWebFacadeOf interface {
FindWebFacadeOf(q elastic.Query) *webfacade.WebFacade[baseindex.IndexMapping]
}
type IPageDbRequest ¶
type IPageDbRequest interface { GeneralQueryPageui() *pageui.PageuiResult GeneralQuery() *page.PageResult GeneralTakeTable() *page.PageResult GeneralScanTable() *page.PageResult GeneralScanTable2Ui() *pageui.PageuiResult }
type ITableName ¶
type ITableName interface {
TableName() string
}
type IpagedbRequestModel ¶
type IpagedbRequestModel[T any] interface { Insert(entity *T) error Update(entity *T) error Insert2Result(entity *T) *pagemodel.IchubResult[T] Update2Result(entity *T) *pagemodel.IchubResult[T] DeleteById(id int64, keys ...string) *pagemodel.IchubResult[T] DeleteByIdOf(id int64, model *T, keys ...string) *pagemodel.IchubResult[T] FindById(id int64, keys ...string) *pagemodel.IchubResult[T] FindByIds(ids string, key ...string) *pagemodel.PageResult[T] GeneralQuery() *pagemodel.PageResult[T] }
type PagedbCmd ¶
type PagedbCmd interface { Init() FindPkName() string CreateTableRecord() (any, error) Insert(entity any) (map[string]any, error) Update(entity any, v any) (any, error) UpdateNotNull(maps map[string]any, pkeyValue any) (any, error) DeleteById(pkey any) error DbFindById(pkey any) (any, bool, error) GeneralQueryPageui() *pageui.PageuiResult GeneralQuery() *page.PageResult GeneralTakeTable() *page.PageResult GeneralScanTable() *page.PageResult GeneralScanTable2Ui() *pageui.PageuiResult GroupStat(groupFields string, statfields ...string) ([]map[string]any, error) Stat(statfield ...string) (map[string]any, error) }
Click to show internal directories.
Click to hide internal directories.