123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.workspace.project.create.v2 request
- *
- * @author auto create
- * @since 1.0, 2022.01.19
- */
- class OapiWorkspaceProjectCreateV2Request
- {
- /**
- * 项目创建人userid
- **/
- private $belongCorpUserid;
-
- /**
- * 是否创建群
- **/
- private $createGroup;
-
- /**
- * 描述,长度256字符以内
- **/
- private $desc;
-
- /**
- * 项目logo media id
- **/
- private $logoMediaId;
-
- /**
- * 组织名,长度3-50个字符以内,不允许中划线、下划线、逗号、空格
- **/
- private $name;
-
- /**
- * 群ID
- **/
- private $openConversationId;
-
- /**
- * sourceid
- **/
- private $outerId;
-
- /**
- * 默认创建项目,可不用入参
- **/
- private $type;
-
- private $apiParas = array();
-
- public function setBelongCorpUserid($belongCorpUserid)
- {
- $this->belongCorpUserid = $belongCorpUserid;
- $this->apiParas["belong_corp_userid"] = $belongCorpUserid;
- }
- public function getBelongCorpUserid()
- {
- return $this->belongCorpUserid;
- }
- public function setCreateGroup($createGroup)
- {
- $this->createGroup = $createGroup;
- $this->apiParas["create_group"] = $createGroup;
- }
- public function getCreateGroup()
- {
- return $this->createGroup;
- }
- public function setDesc($desc)
- {
- $this->desc = $desc;
- $this->apiParas["desc"] = $desc;
- }
- public function getDesc()
- {
- return $this->desc;
- }
- public function setLogoMediaId($logoMediaId)
- {
- $this->logoMediaId = $logoMediaId;
- $this->apiParas["logo_media_id"] = $logoMediaId;
- }
- public function getLogoMediaId()
- {
- return $this->logoMediaId;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOpenConversationId($openConversationId)
- {
- $this->openConversationId = $openConversationId;
- $this->apiParas["open_conversation_id"] = $openConversationId;
- }
- public function getOpenConversationId()
- {
- return $this->openConversationId;
- }
- public function setOuterId($outerId)
- {
- $this->outerId = $outerId;
- $this->apiParas["outer_id"] = $outerId;
- }
- public function getOuterId()
- {
- return $this->outerId;
- }
- public function setType($type)
- {
- $this->type = $type;
- $this->apiParas["type"] = $type;
- }
- public function getType()
- {
- return $this->type;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.workspace.project.create.v2";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->name,"name");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|