Documentation ¶
Index ¶
- Variables
- type CmsContentService
- func (serviceInst *CmsContentService) Count(param *dto.CmsContentQueryParam) (result *basedto.JsonResult)
- func (serviceInst *CmsContentService) DeleteById(ContentId int32) *basedto.JsonResult
- func (serviceInst *CmsContentService) Demo()
- func (serviceInst *CmsContentService) FindById(ContentId int32) *dto.CmsContentJsonResult
- func (serviceInst *CmsContentService) FindByIds(pks string) *dto.CmsContentPageResult
- func (serviceInst *CmsContentService) Query(param *dto.CmsContentQueryParam) *dto.CmsContentPageResult
- func (serviceInst *CmsContentService) Save(entity *model.CmsContent) *basedto.JsonResult
- func (serviceInst *CmsContentService) UpdateNotNullProps(entity *model.CmsContent) *basedto.JsonResult
Constants ¶
This section is empty.
Variables ¶
var InstCmsContentService inter.CmsContentInterface = new(CmsContentService)
SERVICE层服务实例变量
Functions ¶
This section is empty.
Types ¶
type CmsContentService ¶
type CmsContentService struct {
InstCmsContentDAO dao.CmsContentDAO
}
SERVICE层服务结构体
func (*CmsContentService) Count ¶
func (serviceInst *CmsContentService) Count(param *dto.CmsContentQueryParam) (result *basedto.JsonResult)
@title 函数名称 : Count @description : 通用查询计数 @auth 作者 : leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: param * dto.CmsContentQueryParam @return 返回参数名: * dto.CmsContentJsonResult
func (*CmsContentService) DeleteById ¶
func (serviceInst *CmsContentService) DeleteById(ContentId int32) *basedto.JsonResult
@title 函数名称: DeleteById @description : 根据主键软删除。 @auth 作者 : leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: ContentId int32 @return 返回参数名: *basedto.JsonResult
func (*CmsContentService) Demo ¶
func (serviceInst *CmsContentService) Demo()
@title 函数名称: Demo @description : 代码示例 @auth 作者 : leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: 无 @return 返回参数名: 无
func (*CmsContentService) FindById ¶
func (serviceInst *CmsContentService) FindById(ContentId int32) *dto.CmsContentJsonResult
@title 函数名称: FindById(ContentId int32) @description : 根据主键查询记录 @auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名:ContentId int32 @return 返回参数名:*dto.CmsContentJsonResult
func (*CmsContentService) FindByIds ¶
func (serviceInst *CmsContentService) FindByIds(pks string) *dto.CmsContentPageResult
@title 函数名称: FindByIds(pks string) @description :
根据主键ContentId 查询多条记录 例子: FindByIds("1,36,39")
@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名:ContentId int32 @return 返回参数名:*dto.CmsContentJsonResult
func (*CmsContentService) Query ¶
func (serviceInst *CmsContentService) Query(param *dto.CmsContentQueryParam) *dto.CmsContentPageResult
@title 函数名称: Query @description : 通用查询 @auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: param * dto.CmsContentQueryParam @return 返回参数名: * dto.CmsContentPageResult
func (*CmsContentService) Save ¶
func (serviceInst *CmsContentService) Save(entity *model.CmsContent) *basedto.JsonResult
@title 函数名称: Save @description : 主键%s为nil,0新增; !=nil修改。 @auth 作者 : leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: entity *model.CmsContent @return 返回参数名: *basedto.JsonResult
func (*CmsContentService) UpdateNotNullProps ¶
func (serviceInst *CmsContentService) UpdateNotNullProps(entity *model.CmsContent) *basedto.JsonResult
@title 函数名称: UpdateNotNullProps @description : 更新非空字段 @auth 作者 : leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: entity *model.CmsContent @return 返回参数名: *basedto.JsonResult