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