Documentation ¶
Index ¶
- type CmsContentDAO
- func (daoInst *CmsContentDAO) CountByQueryParam(param *dto.CmsContentQueryParam) (int32, error)
- func (daoInst *CmsContentDAO) DeleteById(ContentId int32) error
- func (daoInst *CmsContentDAO) Demo()
- func (daoInst *CmsContentDAO) FindById(ContentId int32) (entity *model.CmsContent, found bool, err error)
- func (daoInst *CmsContentDAO) FindByIds(pks string) (*[]model.CmsContent, error)
- func (daoInst *CmsContentDAO) FindByQueryParam(param *dto.CmsContentQueryParam) (*[]model.CmsContent, error)
- func (daoInst *CmsContentDAO) Insert(entity *model.CmsContent) (int32, error)
- func (daoInst *CmsContentDAO) Save(entity *model.CmsContent) (int32, error)
- func (daoInst *CmsContentDAO) Update(entity *model.CmsContent) (int32, error)
- func (daoInst *CmsContentDAO) UpdateNotNullProps(entity *model.CmsContent) (*model.CmsContent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmsContentDAO ¶
type CmsContentDAO struct { }
const PAGE_SIZE_DEFAULT = 500 const PAGE_SIZE_MAX = 1000
var InstCmsContentDAO CmsContentDAO
func (*CmsContentDAO) CountByQueryParam ¶
func (daoInst *CmsContentDAO) CountByQueryParam(param *dto.CmsContentQueryParam) (int32, error)
@title 函数名称: CountByQueryParam @description : 计算符合条件的记录总数!queryParam通用条件
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: param *dto.CmsContentQueryParam @return 返回参数名: int32, error
func (*CmsContentDAO) DeleteById ¶
func (daoInst *CmsContentDAO) DeleteById(ContentId int32) error
@title 函数名称: DeleteById @description : 根据主键ContentId 删除记录
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: ContentId int32 @return 返回参数名: error
func (*CmsContentDAO) Demo ¶
func (daoInst *CmsContentDAO) Demo()
@title 函数名称: Demo @description : 代码调用示例
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: 无 @return 返回参数名: 无
func (*CmsContentDAO) FindById ¶
func (daoInst *CmsContentDAO) FindById(ContentId int32) (entity *model.CmsContent, found bool, err error)
@title 函数名称: FindById @description : 根据主键ContentId 查询记录
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: ContentId int32 @return 返回参数名: entity *model.CmsContent, found bool, err error
func (*CmsContentDAO) FindByIds ¶
func (daoInst *CmsContentDAO) FindByIds(pks string) (*[]model.CmsContent, error)
@title 函数名称: FindByIds @description : 根据主键ContentId 查询多条记录; FindByIds("1,36,39")
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: pks string @return 返回参数名: *[]model.CmsContent,error
func (*CmsContentDAO) FindByQueryParam ¶
func (daoInst *CmsContentDAO) FindByQueryParam(param *dto.CmsContentQueryParam) (*[]model.CmsContent, error)
@title 函数名称: FindByQueryParam @description : 查询符合条件的记录!queryParam通用条件分页
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: param *dto.CmsContentQueryParam @return 返回参数名: *[]model.CmsContent,error
func (*CmsContentDAO) Insert ¶
func (daoInst *CmsContentDAO) Insert(entity *model.CmsContent) (int32, error)
@title 函数名称: Insert @description : 新增记录 @auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: entity *model.CmsContent @return 返回参数名: int32,error
func (*CmsContentDAO) Save ¶
func (daoInst *CmsContentDAO) Save(entity *model.CmsContent) (int32, error)
@title 函数名称: Save @description : 保存记录
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: entity *model.CmsContent @return 返回参数名: int32,error
func (*CmsContentDAO) Update ¶
func (daoInst *CmsContentDAO) Update(entity *model.CmsContent) (int32, error)
@title 函数名称: Update @description : 修改记录
@auth 作者: leijianming 时间: 2021-10-23 12:25:16 @param 输入参数名: entity *model.CmsContent @return 返回参数名: int32,error
func (*CmsContentDAO) UpdateNotNullProps ¶
func (daoInst *CmsContentDAO) UpdateNotNullProps(entity *model.CmsContent) (*model.CmsContent, error)