Browse Source

app 运维 监控 已经加apiLog注解

zhongwei
段飞宇 2 years ago
parent
commit
187f522104
  1. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/FocusAttributeController.java
  2. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java
  3. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java
  4. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/feign/StationVideoTypeClient.java
  5. 2
      hzims-service/topvision/src/main/java/com/hnac/hzims/topvision/controller/TopvisionVideoController.java

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/FocusAttributeController.java

@ -3,6 +3,7 @@ package com.hnac.hzims.operational.config.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.mp.support.Query;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
@ -44,6 +45,7 @@ public class FocusAttributeController extends BladeController {
return R.status(attributeService.save(attributeEntity));
}
@ApiLog
@PostMapping("/getMainList")
@ApiOperation("查询列表(主界面)")
@ApiOperationSupport(order = 1)
@ -58,7 +60,6 @@ public class FocusAttributeController extends BladeController {
List<FocusAttributeEntity> focusAttributeEntityList = JSONArray.parseArray(JSON.toJSONString(focusAttributeDtoList),FocusAttributeEntity.class);
return attributeService.modify(focusAttributeEntityList);
}
@PostMapping("/list")
@ApiOperation("查询列表")
@ApiOperationSupport(order = 3)

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java

@ -6,6 +6,7 @@ import com.hnac.hzims.operational.config.entity.StFocusPropertiesEntity;
import com.hnac.hzims.operational.config.service.StFocusPropertiesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
@ -26,6 +27,7 @@ public class StFocusPropertiesController {
private StFocusPropertiesService stFocusPropertiesService;
@ApiLog
@ApiOperation("分页查询")
@RequestMapping(value = "/pageList", method = RequestMethod.GET)
public R<IPage<StFocusPropertiesEntity>> pageList(StFocusPropertiesEntity entity, Query query) {

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java

@ -61,7 +61,7 @@ public class StationController extends BladeController {
IPage<StationVO> vos = stationService.list(entity,query);
return R.data(vos);
}
@ApiLog
@GetMapping("/detail/{id}")
@ApiOperationSupport(order = 60)
@ApiOperation(value = "查看详情", notes = "查看详情")
@ -72,7 +72,6 @@ public class StationController extends BladeController {
/**
* 新增
*/
@ApiLog
@PostMapping("/save")
@ApiOperationSupport(order = 20)
@ApiOperation(value = "新增")

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/feign/StationVideoTypeClient.java

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hnac.hzims.operational.station.entity.StationVideoTypeEntity;
import com.hnac.hzims.operational.station.service.IStationVideoTypeService;
import lombok.AllArgsConstructor;
import org.springblade.core.log.annotation.ApiLog;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -17,6 +18,7 @@ public class StationVideoTypeClient implements IStationVideoTypeClient {
private final IStationVideoTypeService stationVideoTypeService;
@ApiLog
@Override
@PostMapping("/listByStationId")
public List<StationVideoTypeEntity> listByStationId(String stationId) {

2
hzims-service/topvision/src/main/java/com/hnac/hzims/topvision/controller/TopvisionVideoController.java

@ -8,6 +8,7 @@ import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
@ -69,6 +70,7 @@ public class TopvisionVideoController extends BladeController {
* @param companyId
* @return
*/
@ApiLog
@GetMapping("/editList")
@ApiOperationSupport(order = 2)
@ApiOperation(value = "获取编辑列表 - 不分页", notes = "传入公司ID")

Loading…
Cancel
Save