SystemLogs.php 741 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @Created by PhpStorm
  4. * @author: Kirin
  5. * @day: 2024/11/20
  6. * @time: 19:58
  7. */
  8. namespace app\controller\admin\system;
  9. use app\common\AdminBaseController;
  10. use app\Request;
  11. use app\services\system\SystemLogServices;
  12. class SystemLogs extends AdminBaseController
  13. {
  14. public function __construct(Request $request, SystemLogServices $service)
  15. {
  16. parent::__construct($request);
  17. $this->service = $service;
  18. }
  19. public function index()
  20. {
  21. $where = $this->request->getMore([
  22. ['time', ''],
  23. ['admin_id', ''],
  24. ['path', ''],
  25. ['ip', ''],
  26. ]);
  27. return $this->success($this->service->getLogList($where, $this->adminInfo['level']));
  28. }
  29. }