service

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 TableName1Service

type TableName1Service struct {
	InstTableName1DAO dao.TableName1DAO
}

SERVICE层服务结构体

func (*TableName1Service) Count

func (serviceInst *TableName1Service) Count(param *dto.TableName1QueryParam) (result *basedto.JsonResult)

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

func (*TableName1Service) DeleteById

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

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

func (*TableName1Service) Demo

func (serviceInst *TableName1Service) Demo()

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

func (*TableName1Service) FindById

func (serviceInst *TableName1Service) FindById(Id int64) *dto.TableName1JsonResult

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

func (*TableName1Service) FindByIds

func (serviceInst *TableName1Service) FindByIds(pks string) *dto.TableName1PageResult

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

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

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

func (*TableName1Service) Query

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

func (*TableName1Service) Save

func (serviceInst *TableName1Service) Save(entity *model.TableName1) *basedto.JsonResult

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

func (*TableName1Service) UpdateNotNullProps

func (serviceInst *TableName1Service) UpdateNotNullProps(entity *model.TableName1) *basedto.JsonResult

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

Jump to

Keyboard shortcuts

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