approveId = $approveId; $this->apiParas["approve_id"] = $approveId; } public function getApproveId() { return $this->approveId; } public function setDingtalkApproveId($dingtalkApproveId) { $this->dingtalkApproveId = $dingtalkApproveId; $this->apiParas["dingtalk_approve_id"] = $dingtalkApproveId; } public function getDingtalkApproveId() { return $this->dingtalkApproveId; } public function setSubType($subType) { $this->subType = $subType; $this->apiParas["sub_type"] = $subType; } public function getSubType() { return $this->subType; } public function setTagName($tagName) { $this->tagName = $tagName; $this->apiParas["tag_name"] = $tagName; } public function getTagName() { return $this->tagName; } 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.cancel"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkMaxLength($this->approveId,100,"approveId"); RequestCheckUtil::checkMaxLength($this->dingtalkApproveId,64,"dingtalkApproveId"); RequestCheckUtil::checkMaxLength($this->subType,20,"subType"); RequestCheckUtil::checkMaxLength($this->tagName,20,"tagName"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }