+ * [详细描述,可选] + *
+ * + * @author LiDongYU + * @since 2025/7/22 + */ +@Data +public class PersonInfo { + private int total; + private int current; + private int death; + private int injured; +} diff --git a/src/main/java/com/hivekion/statistic/bean/StatisticBean.java b/src/main/java/com/hivekion/statistic/bean/StatisticBean.java new file mode 100644 index 0000000..30373cf --- /dev/null +++ b/src/main/java/com/hivekion/statistic/bean/StatisticBean.java @@ -0,0 +1,18 @@ +package com.hivekion.statistic.bean; + +import lombok.Data; + +/** + * [类的简要说明] + *
+ * [详细描述,可选] + *
+ * + * @author LiDongYU + * @since 2025/7/22 + */ +@Data +public class StatisticBean { + private TeamInfo team = new TeamInfo(); + private PersonInfo person = new PersonInfo(); +} diff --git a/src/main/java/com/hivekion/statistic/bean/TeamInfo.java b/src/main/java/com/hivekion/statistic/bean/TeamInfo.java new file mode 100644 index 0000000..af46583 --- /dev/null +++ b/src/main/java/com/hivekion/statistic/bean/TeamInfo.java @@ -0,0 +1,21 @@ +package com.hivekion.statistic.bean; + +import lombok.Data; + +/** + * [类的简要说明] + *
+ * [详细描述,可选] + *
+ * + * @author LiDongYU + * @since 2025/7/22 + */ +@Data +public class TeamInfo { + + private String teamName; + private int type = 0; + private String lng; + private String lat; +} diff --git a/src/main/java/com/hivekion/statistic/controller/StatisticController.java b/src/main/java/com/hivekion/statistic/controller/StatisticController.java new file mode 100644 index 0000000..5567d8e --- /dev/null +++ b/src/main/java/com/hivekion/statistic/controller/StatisticController.java @@ -0,0 +1,27 @@ +package com.hivekion.statistic.controller; + +import com.hivekion.common.entity.ResponseData; +import com.hivekion.statistic.bean.StatisticBean; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * [类的简要说明] + *
+ * [详细描述,可选] + *
+ *
+ * @author LiDongYU
+ * @since 2025/7/22
+ */
+@RestController
+@RequestMapping("/statistic")
+public class StatisticController {
+ @GetMapping("/info")
+ //todo
+ public ResponseData