Knife4j接口文档接口添加注释

product
wangchuang 2 years ago
parent b7c4fa8ba5
commit bd885d22fd

@ -50,7 +50,7 @@ import java.util.Map;
*/
@Slf4j
@RestController
@Api(tags = "jg_natural", value = "example")
@Api(tags = "业务员2", value = "example")
@RequestMapping("/api/example/Jg_natural")
public class Jg_naturalController {

@ -56,7 +56,7 @@ import jnpf.util.enums.FileTypeEnum;
*/
@Slf4j
@RestController
@Api(tags = "areasetting" , value = "areasetting")
@Api(tags = "监控区域" , value = "areasetting")
@RequestMapping("/api/areasetting/Areasetting")
public class AreasettingController {

@ -20,7 +20,7 @@ import java.util.List;
@Slf4j
@RestController
@Api(tags = "合同档案(移)", value = "contractMobile")
@Api(tags = "合同档案(移)", value = "合同档案(移动)")
@RequestMapping("/api/contractMobile/ContractMobile")
public class ContractMobileController {
@ -28,7 +28,7 @@ public class ContractMobileController {
private ContractMobileService contractMobileService;
@PostMapping("/getList")
@ApiOperation("合同档案列表")
@ApiOperation("合同档案列表(首页进行中的合同)")
public ActionResult list(@RequestBody ContractMobilePagination contractMobilePagination) throws IOException {
List<ContractMobileVO> list = contractMobileService.getList(contractMobilePagination);
// List<ContractMobileListVO> listVO = JsonUtil.getJsonToList(list, ContractMobileListVO.class);

@ -68,7 +68,7 @@ import java.util.Map;
*/
@Slf4j
@RestController
@Api(tags = "contractFile", value = "example")
@Api(tags = "合同档案PC", value = "example")
@RequestMapping("/api/example/ContractFile")
public class ContractFileController {

@ -54,6 +54,7 @@ public class MessageCenterController {
*
*/
@GetMapping(value = "/getOneYearData")
@ApiOperation("获取最近一年的统计数据")
public Map getOneYearData() throws Exception {
Map oneYearData= messageCenterService.getOneYearData();
return oneYearData;
@ -62,6 +63,7 @@ public class MessageCenterController {
*
*/
@GetMapping(value = "/getSaleQuantityData")
@ApiOperation("获取最近七天的销售量")
public ActionResult getSaleQuantityData(String dateNow) throws Exception {
// public void exportBillInfo(HttpServletResponse response) throws Exception {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@ -76,6 +78,7 @@ public class MessageCenterController {
*
*/
@GetMapping(value = "/getPurchasedAmountData")
@ApiOperation("获取最近七天的采购量")
public ActionResult getPurchasedAmountData(String dateNow) throws Exception {
// public void exportBillInfo(HttpServletResponse response) throws Exception {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@ -90,6 +93,7 @@ public class MessageCenterController {
*
*/
@GetMapping(value = "/getTadayPoundist")
@ApiOperation("获取今天的榜单指数")
public ActionResult getTadayPoundist(){
Map saleQuantityData = messageCenterService.getTadayPoundist();
return ActionResult.success(saleQuantityData);

@ -47,7 +47,7 @@ import java.util.*;
*/
@Slf4j
@RestController
@Api(tags = "监控清单" , value = "example")
@Api(tags = "监控清单" , value = "Monitoringitem")
@RequestMapping("/api/example/Monitoringitem")
public class MonitoringitemController {

@ -50,7 +50,7 @@ import java.util.Map;
*/
@Slf4j
@RestController
@Api(tags = "vehicle" , value = "example")
@Api(tags = "车辆管理" , value = "车辆管理")
@RequestMapping("/api/example/Vehicle")
public class VehicleController {
@ -79,6 +79,7 @@ public class VehicleController {
* @return
*/
@PostMapping("/getList")
@ApiOperation("列表")
public ActionResult list(@RequestBody VehiclePagination vehiclePagination)throws IOException{
List<VehicleMobileEntity> list= vehicleService.getList(vehiclePagination);
//处理id字段转名称若无需转或者为空可删除

Loading…
Cancel
Save