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. $data =$youzan->GetData("youzan.itemcategories.taglist.search",$params );
  24. return json_encode($data,JSON_UNESCAPED_UNICODE);
  25. }
  26. /**
  27. * 显示创建资源表单页.
  28. *
  29. * @return \think\Response
  30. */
  31. public function create()
  32. {
  33. //
  34. }
  35. /**
  36. * 保存新建的资源
  37. *
  38. * @param \think\Request $request
  39. * @return \think\Response
  40. */
  41. public function save(Request $request)
  42. {
  43. //
  44. }
  45. /**
  46. * 显示指定的资源
  47. *
  48. * @param int $id
  49. * @return \think\Response
  50. */
  51. public function read($id)
  52. {
  53. //
  54. }
  55. /**
  56. * 显示编辑资源表单页.
  57. *
  58. * @param int $id
  59. * @return \think\Response
  60. */
  61. public function edit($id)
  62. {
  63. //
  64. }
  65. /**
  66. * 保存更新的资源
  67. *
  68. * @param \think\Request $request
  69. * @param int $id
  70. * @return \think\Response
  71. */
  72. public function update(Request $request, $id)
  73. {
  74. //
  75. }
  76. /**
  77. * 删除指定资源
  78. *
  79. * @param int $id
  80. * @return \think\Response
  81. */
  82. public function delete($id)
  83. {
  84. //
  85. }
  86. }