feat 日志模块

This commit is contained in:
DaxPay
2024-10-12 15:39:16 +08:00
parent 1d6fbd959e
commit 986c3031f4
82 changed files with 3667 additions and 10 deletions

View File

@@ -8,8 +8,10 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
@@ -20,6 +22,7 @@ import java.nio.charset.StandardCharsets;
* @author xxm
* @since 2023/10/14
*/
@Slf4j
@Tag(name = "系统基础接口")
@RestController
@RequiredArgsConstructor
@@ -43,7 +46,7 @@ public class BaseController {
@IgnoreAuth
@Operation(summary = "读取文件文本内容")
@PostMapping("/readText")
public Result<String> readText(MultipartFile file){
public Result<String> readText(@RequestPart MultipartFile file){
return Res.ok(new String(file.getBytes(), StandardCharsets.UTF_8));
}