eleenterpriseemployee

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

企业订餐员工API model

https://open.taobao.com/API.htm?docId=48679&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest added in v1.2.0

type AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

批量删除员工 API请求 alibaba.ele.enterprise.employee.batchdelete

批量删除员工

func NewAlibabaEleEnterpriseEmployeeBatchdeleteRequest

func NewAlibabaEleEnterpriseEmployeeBatchdeleteRequest() *AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest

初始化AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest对象

func (AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) GetEmployeeNos added in v1.2.0

EmployeeNos Getter

func (*AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) SetEmployeeNos added in v1.2.0

func (r *AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) SetEmployeeNos(_employeeNos []string) error

EmployeeNos Setter 员工工号

type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse

type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponseModel
}

批量删除员工 API返回值 alibaba.ele.enterprise.employee.batchdelete

批量删除员工

type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponseModel added in v1.2.0

type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_employee_batchdelete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值信息
	EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

批量删除员工 成功返回结果

type AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest added in v1.2.0

type AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

批量新增更新员工 API请求 alibaba.ele.enterprise.employee.batchupdate

批量新增更新员工

func NewAlibabaEleEnterpriseEmployeeBatchupdateRequest

func NewAlibabaEleEnterpriseEmployeeBatchupdateRequest() *AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest

初始化AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest对象

func (AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) GetEnterpriseDatas added in v1.2.0

EnterpriseDatas Getter

func (*AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) SetEnterpriseDatas added in v1.2.0

func (r *AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) SetEnterpriseDatas(_enterpriseDatas []EmployeeInfoDto) error

EnterpriseDatas Setter 批量员工信息

type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse

type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseEmployeeBatchupdateAPIResponseModel
}

批量新增更新员工 API返回值 alibaba.ele.enterprise.employee.batchupdate

批量新增更新员工

type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponseModel added in v1.2.0

type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_employee_batchupdate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
	// 返回结果
	EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"`
}

批量新增更新员工 成功返回结果

type CostCenter

type CostCenter struct {
	// 删除成本中心列表
	DeleteItemIds []string `json:"delete_item_ids,omitempty" xml:"delete_item_ids>string,omitempty"`
	// 新增成本中心列表
	AddItemIds []string `json:"add_item_ids,omitempty" xml:"add_item_ids>string,omitempty"`
}

CostCenter

type EmployeeInfoDto

type EmployeeInfoDto struct {
	// 部门
	DeptName string `json:"dept_name,omitempty" xml:"dept_name,omitempty"`
	// 手机号
	PhoneNumber string `json:"phone_number,omitempty" xml:"phone_number,omitempty"`
	// 成本中心
	CostCenter *CostCenter `json:"cost_center,omitempty" xml:"cost_center,omitempty"`
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 工号
	EmployeeNo string `json:"employee_no,omitempty" xml:"employee_no,omitempty"`
}

EmployeeInfoDto

type EnterpriseData

type EnterpriseData struct {
	// 成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 错误信息
	ErrorMsgs []ErrorMsg `json:"error_msgs,omitempty" xml:"error_msgs>error_msg,omitempty"`
}

EnterpriseData

type ErrorMsg

type ErrorMsg struct {
	// 请求报文
	ReqBody string `json:"req_body,omitempty" xml:"req_body,omitempty"`
	// 失败原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
}

ErrorMsg

Jump to

Keyboard shortcuts

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