NoticeController.php 701 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Http\Controllers\Api\v1;
  3. use App\Http\Controllers\Api\webApp;
  4. use App\Services\Common\NoticeService;
  5. /**
  6. * 公告
  7. * Class NoticeController
  8. * @package App\Http\Controllers\Api
  9. */
  10. class NoticeController extends webApp
  11. {
  12. /**
  13. * 构造函数
  14. * @author laravel开发员
  15. * @since 2020/11/11
  16. * NoticeController constructor.
  17. */
  18. public function __construct()
  19. {
  20. parent::__construct();
  21. $this->service = new NoticeService();
  22. }
  23. /**
  24. * 详情
  25. */
  26. public function info()
  27. {
  28. $id = request()->post('id', 0);
  29. $info = $this->service->getInfo($id);
  30. return message(1010, true, $info);
  31. }
  32. }