BaseWorkerDataLists.php 620 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\workerapi\lists;
  3. /**
  4. * @author 林海涛
  5. * @date 2024/7/11 下午1:41
  6. */
  7. use app\common\lists\BaseDataLists;
  8. abstract class BaseWorkerDataLists extends BaseDataLists
  9. {
  10. protected array $userInfo = [];
  11. protected int $userId = 0;
  12. public string $export;
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. if (isset($this->request->userInfo) && $this->request->userInfo) {
  17. $this->userInfo = $this->request->userInfo;
  18. $this->userId = $this->request->userId;
  19. }
  20. $this->export = $this->request->get('export', '');
  21. }
  22. }