| | |
| | | |
| | | import com.genersoft.iot.vmp.conf.UserSetting; |
| | | import com.genersoft.iot.vmp.conf.exception.ControllerException; |
| | | import com.genersoft.iot.vmp.conf.redis.RedisRpcConfig; |
| | | import com.genersoft.iot.vmp.conf.security.JwtUtils; |
| | | import com.genersoft.iot.vmp.service.ILogService; |
| | | import com.genersoft.iot.vmp.storager.dao.dto.LogDto; |
| | | import com.genersoft.iot.vmp.utils.DateUtil; |
| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/all") |
| | | @Operation(summary = "分页查询日志") |
| | | @Operation(summary = "分页查询日志", security = @SecurityRequirement(name = JwtUtils.HEADER)) |
| | | @Parameter(name = "query", description = "查询内容", required = true) |
| | | @Parameter(name = "page", description = "当前页", required = true) |
| | | @Parameter(name = "count", description = "每页查询数量", required = true) |
| | |
| | | * 清空日志 |
| | | * |
| | | */ |
| | | @Operation(summary = "清空日志") |
| | | @Operation(summary = "清空日志", security = @SecurityRequirement(name = JwtUtils.HEADER)) |
| | | @DeleteMapping("/clear") |
| | | public void clear() { |
| | | logService.clear(); |
| | | } |
| | | |
| | | @Autowired |
| | | private RedisRpcConfig redisRpcConfig; |
| | | |
| | | @GetMapping("/test/count") |
| | | public Object count() { |
| | | return redisRpcConfig.getCallbackCount(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |