whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
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.*;
@@ -27,7 +28,7 @@
@RequestMapping("userChart")
@RestController
@Api
@Api(tags = "userChart接口TODO")
public class User_ChartController{
   @Resource
   private User_ChartService service;
@@ -57,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);
@@ -72,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);
@@ -85,6 +88,7 @@
   }
   //删除图标
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="删除图标")
   public ServiceModel del(@RequestBody User_Chart uchart){
      ServiceModel model =service.del(uchart);
      {
@@ -98,6 +102,7 @@
   
   //查询所有图标
   @GetMapping("all")
   @ApiOperation(notes = "",value="查询所有图标")
   public ServiceModel searchAll(){
      ServiceModel model =service.searchAll();
@@ -106,6 +111,7 @@
   
   //根据用户id查图表
   @GetMapping("byCondition")
   @ApiOperation(notes = "",value="用户id查图表")
   public ServiceModel serchByCondition(@RequestBody User_inf uinf){
      ServiceModel model =service.serchByCondition(uinf);
@@ -114,6 +120,7 @@
   //根据chartfile和列名查具体的图片
   @GetMapping("byInfo")
   @ApiOperation(notes = "",value="chartfile和列名查具体的图片")
   public void serchByInfo(@RequestBody User_Chart uc){
      //System.out.println(json);
      InputStream is = null;