Login.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\controller;
  4. use app\admin\common\YouZan;
  5. use think\Request;
  6. class Login
  7. {
  8. /**
  9. * 显示资源列表
  10. *
  11. * @return \think\Response
  12. */
  13. public function index()
  14. {
  15. $youzan=new YouZan();
  16. $params =[
  17. "order_by"=>"goods_count=>asc",
  18. "create_type"=>0,
  19. "page_no"=>10,
  20. "keyword"=>"",
  21. "page_size"=>20
  22. ];
  23. return $youzan->GetData("youzan.itemcategories.taglist.search",$params );
  24. }
  25. /**
  26. * 显示创建资源表单页.
  27. *
  28. * @return \think\Response
  29. */
  30. public function create()
  31. {
  32. //
  33. }
  34. /**
  35. * 保存新建的资源
  36. *
  37. * @param \think\Request $request
  38. * @return \think\Response
  39. */
  40. public function save(Request $request)
  41. {
  42. //
  43. }
  44. /**
  45. * 显示指定的资源
  46. *
  47. * @param int $id
  48. * @return \think\Response
  49. */
  50. public function read($id)
  51. {
  52. //
  53. }
  54. /**
  55. * 显示编辑资源表单页.
  56. *
  57. * @param int $id
  58. * @return \think\Response
  59. */
  60. public function edit($id)
  61. {
  62. //
  63. }
  64. /**
  65. * 保存更新的资源
  66. *
  67. * @param \think\Request $request
  68. * @param int $id
  69. * @return \think\Response
  70. */
  71. public function update(Request $request, $id)
  72. {
  73. //
  74. }
  75. /**
  76. * 删除指定资源
  77. *
  78. * @param int $id
  79. * @return \think\Response
  80. */
  81. public function delete($id)
  82. {
  83. //
  84. }
  85. }