From bf60848c0d97d3f440eee20719010e49bc2aae2d Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期二, 25 三月 2025 11:44:03 +0800
Subject: [PATCH] 站点关联

---
 src/main/java/com/whyc/controller/StationInfController.java |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/whyc/controller/StationInfController.java b/src/main/java/com/whyc/controller/StationInfController.java
index e1a0219..0ad6635 100644
--- a/src/main/java/com/whyc/controller/StationInfController.java
+++ b/src/main/java/com/whyc/controller/StationInfController.java
@@ -1,13 +1,13 @@
 package com.whyc.controller;
 
 import com.whyc.dto.Response;
+import com.whyc.pojo.db_batt.StationInf;
 import com.whyc.service.StationInfService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiModelProperty;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RestController
 @Api(tags = "鏈烘埧绠$悊")
@@ -22,4 +22,11 @@
         Response res=service.getAllSinf();
         return res;
     }
+
+    @ApiModelProperty("鏂板")
+    @PostMapping("add")
+    public Response add(@RequestBody StationInf stationInf){
+        service.add(stationInf);
+        return new Response().setII(1,"鏂板瀹屾垚");
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1