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