| | |
| | | import com.genersoft.iot.vmp.utils.DateUtil; |
| | | import com.genersoft.iot.vmp.vmanager.bean.WVPResult; |
| | | import com.github.pagehelper.PageInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | import java.text.ParseException; |
| | | |
| | | @Api(tags = "日志管理") |
| | | @Tag(name = "日志管理") |
| | | @CrossOrigin |
| | | @RestController |
| | | @RequestMapping("/api/log") |
| | |
| | | * @param endTime 结束时间 |
| | | * @return |
| | | */ |
| | | @ApiOperation("分页查询报警") |
| | | @GetMapping("/all") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name="query", value = "查询内容", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name="page", value = "当前页", required = true ,dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name="count", value = "每页查询数量", required = true ,dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name="type", value = "类型" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name="startTime", value = "查询内容" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name="endTime", value = "查询内容" ,dataTypeClass = String.class), |
| | | }) |
| | | @Operation(summary = "分页查询报警") |
| | | @Parameter(name = "query", description = "查询内容", required = true) |
| | | @Parameter(name = "page", description = "当前页", required = true) |
| | | @Parameter(name = "count", description = "每页查询数量", required = true) |
| | | @Parameter(name = "type", description = "类型", required = true) |
| | | @Parameter(name = "startTime", description = "开始时间", required = true) |
| | | @Parameter(name = "endTime", description = "结束时间", required = true) |
| | | public ResponseEntity<PageInfo<LogDto>> getAll( |
| | | @RequestParam int page, |
| | | @RequestParam int count, |
| | |
| | | * 清空日志 |
| | | * |
| | | */ |
| | | @ApiOperation("清空日志") |
| | | @Operation(summary = "停止视频回放") |
| | | @DeleteMapping("/clear") |
| | | @ApiImplicitParams({}) |
| | | public ResponseEntity<WVPResult<String>> clear() { |
| | | |
| | | int count = logService.clear(); |