dao

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepartmentDAO

type DepartmentDAO struct {
}

const PAGE_SIZE_DEFAULT = 500 const PAGE_SIZE_MAX = 1000

var InstDepartmentDAO DepartmentDAO

func (*DepartmentDAO) CountByQueryParam

func (daoInst *DepartmentDAO) CountByQueryParam(param *dto.DepartmentQueryParam) (int32, error)

@title 函数名称: CountByQueryParam @description : 计算符合条件的记录总数!queryParam通用条件

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: param *dto.DepartmentQueryParam @return 返回参数名: int32, error

func (*DepartmentDAO) DeleteById

func (daoInst *DepartmentDAO) DeleteById(Id int32) error

@title 函数名称: DeleteById @description : 根据主键Id 删除记录

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: Id int32 @return 返回参数名: error

func (*DepartmentDAO) Demo

func (daoInst *DepartmentDAO) Demo()

@title 函数名称: Demo @description : 代码调用示例

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: 无 @return 返回参数名: 无

func (*DepartmentDAO) FindById

func (daoInst *DepartmentDAO) FindById(Id int32) (entity *model.Department, found bool, err error)

@title 函数名称: FindById @description : 根据主键Id 查询记录

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: Id int32 @return 返回参数名: entity *model.Department, found bool, err error

func (*DepartmentDAO) FindByIds

func (daoInst *DepartmentDAO) FindByIds(pks string) (*[]model.Department, error)

@title 函数名称: FindByIds @description : 根据主键Id 查询多条记录; FindByIds("1,36,39")

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: pks string @return 返回参数名: *[]model.Department,error

func (*DepartmentDAO) FindByQueryParam

func (daoInst *DepartmentDAO) FindByQueryParam(param *dto.DepartmentQueryParam) (*[]model.Department, error)

@title 函数名称: FindByQueryParam @description : 查询符合条件的记录!queryParam通用条件分页

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: param *dto.DepartmentQueryParam @return 返回参数名: *[]model.Department,error

func (*DepartmentDAO) Insert

func (daoInst *DepartmentDAO) Insert(entity *model.Department) (int32, error)

@title 函数名称: Insert @description : 新增记录 @auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: entity *model.Department @return 返回参数名: int32,error

func (*DepartmentDAO) Save

func (daoInst *DepartmentDAO) Save(entity *model.Department) (int32, error)

@title 函数名称: Save @description : 保存记录

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: entity *model.Department @return 返回参数名: int32,error

func (*DepartmentDAO) Update

func (daoInst *DepartmentDAO) Update(entity *model.Department) (int32, error)

@title 函数名称: Update @description : 修改记录

@auth 作者: leijianming 时间: 2021-10-23 12:25:17 @param 输入参数名: entity *model.Department @return 返回参数名: int32,error

func (*DepartmentDAO) UpdateNotNullProps

func (daoInst *DepartmentDAO) UpdateNotNullProps(entity *model.Department) (*model.Department, error)

Jump to

Keyboard shortcuts

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