OapiSmartdeviceFaceFeatureRequest.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartdevice.face.feature request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.09.04
  7. */
  8. class OapiSmartdeviceFaceFeatureRequest
  9. {
  10. /**
  11. * 算法模型
  12. **/
  13. private $modelType;
  14. /**
  15. * 模型版本
  16. **/
  17. private $modelVersion;
  18. /**
  19. * 用户id列表
  20. **/
  21. private $useridList;
  22. private $apiParas = array();
  23. public function setModelType($modelType)
  24. {
  25. $this->modelType = $modelType;
  26. $this->apiParas["model_type"] = $modelType;
  27. }
  28. public function getModelType()
  29. {
  30. return $this->modelType;
  31. }
  32. public function setModelVersion($modelVersion)
  33. {
  34. $this->modelVersion = $modelVersion;
  35. $this->apiParas["model_version"] = $modelVersion;
  36. }
  37. public function getModelVersion()
  38. {
  39. return $this->modelVersion;
  40. }
  41. public function setUseridList($useridList)
  42. {
  43. $this->useridList = $useridList;
  44. $this->apiParas["userid_list"] = $useridList;
  45. }
  46. public function getUseridList()
  47. {
  48. return $this->useridList;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.smartdevice.face.feature";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->modelType,"modelType");
  61. RequestCheckUtil::checkNotNull($this->modelVersion,"modelVersion");
  62. RequestCheckUtil::checkNotNull($this->useridList,"useridList");
  63. RequestCheckUtil::checkMaxListSize($this->useridList,20,"useridList");
  64. }
  65. public function putOtherTextParam($key, $value) {
  66. $this->apiParas[$key] = $value;
  67. $this->$key = $value;
  68. }
  69. }