CenterController.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeshop100%开源免费商用商城系统
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | 商业版本务必购买商业授权,以免引起法律纠纷
  8. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  9. // | gitee下载:https://gitee.com/likeshop_gitee
  10. // | github下载:https://github.com/likeshop-github
  11. // | 访问官网:https://www.likeshop.cn
  12. // | 访问社区:https://home.likeshop.cn
  13. // | 访问手册:http://doc.likeshop.cn
  14. // | 微信公众号:likeshop技术社区
  15. // | likeshop团队 版权所有 拥有最终解释权
  16. // +----------------------------------------------------------------------
  17. // | author: likeshopTeam
  18. // +----------------------------------------------------------------------
  19. namespace app\adminapi\controller\data;
  20. use app\adminapi\controller\BaseAdminController;
  21. use app\adminapi\logic\data\CenterLogic;
  22. /**
  23. * 数据中心
  24. * Class CenterController
  25. * @package app\adminapi\controller\data
  26. */
  27. class CenterController extends BaseAdminController
  28. {
  29. /**
  30. * @notes 流量分析
  31. * @return \think\response\Json
  32. * @author Tab
  33. * @date 2021/9/27 10:28
  34. */
  35. public function trafficAnalysis()
  36. {
  37. $params = $this->request->get();
  38. $result = CenterLogic::trafficAnalysis($params);
  39. return $this->data($result);
  40. }
  41. /**
  42. * @notes 用户分析
  43. * @return \think\response\Json
  44. * @author Tab
  45. * @date 2021/9/27 11:18
  46. */
  47. public function userAnalysis()
  48. {
  49. $params = $this->request->get();
  50. $result = CenterLogic::userAnalysis($params);
  51. return $this->data($result);
  52. }
  53. /**
  54. * @notes 交易分析
  55. * @return \think\response\Json
  56. * @author Tab
  57. * @date 2021/9/27 15:00
  58. */
  59. public function transactionAnalysis()
  60. {
  61. $params = $this->request->get();
  62. $result = CenterLogic::transactionAnalysis($params);
  63. return $this->data($result);
  64. }
  65. /**
  66. * @notes 商品分析
  67. * @return \think\response\Json
  68. * @author Tab
  69. * @date 2021/9/27 15:34
  70. */
  71. public function goodsAnalysis()
  72. {
  73. $params = $this->request->get();
  74. $result = CenterLogic::goodsAnalysis($params);
  75. return $this->data($result);
  76. }
  77. /**
  78. * @notes 商品排行榜
  79. * @return \think\response\Json
  80. * @author Tab
  81. * @date 2021/9/27 15:48
  82. */
  83. public function goodsTop()
  84. {
  85. $params = $this->request->get();
  86. $result = CenterLogic::goodsTop($params);
  87. return $this->data($result);
  88. }
  89. }