applyShiftId = $applyShiftId; $this->apiParas["apply_shift_id"] = $applyShiftId; } public function getApplyShiftId() { return $this->applyShiftId; } public function setApplyUserid($applyUserid) { $this->applyUserid = $applyUserid; $this->apiParas["apply_userid"] = $applyUserid; } public function getApplyUserid() { return $this->applyUserid; } public function setApproveId($approveId) { $this->approveId = $approveId; $this->apiParas["approve_id"] = $approveId; } public function getApproveId() { return $this->approveId; } public function setRebackApplyShiftId($rebackApplyShiftId) { $this->rebackApplyShiftId = $rebackApplyShiftId; $this->apiParas["reback_apply_shift_id"] = $rebackApplyShiftId; } public function getRebackApplyShiftId() { return $this->rebackApplyShiftId; } public function setRebackDate($rebackDate) { $this->rebackDate = $rebackDate; $this->apiParas["reback_date"] = $rebackDate; } public function getRebackDate() { return $this->rebackDate; } public function setRebackTargetShiftId($rebackTargetShiftId) { $this->rebackTargetShiftId = $rebackTargetShiftId; $this->apiParas["reback_target_shift_id"] = $rebackTargetShiftId; } public function getRebackTargetShiftId() { return $this->rebackTargetShiftId; } public function setSwitchDate($switchDate) { $this->switchDate = $switchDate; $this->apiParas["switch_date"] = $switchDate; } public function getSwitchDate() { return $this->switchDate; } public function setTargetShiftId($targetShiftId) { $this->targetShiftId = $targetShiftId; $this->apiParas["target_shift_id"] = $targetShiftId; } public function getTargetShiftId() { return $this->targetShiftId; } public function setTargetUserid($targetUserid) { $this->targetUserid = $targetUserid; $this->apiParas["target_userid"] = $targetUserid; } public function getTargetUserid() { return $this->targetUserid; } public function setUserid($userid) { $this->userid = $userid; $this->apiParas["userid"] = $userid; } public function getUserid() { return $this->userid; } public function getApiMethodName() { return "dingtalk.oapi.attendance.approve.schedule.switch"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->applyUserid,"applyUserid"); RequestCheckUtil::checkNotNull($this->approveId,"approveId"); RequestCheckUtil::checkMaxLength($this->approveId,100,"approveId"); RequestCheckUtil::checkNotNull($this->switchDate,"switchDate"); RequestCheckUtil::checkNotNull($this->targetUserid,"targetUserid"); RequestCheckUtil::checkNotNull($this->userid,"userid"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }