BaseExpress.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * author: songtao<375177628@qq.com>
  4. * Date: 2020/09/21
  5. */
  6. namespace crmeb\basic;
  7. use crmeb\services\AccessTokenServeService;
  8. use crmeb\services\HttpService;
  9. use think\exception\ValidateException;
  10. use think\facade\Config;
  11. use crmeb\services\CacheService;
  12. /**
  13. * Class BaseExpress
  14. * @package crmeb\basic
  15. */
  16. abstract class BaseExpress extends BaseStorage
  17. {
  18. /**
  19. * access_token
  20. * @var null
  21. */
  22. protected $accessToken = NULL;
  23. public function __construct(string $name, AccessTokenServeService $accessTokenServeService, string $configFile)
  24. {
  25. $this->accessToken = $accessTokenServeService;
  26. }
  27. /**
  28. * 놓迦뺏
  29. * @param array $config
  30. * @return mixed|void
  31. */
  32. protected function initialize(array $config = [])
  33. {
  34. // parent::initialize($config);
  35. }
  36. /**
  37. * 역繫륩蛟
  38. * @return mixed
  39. */
  40. abstract public function open();
  41. /**膠직瀏吏
  42. * @return mixed
  43. */
  44. abstract public function query($com, $num);
  45. /**든綾충데
  46. * @return mixed
  47. */
  48. abstract public function dump($data);
  49. /**우뒵무鱇
  50. * @return mixed
  51. */
  52. //abstract public function express($type, $page, $limit);
  53. /**충데친겼
  54. * @return mixed
  55. */
  56. abstract public function temp($com, $page, $limit);
  57. }