From 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4 Mon Sep 17 00:00:00 2001 From: whycrzg <ruanzhigang@whycst.com> Date: 星期二, 23 二月 2021 17:19:23 +0800 Subject: [PATCH] update --- src/main/java/com/fgkj/controller/User_ChartController.java | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fgkj/controller/User_ChartController.java b/src/main/java/com/fgkj/controller/User_ChartController.java index c6b2cb0..236bc79 100644 --- a/src/main/java/com/fgkj/controller/User_ChartController.java +++ b/src/main/java/com/fgkj/controller/User_ChartController.java @@ -10,6 +10,7 @@ import com.fgkj.services.User_ChartService; import com.fgkj.services.User_logService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -23,13 +24,15 @@ import java.util.List; import java.util.Map; +import javax.annotation.Resource; + @RequestMapping("userChart") @RestController -@Api +@Api(tags = "userChart鎺ュ彛TODO") public class User_ChartController{ - @Autowired + @Resource private User_ChartService service; - @Autowired + @Resource private User_logService uservice; // private List<File> file; @@ -55,6 +58,7 @@ //娣诲姞鍥炬爣 @PostMapping("/") + @ApiOperation(notes = "",value="娣诲姞鍥炬爣") public ServiceModel add(@RequestBody User_Chart uchart,@RequestBody List<File> file,List<String> filetype){ suitFiles(file,filetype,uchart); ServiceModel model =service.add(uchart); @@ -70,6 +74,7 @@ //淇敼鍥炬爣淇℃伅 @PutMapping("/") + @ApiOperation(notes = "",value="淇敼鍥炬爣淇℃伅") public ServiceModel update(@RequestBody User_Chart uchart,@RequestBody List<File>file,@RequestBody List<String>filetype){ suitFiles(file,filetype,uchart); //璁剧疆瀵硅薄鐨勫睘鎬у�� ServiceModel model =service.update(uchart); @@ -83,6 +88,7 @@ } //鍒犻櫎鍥炬爣 @DeleteMapping("/") + @ApiOperation(notes = "",value="鍒犻櫎鍥炬爣") public ServiceModel del(@RequestBody User_Chart uchart){ ServiceModel model =service.del(uchart); { @@ -96,6 +102,7 @@ //鏌ヨ鎵�鏈夊浘鏍� @GetMapping("all") + @ApiOperation(notes = "",value="鏌ヨ鎵�鏈夊浘鏍�") public ServiceModel searchAll(){ ServiceModel model =service.searchAll(); @@ -104,6 +111,7 @@ //鏍规嵁鐢ㄦ埛id鏌ュ浘琛� @GetMapping("byCondition") + @ApiOperation(notes = "",value="鐢ㄦ埛id鏌ュ浘琛�") public ServiceModel serchByCondition(@RequestBody User_inf uinf){ ServiceModel model =service.serchByCondition(uinf); @@ -112,6 +120,7 @@ //鏍规嵁chartfile鍜屽垪鍚嶆煡鍏蜂綋鐨勫浘鐗� @GetMapping("byInfo") + @ApiOperation(notes = "",value="chartfile鍜屽垪鍚嶆煡鍏蜂綋鐨勫浘鐗�") public void serchByInfo(@RequestBody User_Chart uc){ //System.out.println(json); InputStream is = null; -- Gitblit v1.9.1