pizza

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conf      dto.AppConf
	PizzaConf dto.PizzaConf
}

func (*Client) GetAppointment

func (p *Client) GetAppointment(workcode string) (dto.AppointmentItemRes, error)

GetAppointment 任命信息

func (*Client) GetChangePromotionList

func (p *Client) GetChangePromotionList(input dto.PizzaInput) (dto.PromotionTrackRecordRes, error)

GetChangePromotionList 显示在人才手机端的 晋升足迹

func (*Client) GetDeptList

func (p *Client) GetDeptList(input dto.DeptListInput) (dto.DeptListRes, error)

GetDeptList 获取部门信息 (不支持分页)

func (*Client) GetDeptListWithPage

func (p *Client) GetDeptListWithPage(input dto.DeptListInputWithPage) (dto.DeptListWithPageRes, error)

GetDeptListWithPage 获取部门信息 (支持分页)

func (*Client) GetEduList

func (p *Client) GetEduList(input dto.PizzaInput) (dto.EduItemRes, error)

GetEduList 员工的教育列表

func (*Client) GetEmployeeInfo

func (p *Client) GetEmployeeInfo(workcode string) (dto.EmployeeInfoRes, error)

GetEmployeeInfo 获取个人信息

Example

Output:

func (*Client) GetEmployeeList

func (p *Client) GetEmployeeList(input dto.EmployeeListInput) (dto.EmployeeListRes, error)

GetEmployeeList 获取人员列表 (不支持分页)

func (*Client) GetEmployeeListV2

func (p *Client) GetEmployeeListV2(input dto.EmployeeListV2Input) (dto.EmployeeListRes, error)

GetEmployeeListV2 获取人员列表 (不支持分页)

func (*Client) GetEmployeeListWithPage

func (p *Client) GetEmployeeListWithPage(input dto.EmployeeListInputWithPage) (dto.EmployeeListWithPageRes, error)

GetEmployeeListWithPage 获取人员列表 (支持分页)

func (*Client) GetEmployeeListWithPageV2

func (p *Client) GetEmployeeListWithPageV2(input dto.EmployeeListV2InputWithPage) (dto.EmployeeListWithPageRes, error)

GetEmployeeListWithPageV2 获取人员列表 (支持分页)

func (*Client) GetExps

func (p *Client) GetExps(input dto.PizzaInput) (dto.ExpItemRes, error)

GetExps 入司前履历

func (*Client) GetKpiList

func (p *Client) GetKpiList(workcode string) (dto.KpiListRes, error)

GetKpiList 员工的绩效列表

func (*Client) GetProjectList

func (p *Client) GetProjectList(viewerWorkcode string, viewedWorkcode string) (dto.ProjectListRes, error)

GetProjectList 获取项目列表

func (*Client) GetRewardList

func (p *Client) GetRewardList(workcode string, input dto.RewardInput) (dto.RewardListRes, error)

GetRewardList 获取员工奖惩信息

func (*Client) GetTalExperienceRecords

func (p *Client) GetTalExperienceRecords(workcode string) (dto.ExperienceRecordRes, error)

GetTalExperienceRecords 入司后履历 人才 PC端履历

func (*Client) GetTalRecords

func (p *Client) GetTalRecords(input dto.PizzaInput) (dto.TalRecordsRes, error)

GetTalRecords 入司后履历

func (*Client) SyncEsChangeData

func (p *Client) SyncEsChangeData() (dto.PizzaResponse, error)

SyncEsChangeData 同步工作数据到es

func (*Client) SyncEsEduData

func (p *Client) SyncEsEduData() (dto.PizzaResponse, error)

SyncEsEduData 同步教育信息到es

func (*Client) SyncEsEmployeeData

func (p *Client) SyncEsEmployeeData() (dto.PizzaResponse, error)

SyncEsEmployeeData 同步用户信息到es

func (*Client) SyncEsExpData

func (p *Client) SyncEsExpData() (dto.PizzaResponse, error)

SyncEsExpData 同步 experience_list 表数据到 es

func (*Client) SyncEsKpiData

func (p *Client) SyncEsKpiData() (dto.PizzaResponse, error)

SyncEsKpiData 同步kpi信息到es

func (*Client) SyncEsRewardsData

func (p *Client) SyncEsRewardsData() (dto.PizzaResponse, error)

SyncEsRewardsData 同步用户奖惩信息到es

type PizzaInterface

type PizzaInterface interface {
	GetEmployeeInfo(workcode string) (dto.EmployeeInfoRes, error)                                         //GetEmployeeInfo 获取个人信息
	GetEmployeeList(input dto.EmployeeListInput) (dto.EmployeeListRes, error)                             //GetEmployeeList 获取人员列表  (不支持分页)
	GetEmployeeListWithPage(input dto.EmployeeListInputWithPage) (dto.EmployeeListWithPageRes, error)     //GetEmployeeListWithPage  获取人员列表  (支持分页)
	GetEmployeeListV2(input dto.EmployeeListV2Input) (dto.EmployeeListRes, error)                         //GetEmployeeListV2 获取人员列表  (不支持分页)
	GetEmployeeListWithPageV2(input dto.EmployeeListV2InputWithPage) (dto.EmployeeListWithPageRes, error) //GetEmployeeListWithPageV2  获取人员列表  (支持分页)
	GetAppointment(workcode string) (dto.AppointmentItemRes, error)                                       //GetAppointment 任命信息
	GetTalExperienceRecords(workcode string) (dto.ExperienceRecordRes, error)                             //GetTalExperienceRecords 入司后履历  人才 PC端履历
	GetTalRecords(input dto.PizzaInput) (dto.TalRecordsRes, error)                                        //GetTalRecords 入司后履历
	GetExps(input dto.PizzaInput) (dto.ExpItemRes, error)                                                 //GetExps  入司前履历
	GetChangePromotionList(input dto.PizzaInput) (dto.PromotionTrackRecordRes, error)                     //GetChangePromotionList 显示在人才手机端的 晋升足迹
	GetEduList(input dto.PizzaInput) (dto.EduItemRes, error)                                              //GetEduList 员工的教育列表
	GetKpiList(workcode string) (dto.KpiListRes, error)                                                   //GetKpiList 员工的绩效列表
	GetRewardList(workcode string, input dto.RewardInput) (dto.RewardListRes, error)                      //GetRewardList 获取员工奖惩信息
	GetDeptList(input dto.DeptListInput) (dto.DeptListRes, error)                                         //GetDeptList 获取部门信息 (不支持分页)
	GetDeptListWithPage(input dto.DeptListInputWithPage) (dto.DeptListWithPageRes, error)                 //GetDeptListWithPage 获取部门信息 (支持分页)
	GetProjectList(viewerWorkcode string, viewedWorkcode string) (dto.ProjectListRes, error)              //GetProjectList 获取项目列表

	SyncEsChangeData() (dto.PizzaResponse, error)   //SyncEsChangeData 同步工作数据到es
	SyncEsExpData() (dto.PizzaResponse, error)      //SyncEsExpData 同步 experience_list 表数据到 es
	SyncEsEduData() (dto.PizzaResponse, error)      //SyncEsEduData 同步教育信息到es
	SyncEsEmployeeData() (dto.PizzaResponse, error) //SyncEsEmployeeData 同步用户信息到es
	SyncEsRewardsData() (dto.PizzaResponse, error)  //SyncEsRewardsData 同步用户奖惩信息到es
	SyncEsKpiData() (dto.PizzaResponse, error)      //SyncEsKpiData 同步用户奖惩信息到es
}

PizzaInterface pizza

func NewPizzaClient

func NewPizzaClient(conf dto.AppConf, pizzaConf dto.PizzaConf) PizzaInterface

Jump to

Keyboard shortcuts

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