NoticeController.php 512 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Controllers\Api\v1;
  3. use App\Http\Controllers\Api\webApp;
  4. use App\Models\NoticeModel;
  5. use App\Services\Common\ArticleService;
  6. use App\Services\Common\NoticeService;
  7. /**
  8. * 公告
  9. * Class NoticeController
  10. * @package App\Http\Controllers\Api
  11. */
  12. class NoticeController extends webApp
  13. {
  14. /**
  15. * 详情
  16. */
  17. public function info()
  18. {
  19. $id = request()->post('id', 0);
  20. $info = NoticeModel::getInfo($id);
  21. return message(1010, true, $info);
  22. }
  23. }