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 |   37 ++++++++++++++++++++++++-------------
 1 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/User_ChartController.java b/src/main/java/com/fgkj/controller/User_ChartController.java
index ec508e7..236bc79 100644
--- a/src/main/java/com/fgkj/controller/User_ChartController.java
+++ b/src/main/java/com/fgkj/controller/User_ChartController.java
@@ -1,5 +1,19 @@
 package com.fgkj.controller;
 
+import com.fgkj.util.*;
+
+import com.fgkj.dto.ServiceModel;
+import com.fgkj.dto.User_Chart;
+import com.fgkj.dto.User_inf;
+import com.fgkj.dto.User_log;
+import com.fgkj.mapper.UinfDaoFactory;
+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.*;
+
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
@@ -10,24 +24,15 @@
 import java.util.List;
 import java.util.Map;
 
-import com.fgkj.mapper.UinfDaoFactory;
-import com.fgkj.dto.ServiceModel;
-import com.fgkj.dto.User_Chart;
-import com.fgkj.dto.User_inf;
-import com.fgkj.dto.User_log;
-import com.fgkj.services.User_ChartService;
-import com.fgkj.services.User_logService;
-import io.swagger.annotations.Api;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
+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;
@@ -53,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);
@@ -68,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);
@@ -81,6 +88,7 @@
 	}
 	//鍒犻櫎鍥炬爣
 	@DeleteMapping("/")
+	@ApiOperation(notes = "",value="鍒犻櫎鍥炬爣")
 	public ServiceModel del(@RequestBody User_Chart uchart){
 		ServiceModel model =service.del(uchart);
 		{
@@ -94,6 +102,7 @@
 	
 	//鏌ヨ鎵�鏈夊浘鏍�
 	@GetMapping("all")
+	@ApiOperation(notes = "",value="鏌ヨ鎵�鏈夊浘鏍�")
 	public ServiceModel searchAll(){
 		ServiceModel model =service.searchAll();
 
@@ -102,6 +111,7 @@
 	
 	//鏍规嵁鐢ㄦ埛id鏌ュ浘琛�
 	@GetMapping("byCondition")
+	@ApiOperation(notes = "",value="鐢ㄦ埛id鏌ュ浘琛�")
 	public ServiceModel serchByCondition(@RequestBody User_inf uinf){
 		ServiceModel model =service.serchByCondition(uinf);
 
@@ -110,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