Commit 36418e25 by 宋珺琪

swagger接口注解

parent 82e9ef77
......@@ -19,6 +19,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.KshCacheService;
import com.founder.servicebase.service.KshService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -41,6 +42,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("KshService")
@Api(tags = "Ksh服务信息")
public class KshServiceController extends ApiController {
/**
* 服务对象
......
......@@ -4,6 +4,7 @@ import com.founder.commonutils.model.newPublicEntity.MapRestResult;
import com.founder.commonutils.util.AesEncryptUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
......@@ -17,6 +18,7 @@ import java.util.*;
*/
@RestController
@RequestMapping("Aes")
@Api(tags = "新增字典AES加密")
public class SkAesController {
/**
......
......@@ -11,6 +11,7 @@ import com.founder.commonutils.util.SpringUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -30,6 +31,7 @@ import java.util.Map;
*/
@RestController
@RequestMapping("dictionary")
@Api(tags = "字典控制层")
public class SkDictionaryController implements ExcelControllerInterface {
@Autowired
private SkDictionaryService service;
......
......@@ -12,6 +12,7 @@ import com.founder.commonutils.util.KeyUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkInterceptorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -30,6 +31,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("skInterceptor")
@Api(tags = "拦截器信息")
public class SkInterceptorController extends ApiController {
/**
* 服务对象
......
......@@ -16,6 +16,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkServiceApplyService;
import com.founder.servicebase.service.SkServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -37,6 +38,7 @@ import java.util.Map;
*/
@RestController
@RequestMapping("skServiceApply")
@Api(tags = "服务授权信息")
public class SkServiceApplyController extends ApiController {
/**
* 服务授权对象
......
......@@ -12,6 +12,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkDictionaryService;
import com.founder.servicebase.service.SkServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -31,6 +32,7 @@ import java.util.Date;
*/
@RestController
@RequestMapping("skService")
@Api(tags = "sk服务信息")
public class SkServiceController extends ApiController {
/**
* 服务对象
......
......@@ -5,6 +5,7 @@ import com.founder.commonutils.model.newPublicEntity.SkSjXxResult;
import com.founder.commonutils.util.PhoneUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
......@@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
*/
@RestController
@RequestMapping("Sjxx")
@Api(tags = "手机信息控制层")
public class SkSjXxController {
@PostMapping("query")
......
......@@ -11,6 +11,7 @@ import com.founder.commonutils.util.KeyUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkTextService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -28,6 +29,7 @@ import java.util.Date;
*/
@RestController
@RequestMapping("skText")
@Api(tags = "演示列表信息")
public class SkTextController extends ApiController {
/**
* 服务对象
......
......@@ -11,6 +11,7 @@ import com.founder.commonutils.util.KeyUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkljServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -28,6 +29,7 @@ import java.util.Date;
*/
@RestController
@RequestMapping("skljService")
@Api(tags = "链接服务信息")
public class SkljServiceController extends ApiController {
/**
* 服务对象
......
......@@ -10,6 +10,7 @@ import com.founder.commonutils.util.*;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -34,6 +35,7 @@ import static com.founder.commonutils.util.AesEncryptUtil.desEncrypt;
*/
@RestController
@RequestMapping("/user")
@Api(tags = "User登录")
public class SysUserController extends ApiController {
/**
* 服务对象
......
......@@ -207,7 +207,8 @@ public class AsjController {
}
@OperLog(message = "点位校验案件信息查询",operation = OperationType.QUERY)
@RequestMapping("/toQueryJwdinfo")
@ApiOperation(value = "点位校验案件信息查询")
@PostMapping("/toQueryJwdinfo")
@ResponseBody
public MapRestResult toQueryJwdinfo(@RequestBody TbAsjJwdinfo tbAsjJwdinfo, HttpServletRequest request) {
//获取request中的用户信息
......@@ -225,7 +226,8 @@ public class AsjController {
}
@OperLog(message = "点位校验案件信息统计",operation = OperationType.QUERY)
@RequestMapping("/toQueryJwdinfoTj")
@ApiOperation(value = "点位校验案件信息统计")
@PostMapping("/toQueryJwdinfoTj")
@ResponseBody
public MapRestResult toQueryJwdinfoTj(@RequestBody TbAsjJwdinfo tbAsjJwdinfo, HttpServletRequest request) {
//获取request中的用户信息
......
......@@ -136,7 +136,7 @@ public class DatabaseController {
@OperLog(message = "统计表",operation = OperationType.QUERY)
@PostMapping("/count")
@ApiOperation(value = "统计表")
public MapRestResult count(String table) throws SQLException {
public MapRestResult count() throws SQLException {
Connection connect = JDBCUtil.getConnection();
Statement stmt =null;
Statement stmt1 =null;
......
......@@ -25,7 +25,7 @@ import java.util.*;
/**
* 可视化算例6个接口
*/
@Api(tags = "可视化算例6个接口")
@Api(tags = "可视化算例7个接口")
@RestController
@RequestMapping("/kshsl")
public class KshSlServiceController {
......
......@@ -36,7 +36,7 @@ import java.util.stream.Collectors;
*/
@RestController
@RequestMapping("/ryaj")
@Api(tags = "查询案件和关联人员接口")
@Api(tags = "智图人案")
public class RyAndAjController {
@Autowired
......
......@@ -2,6 +2,7 @@ package com.founder.publicapi.controller.SkDataDownload;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.core.io.ClassPathResource;
import org.springframework.web.bind.annotation.*;
......@@ -16,6 +17,7 @@ import java.io.*;
*/
@RestController("excelDownload")//防止bean相同报错
@RequestMapping("excel")
@Api(tags = "下载excel模板")
public class ExcelController {
......
......@@ -11,6 +11,7 @@ import com.founder.commonutils.model.vo.param.ServiceListParam;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.ServiceListService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
......@@ -24,6 +25,7 @@ import javax.annotation.Resource;
*/
@RestController
@RequestMapping("serviceList")
@Api(tags = "服务列表信息")
public class ServiceListController extends ApiController {
/**
* 服务对象
......
......@@ -10,6 +10,7 @@ import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRegionalsPersonService;
import com.founder.publicapi.service.SkRegionalsResultService;
import com.founder.publicapi.service.SkTrailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -20,6 +21,7 @@ import org.springframework.web.bind.annotation.*;
*/
@RestController
@RequestMapping("img")
@Api(tags = "删除图片信息")
public class SkImgController {
@Autowired
private SkTrailService skTrailService;
......
......@@ -21,6 +21,7 @@ import com.founder.commonutils.util.SpringUtil;
import com.founder.servicebase.service.SkDictionaryService;
import com.google.common.base.Joiner;
import com.sun.javafx.scene.paint.GradientUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javafx.scene.effect.Light;
import org.apache.commons.lang.StringUtils;
......@@ -38,6 +39,7 @@ import java.util.stream.Collectors;
*/
@RestController
@RequestMapping("pointlocation")
@Api(tags = "点位信息")
public class SkPointlocationController extends ApiController implements ExcelControllerInterface {
/**
* 服务对象
......
......@@ -15,6 +15,7 @@ import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRegionalsDetailService;
import com.founder.commonutils.util.SpringUtil;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -31,6 +32,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("skRegionalsDetail")
@Api(tags = "结果翻译信息")
public class SkRegionalsDetailController extends ApiController implements ExcelControllerInterface {
/**
* 服务对象
......
......@@ -17,6 +17,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRegionalsPersonService;
import com.founder.commonutils.util.SpringUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
......@@ -36,6 +37,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("skRegionalsPerson")
@Api(tags = "人员信息")
public class SkRegionalsPersonController extends ApiController implements ExcelControllerInterface {
/**
* 服务对象
......
......@@ -23,6 +23,7 @@ import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRegionalsResultService;
import com.founder.servicebase.meassage.WebSocketServer;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;
......@@ -48,6 +49,7 @@ import java.util.stream.Collectors;
*/
@RestController
@RequestMapping("skRegionalsResult")
@Api(tags = "结果信息")
public class SkRegionalsResultController extends ApiController implements ExcelControllerInterface {
/**
* 服务对象
......
......@@ -15,6 +15,7 @@ import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRegionalsTaskService;
import com.founder.commonutils.util.SpringUtil;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -35,6 +36,7 @@ import java.util.stream.IntStream;
*/
@RestController
@RequestMapping("skRegionalsTask")
@Api(tags = "任务信息")
public class SkRegionalsTaskController extends ApiController implements ExcelControllerInterface {
/**
* 服务对象
......
......@@ -16,6 +16,7 @@ import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRelatedResultAllService;
import com.founder.commonutils.util.SpringUtil;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -34,6 +35,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("skRelatedResultAll")
@Api(tags = "关联关系信息All")
public class SkRelatedResultAllController extends ApiController implements ExcelControllerInterface {
/**
* 服务对象
......
......@@ -17,6 +17,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkRelatedResultService;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -38,6 +39,7 @@ import java.util.stream.Collectors;
*/
@RestController("skRelatedResultOperation")
@RequestMapping("skRelatedResult")
@Api(tags = "关联关系信息")
public class SkRelatedResultController extends ApiController {
/**
* 服务对象
......
......@@ -7,6 +7,7 @@ import com.founder.commonutils.model.vo.param.SkTrailParam;
import com.founder.commonutils.util.JsonUtils;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
......@@ -20,6 +21,7 @@ import java.io.IOException;
*/
@RestController("SkRxController")
@RequestMapping("rx")
@Api(tags = "以人侦查")
public class SkRxController extends ApiController {
@PostMapping("queryRxbd")
......
......@@ -10,6 +10,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.service.SkDictionaryService;
import com.founder.servicebase.service.SkServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -26,6 +27,7 @@ import javax.annotation.Resource;
*/
@RestController
@RequestMapping("skServiceSq")
@Api(tags = "服务列表")
public class SkServiceSqController {
/**
......
......@@ -18,6 +18,7 @@ import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.publicapi.service.SkTrailService;
import com.founder.servicebase.service.SkDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;
......@@ -39,6 +40,7 @@ import java.util.stream.Collectors;
*/
@RestController("trailOperation")
@RequestMapping("trail")
@Api(tags = "轨迹信息")
public class SkTrailController extends ApiController implements ExcelControllerInterface {
@Value("${imagesUrl}")
......
......@@ -4,6 +4,7 @@ import com.founder.commonutils.model.newPublicEntity.MapRestResult;
import com.founder.servicebase.config.ExcelUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
......@@ -21,6 +22,7 @@ import java.util.Map;
*/
@RestController("excelUpload")
@RequestMapping("excel")
@Api(tags = "导入excel数据")
public class ExcelController {
/**
......
......@@ -8,6 +8,7 @@ import com.founder.publicapi.service.SkRelatedResultService;
import com.founder.commonutils.util.JsonUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
......@@ -22,6 +23,7 @@ import javax.annotation.Resource;
*/
@RestController("skRelatedResultUpload")
@RequestMapping("skRelatedResult")
@Api(tags = "导入关联关系信息上传json文件")
public class SkRelatedResultController extends ApiController {
/**
* 服务对象
......
......@@ -18,7 +18,7 @@ import java.util.ArrayList;
import java.util.List;
@Api(description = "poi检索")
@Api(tags = "poi检索")
@RestController
@RequestMapping("/publicJs")
public class JsController {
......
......@@ -5,6 +5,7 @@ import com.founder.commonutils.model.vo.param.SkGjglajParam;
import com.founder.publicapi.service.SkGjGlAjService;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("skbs")
@Api(tags = "轨迹关联案件")
public class SkGjGlAjController {
@Autowired
......
......@@ -8,6 +8,7 @@ import com.founder.commonutils.model.vo.param.SkTrailParam;
import com.founder.publicapi.service.SkTrailService;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -22,6 +23,7 @@ import java.util.List;
*/
@RestController("trailService")
@RequestMapping("trail")
@Api(tags = "轨迹疑似点")
public class SkTrailController extends ApiController {
@Autowired
......
......@@ -4,6 +4,7 @@ import com.founder.commonutils.model.newPublicEntity.SkTrail;
import com.founder.commonutils.model.newPublicEntity.TogetherEntity;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Builder;
......@@ -17,6 +18,7 @@ import java.util.*;
@RestController
@RequestMapping("skbs")
@Api(tags = "轨迹分析")
public class SkbsController {
/**
......
......@@ -497,6 +497,8 @@ public class HnTbStRygxController {
* @param response
* @throws Exception
*/
@ApiOperation(value = "下载Excel模板")
@OperLog(message = "下载Excel模板", operation = OperationType.QUERY)
@GetMapping("downloadExcelTemplate")
public void downloadExcelTemplate(HttpServletResponse response) throws Exception {
//下载的路径
......@@ -818,6 +820,8 @@ public class HnTbStRygxController {
* @param username
* @return
*/
@OperLog(message = "根据指定团伙获取并保存人员图片到数据库", operation = OperationType.ADD)
@ApiOperation(value = "根据指定团伙获取并保存人员图片到数据库")
@GetMapping("getAndSaveImg")
public Result getAndSaveImg(@RequestParam(name = "id") String id,
@RequestParam(name = "teamNum") Integer teamNum,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment