| | |
| | | package com.fgkj.controller; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import com.fgkj.util.*; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import sun.misc.BASE64Decoder; |
| | | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.User_Chart; |
| | | import com.fgkj.services.User_ChartService; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.mysql.fabric.xmlrpc.base.Array; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import sun.misc.BASE64Decoder; |
| | | |
| | | import java.io.*; |
| | | import java.util.*; |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("chart") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "chart接口") |
| | | public class ChartController{ |
| | | |
| | | private static Map<String,String> fileUtil = new HashMap<String, String>(){ |
| | |
| | | } |
| | | }; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private User_ChartService service; |
| | | |
| | | // private List<File> files; |
| | |
| | | } |
| | | |
| | | @PutMapping("form") |
| | | @ApiOperation(notes = "",value="form") |
| | | public boolean uploadform(@RequestBody User_Chart uchart,@RequestBody List<File> files,@RequestBody List<String> filesFileName){ |
| | | // User_Chart uchart=ActionUtil.getGson().fromJson(json, User_Chart.class); |
| | | boolean res=false; |
| | |
| | | |
| | | //修改班组的logo |
| | | @PutMapping("serverRootLogo") |
| | | @ApiOperation(notes = "",value="修改班组的logo") |
| | | public boolean updateServerRootLogo(HashMap<String,String> s){ |
| | | boolean res=false; |
| | | boolean isSuccess = false; |