feat(分类模块): 实现分类管理功能

新增分类模块相关代码,包括实体类、DTO、Repository、Service和Controller
添加分类数据初始化逻辑和日志记录
实现分类的增删改查及搜索功能
This commit is contained in:
qingfeng1121
2025-10-12 14:23:42 +08:00
parent 299c9a57ec
commit 2809837422
9 changed files with 2475 additions and 5331 deletions

View File

@@ -0,0 +1,52 @@
package com.qf.myafterprojecy.pojo.dto;
import java.time.LocalDateTime;
public class CategoryDto {
private Integer typeid;
private String typename;
private String description;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
// Getters and Setters
public Integer getTypeid() {
return typeid;
}
public void setTypeid(Integer typeid) {
this.typeid = typeid;
}
public String getTypename() {
return typename;
}
public void setTypename(String typename) {
this.typename = typename;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(LocalDateTime createdAt) {
this.createdAt = createdAt;
}
public LocalDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(LocalDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}