123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.attendance.record.upload request
- *
- * @author auto create
- * @since 1.0, 2020.06.04
- */
- class OapiAttendanceRecordUploadRequest
- {
- /**
- * 设备唯一标识
- **/
- private $deviceId;
-
- /**
- * 打卡设备名称
- **/
- private $deviceName;
-
- /**
- * 打卡备注图片地址,必须是公网可访问的地址
- **/
- private $photoUrl;
-
- /**
- * 员工打卡的时间
- **/
- private $userCheckTime;
-
- /**
- * 员工id
- **/
- private $userid;
-
- private $apiParas = array();
-
- public function setDeviceId($deviceId)
- {
- $this->deviceId = $deviceId;
- $this->apiParas["device_id"] = $deviceId;
- }
- public function getDeviceId()
- {
- return $this->deviceId;
- }
- public function setDeviceName($deviceName)
- {
- $this->deviceName = $deviceName;
- $this->apiParas["device_name"] = $deviceName;
- }
- public function getDeviceName()
- {
- return $this->deviceName;
- }
- public function setPhotoUrl($photoUrl)
- {
- $this->photoUrl = $photoUrl;
- $this->apiParas["photo_url"] = $photoUrl;
- }
- public function getPhotoUrl()
- {
- return $this->photoUrl;
- }
- public function setUserCheckTime($userCheckTime)
- {
- $this->userCheckTime = $userCheckTime;
- $this->apiParas["user_check_time"] = $userCheckTime;
- }
- public function getUserCheckTime()
- {
- return $this->userCheckTime;
- }
- public function setUserid($userid)
- {
- $this->userid = $userid;
- $this->apiParas["userid"] = $userid;
- }
- public function getUserid()
- {
- return $this->userid;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.attendance.record.upload";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->deviceId,"deviceId");
- RequestCheckUtil::checkNotNull($this->deviceName,"deviceName");
- RequestCheckUtil::checkNotNull($this->userCheckTime,"userCheckTime");
- RequestCheckUtil::checkNotNull($this->userid,"userid");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|