去除个人订阅文件
This commit is contained in:
parent
1516226192
commit
6f0049442f
@ -2,10 +2,8 @@ package com.lion.lionwebsite.Controller;
|
||||
|
||||
import com.lion.lionwebsite.Service.LocalServiceImpl;
|
||||
import com.lion.lionwebsite.Service.PersonalServiceImpl;
|
||||
import com.lion.lionwebsite.Util.FileDownload;
|
||||
import com.lion.lionwebsite.Util.Response;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -32,11 +30,6 @@ public class PersonalController {
|
||||
this.localService = localService;
|
||||
}
|
||||
|
||||
@GetMapping("/sub/self")
|
||||
public void sub(HttpServletResponse response, HttpServletRequest request){
|
||||
FileDownload.export(request, response, "sub/sub.txt");
|
||||
}
|
||||
|
||||
@GetMapping("/files")
|
||||
public String file(String path) throws IOException {
|
||||
return personalService.getFiles(path);
|
||||
|
||||
@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
@ -48,7 +48,7 @@ public class WebSocketService implements WebSocketHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterConnectionEstablished(@NotNull WebSocketSession session) throws Exception {}
|
||||
public void afterConnectionEstablished(@NotNull WebSocketSession session) {}
|
||||
|
||||
@Override
|
||||
public void handleMessage(@NotNull WebSocketSession session, @NotNull WebSocketMessage<?> message) throws Exception {
|
||||
@ -59,10 +59,10 @@ public class WebSocketService implements WebSocketHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleTransportError(@NotNull WebSocketSession session, @NotNull Throwable exception) throws Exception {}
|
||||
public void handleTransportError(@NotNull WebSocketSession session, @NotNull Throwable exception) {}
|
||||
|
||||
@Override
|
||||
public void afterConnectionClosed(@NotNull WebSocketSession session, @NotNull CloseStatus closeStatus) throws Exception {
|
||||
public void afterConnectionClosed(@NotNull WebSocketSession session, @NotNull CloseStatus closeStatus) {
|
||||
sessions.remove(session);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user