| @Getter |
| @Setter |
| @AllArgsConstructor |
| @NoArgsConstructor |
| @ToString |
| @Accessors(chain = true) |
| @TableName("user") |
| @ApiModel(value = "User对象", description = "") |
| public class User implements Serializable { |
| |
| private static final long serialVersionUID = 1L; |
| |
| @TableId(value = "id", type = IdType.AUTO) |
| private Integer id; |
| |
| private String username; |
| |
| private String password; |
| |
| private String sex; |
| |
| private Date birthday; |
| |
| } |
| @Data |
| public class UserBookReq implements Serializable { |
| |
| private static final long serialVersionUID = 1L; |
| |
| |
| private String username; |
| |
| |
| private String sex; |
| |
| |
| private String bookname; |
| |
| |
| private String author; |
| |
| |
| private BigDecimal price; |
| |
| |
| private int pageNum = 1; |
| |
| |
| private int pageSize = 5; |
| |
| } |
| public class TestAssembler { |
| public static void main(String[] args) { |
| UserBookReq userBookReq = new UserBookReq(); |
| User user = new User(); |
| } |
| } |
- 选中
UserBookReq userBookReq
并复制
- 再选中
user
右键,选中Generate -> Vo2Dto
- 生成相应的代码
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
· 提示词工程——AI应用必不可少的技术