1、调整日志切面组件
2、添加vscode配置
This commit is contained in:
+11
-2
@@ -3,6 +3,10 @@ package top.crushtj.xiaoyishu.auth.controller;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import top.crushtj.framework.biz.operationlog.aspect.ApiOperationLog;
|
||||
import top.crushtj.framework.common.response.Response;
|
||||
import top.crushtj.xiaoyishu.auth.vo.User;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
/**
|
||||
@@ -18,8 +22,13 @@ public class TestController {
|
||||
|
||||
@GetMapping("/test")
|
||||
@ApiOperationLog(description = "测试接口")
|
||||
public Response<String> testController() {
|
||||
return Response.success("Hello World!");
|
||||
public Response<User> testController() {
|
||||
return Response.success(User.builder()
|
||||
.id(1L)
|
||||
.name("ayi")
|
||||
.age(18)
|
||||
.createTime(LocalDateTime.now())
|
||||
.build());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package top.crushtj.xiaoyishu.auth.vo;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Title: User
|
||||
* @Description: 测试用户类
|
||||
* @Author: ayi
|
||||
* @Date: 2025/11/26
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class User implements Serializable {
|
||||
private Long id;
|
||||
private String name;
|
||||
private Integer age;
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user