From fad1b886464f52e88dd9b99a62b9cd89fd5bb8c2 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期二, 13 五月 2025 09:33:22 +0800
Subject: [PATCH] 用户端统计分析接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/StaticsController.java |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/StaticsController.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/StaticsController.java
index 8bde110..bcd311a 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/StaticsController.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/StaticsController.java
@@ -1,11 +1,25 @@
 package com.panzhihua.sangeshenbian.controller;
 
+import com.beust.jcommander.internal.Lists;
+import com.panzhihua.common.controller.BaseController;
+import com.panzhihua.common.exceptions.ServiceException;
+import com.panzhihua.common.model.vos.LoginUserInfoVO;
+import com.panzhihua.common.model.vos.R;
+import com.panzhihua.sangeshenbian.model.entity.ComAct;
+import com.panzhihua.sangeshenbian.model.vo.RegionVO;
+import com.panzhihua.sangeshenbian.service.IdentityInformationService;
 import com.panzhihua.sangeshenbian.service.impl.StaticsService;
+import com.panzhihua.sangeshenbian.warpper.IdentityInformation;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import lombok.RequiredArgsConstructor;
 import org.springframework.context.annotation.Lazy;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author mitao
@@ -15,7 +29,15 @@
 @RestController
 @RequestMapping("/applet/statics")
 @RequiredArgsConstructor(onConstructor_ = {@Lazy})
-public class StaticsController {
+public class StaticsController extends BaseController {
     private final StaticsService staticsService;
+    private final IdentityInformationService identityInformationService;
 
+    @GetMapping("/region-tree")
+    @ApiOperation("获取区域树")
+    public R<List<RegionVO>> regionTree() {
+        LoginUserInfoVO loginUserInfo = getLoginUserInfo();
+        return R.ok(staticsService.queryRegionTree(loginUserInfo));
+
+    }
 }

--
Gitblit v1.7.1