From 69bba5061c7be58aa8a16f3fb3756bb58cb7139e Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期三, 19 五月 2021 13:50:55 +0800
Subject: [PATCH] 更新试验接口

---
 src/main/java/com/whyc/controller/ExperimentController.java |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ExperimentController.java b/src/main/java/com/whyc/controller/ExperimentController.java
index 759aeee..819fcab 100644
--- a/src/main/java/com/whyc/controller/ExperimentController.java
+++ b/src/main/java/com/whyc/controller/ExperimentController.java
@@ -4,6 +4,8 @@
 import com.whyc.dto.ExperimentConditionDTO;
 import com.whyc.dto.Response;
 import com.whyc.pojo.Experiment;
+import com.whyc.pojo.ExperimentBaseData;
+import com.whyc.pojo.ExperimentBaseDataKZ;
 import com.whyc.service.ExperimentService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -18,6 +20,41 @@
     @Autowired
     private ExperimentService service;
 
+    @GetMapping("experimentId")
+    @ApiOperation(value = "鏌ヨ褰撳墠璇曢獙缂栧彿",notes = "浼犲叆鐨則ype閫夋嫨鍏朵竴:" +
+            "缁曠粍:rz,\n" +
+            "绌鸿浇:kz,\n" +
+            "璐熻浇:fz,\n" +
+            "鍗囨俯:sw,\n" +
+            "瓒呴��:cs,\n" +
+            "绌鸿浇鍙嶇數鍔ㄥ娍:kzfdds,\n" +
+            "鎸姩:zd,\n" +
+            "鑰愬帇:ny,\n" +
+            "杞姩鎯噺:zdgl,\n")
+    public Response getExperimentId(@RequestParam String type){
+        return service.getExperimentId(type);
+    }
+
+    @PostMapping
+    @ApiOperation(value = "鏂板璇曢獙-绌鸿浇")
+    public Response addKZ(@RequestBody Experiment<ExperimentBaseDataKZ> experiment){
+        return service.addKZ(experiment);
+    }
+
+    @GetMapping
+    @ApiOperation(value = "鏌ヨ璇曢獙-绌鸿浇")
+    public Response<Experiment<ExperimentBaseDataKZ>> add(){
+        return null;
+    }
+
+
+
+
+
+
+
+    /*======History======*/
+
     @PostMapping("page")
     @ApiOperation(value = "鏌ヨ鍘嗗彶鍒嗛〉-鏍规嵁鏉′欢绛涢��")
     public Response<PageInfo<Experiment>> getPage(@RequestParam Integer pageNum,

--
Gitblit v1.9.1