diff --git a/src/main/java/com/jdc/jdcproject/controller/DicekePrecipitationController.java b/src/main/java/com/jdc/jdcproject/controller/DicekePrecipitationController.java index 5e770fa..9ac5640 100644 --- a/src/main/java/com/jdc/jdcproject/controller/DicekePrecipitationController.java +++ b/src/main/java/com/jdc/jdcproject/controller/DicekePrecipitationController.java @@ -1,8 +1,13 @@ package com.jdc.jdcproject.controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RestController; +import com.jdc.jdcproject.entity.DicekePrecipitation; +import com.jdc.jdcproject.service.IDicekePrecipitationService; +import com.jdc.jdcproject.utils.Result; +import io.swagger.v3.oas.annotations.Operation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; /** *
@@ -16,4 +21,49 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/dicekePrecipitation")
public class DicekePrecipitationController {
+ @Autowired
+ private IDicekePrecipitationService dicekePrecipitationService;
+
+
+ @Operation(summary = "查询所有降水量信息")
+ @GetMapping("findAllPrecipitation")
+ public Result findAllPrecipitation() {
+ List