esservice

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

SERVICE层服务实例变量

Functions

This section is empty.

Types

type ESTableNameService

type ESTableNameService struct {
	InstTableNameDAO dao.TableNameDAO
}

SERVICE层服务结构体

func (*ESTableNameService) Count

func (serviceInst *ESTableNameService) Count(param *dto.TableNameQueryParam) (result *basedto.JsonResult)

@title 函数名称 : Count @description : 通用查询计数 @auth 作者 : leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名: param * dto.TableNameQueryParam @return 返回参数名: * dto.TableNameJsonResult

func (*ESTableNameService) DeleteById

func (serviceInst *ESTableNameService) DeleteById(Id int64) *basedto.JsonResult

@title 函数名称: DeleteById @description : 根据主键软删除。 @auth 作者 : leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名: Id int64 @return 返回参数名: *basedto.JsonResult

func (*ESTableNameService) Demo

func (serviceInst *ESTableNameService) Demo()

@title 函数名称: Demo @description : 代码示例 @auth 作者 : leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名: 无 @return 返回参数名: 无

func (*ESTableNameService) FindById

func (serviceInst *ESTableNameService) FindById(Id int64) *dto.TableNameJsonResult

@title 函数名称: FindById(Id int64) @description : 根据主键查询记录 @auth 作者: leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名:Id int64 @return 返回参数名:*dto.TableNameJsonResult

func (*ESTableNameService) FindByIds

func (serviceInst *ESTableNameService) FindByIds(pks string) *dto.TableNamePageResult

@title 函数名称: FindByIds(pks string) @description :

根据主键Id  查询多条记录
例子: FindByIds("1,36,39")

@auth 作者: leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名:Id int64 @return 返回参数名:*dto.TableNameJsonResult

func (*ESTableNameService) Query

@title 函数名称: Query @description : 通用查询 @auth 作者: leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名: param * dto.TableNameQueryParam @return 返回参数名: * dto.TableNamePageResult

func (*ESTableNameService) Save

func (serviceInst *ESTableNameService) Save(entity *model.TableName) *basedto.JsonResult

@title 函数名称: Save @description : 主键%s为nil,0新增; !=nil修改。 @auth 作者 : leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名: entity *model.TableName @return 返回参数名: *basedto.JsonResult

func (*ESTableNameService) UpdateNotNullProps

func (serviceInst *ESTableNameService) UpdateNotNullProps(entity *model.TableName) *basedto.JsonResult

@title 函数名称: UpdateNotNullProps @description : 更新非空字段 @auth 作者 : leijianming 时间: 2021-10-23 12:25:18 @param 输入参数名: entity *model.TableName @return 返回参数名: *basedto.JsonResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL