Module.php 575 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\utils\Service\Tencent;
  3. class Module
  4. {
  5. protected $message = '';
  6. protected $data = [];
  7. protected function success($message = '', $data = [])
  8. {
  9. $this->message = $message;
  10. $this->data = $data;
  11. return true;
  12. }
  13. protected function error($message = '', $data = [])
  14. {
  15. $this->message = $message;
  16. $this->data = $data;
  17. return false;
  18. }
  19. public function getMessage()
  20. {
  21. return $this->message;
  22. }
  23. public function getData()
  24. {
  25. return $this->data;
  26. }
  27. }