123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.microapp.custom.update request
- *
- * @author auto create
- * @since 1.0, 2020.12.30
- */
- class OapiMicroappCustomUpdateRequest
- {
- /**
- * 定制应用Id
- **/
- private $agentId;
-
- /**
- * 应用所属企业corpId
- **/
- private $appCorpId;
-
- /**
- * 应用描述
- **/
- private $desc;
-
- /**
- * 移动端首页地址
- **/
- private $homepageLink;
-
- /**
- * 微应用图标
- **/
- private $icon;
-
- /**
- * 出口IP白名单
- **/
- private $ipWhiteList;
-
- /**
- * 应用名称
- **/
- private $name;
-
- /**
- * 管理后台地址
- **/
- private $ompLink;
-
- /**
- * PC端首页地址
- **/
- private $pcHomepageLink;
-
- /**
- * 应用所属组织的顶级关联组织corpId
- **/
- private $topRelatedCorpId;
-
- private $apiParas = array();
-
- public function setAgentId($agentId)
- {
- $this->agentId = $agentId;
- $this->apiParas["agent_id"] = $agentId;
- }
- public function getAgentId()
- {
- return $this->agentId;
- }
- public function setAppCorpId($appCorpId)
- {
- $this->appCorpId = $appCorpId;
- $this->apiParas["app_corp_id"] = $appCorpId;
- }
- public function getAppCorpId()
- {
- return $this->appCorpId;
- }
- public function setDesc($desc)
- {
- $this->desc = $desc;
- $this->apiParas["desc"] = $desc;
- }
- public function getDesc()
- {
- return $this->desc;
- }
- public function setHomepageLink($homepageLink)
- {
- $this->homepageLink = $homepageLink;
- $this->apiParas["homepage_link"] = $homepageLink;
- }
- public function getHomepageLink()
- {
- return $this->homepageLink;
- }
- public function setIcon($icon)
- {
- $this->icon = $icon;
- $this->apiParas["icon"] = $icon;
- }
- public function getIcon()
- {
- return $this->icon;
- }
- public function setIpWhiteList($ipWhiteList)
- {
- $this->ipWhiteList = $ipWhiteList;
- $this->apiParas["ip_white_list"] = $ipWhiteList;
- }
- public function getIpWhiteList()
- {
- return $this->ipWhiteList;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOmpLink($ompLink)
- {
- $this->ompLink = $ompLink;
- $this->apiParas["omp_link"] = $ompLink;
- }
- public function getOmpLink()
- {
- return $this->ompLink;
- }
- public function setPcHomepageLink($pcHomepageLink)
- {
- $this->pcHomepageLink = $pcHomepageLink;
- $this->apiParas["pc_homepage_link"] = $pcHomepageLink;
- }
- public function getPcHomepageLink()
- {
- return $this->pcHomepageLink;
- }
- public function setTopRelatedCorpId($topRelatedCorpId)
- {
- $this->topRelatedCorpId = $topRelatedCorpId;
- $this->apiParas["top_related_corp_id"] = $topRelatedCorpId;
- }
- public function getTopRelatedCorpId()
- {
- return $this->topRelatedCorpId;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.microapp.custom.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->agentId,"agentId");
- RequestCheckUtil::checkNotNull($this->appCorpId,"appCorpId");
- RequestCheckUtil::checkNotNull($this->desc,"desc");
- RequestCheckUtil::checkNotNull($this->ipWhiteList,"ipWhiteList");
- RequestCheckUtil::checkNotNull($this->name,"name");
- RequestCheckUtil::checkNotNull($this->topRelatedCorpId,"topRelatedCorpId");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|