BrowseRecordController.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace App\Http\Controllers\Api\V1\Mentality;
  3. use Illuminate\Http\Request;
  4. use App\Http\Controllers\Api\V1\BaseController;
  5. use App\Facades\BrowseRecordFacade;
  6. class BrowseRecordController extends BaseController
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return \Illuminate\Http\Response
  12. */
  13. public function index()
  14. {
  15. $conditions = [
  16. 'uid' => $this->auth(),
  17. 'column' => request('column')
  18. ];
  19. $fields = ['*'];
  20. $sort = '`id` desc';
  21. $page = request('page', 1);
  22. $limit = request('limit', 20);
  23. return BrowseRecordFacade::getList($conditions, $fields, $sort, $page, $limit);
  24. }
  25. /**
  26. * Store a newly created resource in storage.
  27. *
  28. * @param \Illuminate\Http\Request $request
  29. * @return \Illuminate\Http\Response
  30. */
  31. public function store(Request $request)
  32. {
  33. //
  34. }
  35. /**
  36. * Display the specified resource.
  37. *
  38. * @param int $id
  39. * @return \Illuminate\Http\Response
  40. */
  41. public function show($id)
  42. {
  43. //
  44. }
  45. /**
  46. * Update the specified resource in storage.
  47. *
  48. * @param \Illuminate\Http\Request $request
  49. * @param int $id
  50. * @return \Illuminate\Http\Response
  51. */
  52. public function update(Request $request, $id)
  53. {
  54. //
  55. }
  56. /**
  57. * Remove the specified resource from storage.
  58. *
  59. * @param int $id
  60. * @return \Illuminate\Http\Response
  61. */
  62. public function destroy($id)
  63. {
  64. //
  65. }
  66. }