SysConfigController.php 1.4 KB

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