Documentation ¶
Index ¶
- Variables
- type EmployeeService
- func (this *EmployeeService) Count(param *page.PageRequest) (int, error)
- func (this *EmployeeService) DeleteById(Id int32) *basedto.IchubResult
- func (this *EmployeeService) FindById(Id int32) *basedto.IchubResult
- func (this *EmployeeService) FindByIds(pks string) *page.PageResult
- func (this *EmployeeService) FindData(result *basedto.IchubResult) *model.Employee
- func (this *EmployeeService) FindDataList(result *page.PageResult) *[]model.Employee
- func (this *EmployeeService) Query(param *page.PageRequest) *page.PageResult
- func (this *EmployeeService) Save(entity *model.Employee) *basedto.IchubResult
- func (this *EmployeeService) UpdateNotNull(Id int32, entity map[string]interface{}) *basedto.IchubResult
Constants ¶
This section is empty.
Variables ¶
var InstEmployeeService = new(EmployeeService)
SERVICE层服务实例变量
Functions ¶
This section is empty.
Types ¶
type EmployeeService ¶
type EmployeeService struct {
Dao dao.EmployeeDAO
}
SERVICE层服务结构体
func (*EmployeeService) Count ¶
func (this *EmployeeService) Count(param *page.PageRequest) (int, error)
func (*EmployeeService) DeleteById ¶
func (this *EmployeeService) DeleteById(Id int32) *basedto.IchubResult
@title 函数名称: DeleteById @description : 根据主键软删除。 @auth 作者 : leijianming@163.com 时间: 2024-03-26 19:12:42 @param 输入参数名: Id int32 @return 返回参数名: *basedto.IchubResult
func (*EmployeeService) FindById ¶
func (this *EmployeeService) FindById(Id int32) *basedto.IchubResult
@title 函数名称: FindById(Id int32) @description : 根据主键查询记录 @auth 作者: leijianming@163.com 时间: 2024-03-26 19:12:42 @param 输入参数名:Id int32 @return 返回参数名:*basedto.IchubResult
func (*EmployeeService) FindByIds ¶
func (this *EmployeeService) FindByIds(pks string) *page.PageResult
@title 函数名称: FindByIds(pks string) @description :
根据主键Id 查询多条记录 例子: FindByIds("1,36,39")
@auth 作者: leijianming@163.com 时间: 2024-03-26 19:12:42 @param 输入参数名:Id int32 @return 返回参数名:*page.PageResult
func (*EmployeeService) FindData ¶
func (this *EmployeeService) FindData(result *basedto.IchubResult) *model.Employee
func (*EmployeeService) FindDataList ¶
func (this *EmployeeService) FindDataList(result *page.PageResult) *[]model.Employee
func (*EmployeeService) Query ¶
func (this *EmployeeService) Query(param *page.PageRequest) *page.PageResult
@title 函数名称: Query @description : 通用查询 @auth 作者: leijianming@163.com时间: 2024-03-26 12:46:24 @param 输入参数名: param * page.PageRequest @return 返回参数名: * page.PageResult
func (*EmployeeService) Save ¶
func (this *EmployeeService) Save(entity *model.Employee) *basedto.IchubResult
@title 函数名称: Save @description : 主键%s为nil,0新增; !=nil修改。 @auth 作者 : leijianming@163.com 时间: 2024-03-26 19:12:42 @param 输入参数名: entity *model.Employee @return 返回参数名: *basedto.IchubResult
func (*EmployeeService) UpdateNotNull ¶
func (this *EmployeeService) UpdateNotNull(Id int32, entity map[string]interface{}) *basedto.IchubResult
@title 函数名称: UpdateNotNull @description : 更新非空字段 @auth 作者 : leijianming@163.com 时间: 2024-03-26 19:12:42 @param 输入参数名: entity *model.Employee @return 返回参数名: *basedto.IchubResult