serv-初始mapper
This commit is contained in:
@@ -0,0 +1,171 @@
|
||||
package org.xyzh.common.dto.ai;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @description 智能体配置表
|
||||
* @filename TbAiAgentConfig.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAiAgentConfig extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 智能体名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 智能体头像
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* @description 系统提示词
|
||||
*/
|
||||
private String systemPrompt;
|
||||
|
||||
/**
|
||||
* @description 模型名称
|
||||
*/
|
||||
private String modelName;
|
||||
|
||||
/**
|
||||
* @description 模型提供商
|
||||
*/
|
||||
private String modelProvider;
|
||||
|
||||
/**
|
||||
* @description 温度值
|
||||
*/
|
||||
private BigDecimal temperature;
|
||||
|
||||
/**
|
||||
* @description 最大tokens
|
||||
*/
|
||||
private Integer maxTokens;
|
||||
|
||||
/**
|
||||
* @description Top P值
|
||||
*/
|
||||
private BigDecimal topP;
|
||||
|
||||
/**
|
||||
* @description 状态(0禁用 1启用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getSystemPrompt() {
|
||||
return systemPrompt;
|
||||
}
|
||||
|
||||
public void setSystemPrompt(String systemPrompt) {
|
||||
this.systemPrompt = systemPrompt;
|
||||
}
|
||||
|
||||
public String getModelName() {
|
||||
return modelName;
|
||||
}
|
||||
|
||||
public void setModelName(String modelName) {
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
public String getModelProvider() {
|
||||
return modelProvider;
|
||||
}
|
||||
|
||||
public void setModelProvider(String modelProvider) {
|
||||
this.modelProvider = modelProvider;
|
||||
}
|
||||
|
||||
public BigDecimal getTemperature() {
|
||||
return temperature;
|
||||
}
|
||||
|
||||
public void setTemperature(BigDecimal temperature) {
|
||||
this.temperature = temperature;
|
||||
}
|
||||
|
||||
public Integer getMaxTokens() {
|
||||
return maxTokens;
|
||||
}
|
||||
|
||||
public void setMaxTokens(Integer maxTokens) {
|
||||
this.maxTokens = maxTokens;
|
||||
}
|
||||
|
||||
public BigDecimal getTopP() {
|
||||
return topP;
|
||||
}
|
||||
|
||||
public void setTopP(BigDecimal topP) {
|
||||
this.topP = topP;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAiAgentConfig{" +
|
||||
"id=" + getID() +
|
||||
", name='" + name + '\'' +
|
||||
", modelName='" + modelName + '\'' +
|
||||
", modelProvider='" + modelProvider + '\'' +
|
||||
", status=" + status +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package org.xyzh.common.dto.ai;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 对话会话表
|
||||
* @filename TbAiConversation.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAiConversation extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 会话标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* @description 状态(0已结束 1进行中)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 消息数量
|
||||
*/
|
||||
private Integer messageCount;
|
||||
|
||||
/**
|
||||
* @description 最后消息时间
|
||||
*/
|
||||
private Date lastMessageTime;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getMessageCount() {
|
||||
return messageCount;
|
||||
}
|
||||
|
||||
public void setMessageCount(Integer messageCount) {
|
||||
this.messageCount = messageCount;
|
||||
}
|
||||
|
||||
public Date getLastMessageTime() {
|
||||
return lastMessageTime;
|
||||
}
|
||||
|
||||
public void setLastMessageTime(Date lastMessageTime) {
|
||||
this.lastMessageTime = lastMessageTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAiConversation{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", title='" + title + '\'' +
|
||||
", status=" + status +
|
||||
", messageCount=" + messageCount +
|
||||
", lastMessageTime=" + lastMessageTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
package org.xyzh.common.dto.ai;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 知识库表
|
||||
* @filename TbAiKnowledge.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAiKnowledge extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 知识标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* @description 知识内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* @description 来源类型(1手动添加 2文件导入 3资源同步)
|
||||
*/
|
||||
private Integer sourceType;
|
||||
|
||||
/**
|
||||
* @description 来源ID
|
||||
*/
|
||||
private String sourceID;
|
||||
|
||||
/**
|
||||
* @description 文件名
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* @description 文件路径
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
* @description 分类
|
||||
*/
|
||||
private String category;
|
||||
|
||||
/**
|
||||
* @description 标签(JSON数组)
|
||||
*/
|
||||
private String tags;
|
||||
|
||||
/**
|
||||
* @description 向量ID(用于向量检索)
|
||||
*/
|
||||
private String vectorID;
|
||||
|
||||
/**
|
||||
* @description 状态(0禁用 1启用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Integer getSourceType() {
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
public void setSourceType(Integer sourceType) {
|
||||
this.sourceType = sourceType;
|
||||
}
|
||||
|
||||
public String getSourceID() {
|
||||
return sourceID;
|
||||
}
|
||||
|
||||
public void setSourceID(String sourceID) {
|
||||
this.sourceID = sourceID;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public String getVectorID() {
|
||||
return vectorID;
|
||||
}
|
||||
|
||||
public void setVectorID(String vectorID) {
|
||||
this.vectorID = vectorID;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAiKnowledge{" +
|
||||
"id=" + getID() +
|
||||
", title='" + title + '\'' +
|
||||
", sourceType=" + sourceType +
|
||||
", category='" + category + '\'' +
|
||||
", status=" + status +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package org.xyzh.common.dto.ai;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 对话消息表
|
||||
* @filename TbAiMessage.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAiMessage extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 会话ID
|
||||
*/
|
||||
private String conversationID;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 角色(user用户 assistant助手 system系统)
|
||||
*/
|
||||
private String role;
|
||||
|
||||
/**
|
||||
* @description 消息内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* @description 关联文件ID(JSON数组)
|
||||
*/
|
||||
private String fileIDs;
|
||||
|
||||
/**
|
||||
* @description 引用知识ID(JSON数组)
|
||||
*/
|
||||
private String knowledgeIDs;
|
||||
|
||||
/**
|
||||
* @description Token数量
|
||||
*/
|
||||
private Integer tokenCount;
|
||||
|
||||
public String getConversationID() {
|
||||
return conversationID;
|
||||
}
|
||||
|
||||
public void setConversationID(String conversationID) {
|
||||
this.conversationID = conversationID;
|
||||
}
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getFileIDs() {
|
||||
return fileIDs;
|
||||
}
|
||||
|
||||
public void setFileIDs(String fileIDs) {
|
||||
this.fileIDs = fileIDs;
|
||||
}
|
||||
|
||||
public String getKnowledgeIDs() {
|
||||
return knowledgeIDs;
|
||||
}
|
||||
|
||||
public void setKnowledgeIDs(String knowledgeIDs) {
|
||||
this.knowledgeIDs = knowledgeIDs;
|
||||
}
|
||||
|
||||
public Integer getTokenCount() {
|
||||
return tokenCount;
|
||||
}
|
||||
|
||||
public void setTokenCount(Integer tokenCount) {
|
||||
this.tokenCount = tokenCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAiMessage{" +
|
||||
"id=" + getID() +
|
||||
", conversationID='" + conversationID + '\'' +
|
||||
", userID='" + userID + '\'' +
|
||||
", role='" + role + '\'' +
|
||||
", tokenCount=" + tokenCount +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
package org.xyzh.common.dto.ai;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 上传文件表
|
||||
* @filename TbAiUploadFile.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAiUploadFile extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 会话ID
|
||||
*/
|
||||
private String conversationID;
|
||||
|
||||
/**
|
||||
* @description 文件名
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* @description 文件路径
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
* @description 文件大小(字节)
|
||||
*/
|
||||
private Long fileSize;
|
||||
|
||||
/**
|
||||
* @description 文件类型
|
||||
*/
|
||||
private String fileType;
|
||||
|
||||
/**
|
||||
* @description MIME类型
|
||||
*/
|
||||
private String mimeType;
|
||||
|
||||
/**
|
||||
* @description 提取的文本内容
|
||||
*/
|
||||
private String extractedText;
|
||||
|
||||
/**
|
||||
* @description 状态(0处理中 1已完成 2失败)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getConversationID() {
|
||||
return conversationID;
|
||||
}
|
||||
|
||||
public void setConversationID(String conversationID) {
|
||||
this.conversationID = conversationID;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public Long getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
|
||||
public void setFileSize(Long fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getMimeType() {
|
||||
return mimeType;
|
||||
}
|
||||
|
||||
public void setMimeType(String mimeType) {
|
||||
this.mimeType = mimeType;
|
||||
}
|
||||
|
||||
public String getExtractedText() {
|
||||
return extractedText;
|
||||
}
|
||||
|
||||
public void setExtractedText(String extractedText) {
|
||||
this.extractedText = extractedText;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAiUploadFile{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", conversationID='" + conversationID + '\'' +
|
||||
", fileName='" + fileName + '\'' +
|
||||
", fileSize=" + fileSize +
|
||||
", fileType='" + fileType + '\'' +
|
||||
", status=" + status +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package org.xyzh.common.dto.ai;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description AI使用统计表
|
||||
* @filename TbAiUsageStatistics.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAiUsageStatistics extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 统计日期
|
||||
*/
|
||||
private Date statDate;
|
||||
|
||||
/**
|
||||
* @description 会话数量
|
||||
*/
|
||||
private Integer conversationCount;
|
||||
|
||||
/**
|
||||
* @description 消息数量
|
||||
*/
|
||||
private Integer messageCount;
|
||||
|
||||
/**
|
||||
* @description 总Token数
|
||||
*/
|
||||
private Integer totalTokens;
|
||||
|
||||
/**
|
||||
* @description 上传文件数
|
||||
*/
|
||||
private Integer fileCount;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Date getStatDate() {
|
||||
return statDate;
|
||||
}
|
||||
|
||||
public void setStatDate(Date statDate) {
|
||||
this.statDate = statDate;
|
||||
}
|
||||
|
||||
public Integer getConversationCount() {
|
||||
return conversationCount;
|
||||
}
|
||||
|
||||
public void setConversationCount(Integer conversationCount) {
|
||||
this.conversationCount = conversationCount;
|
||||
}
|
||||
|
||||
public Integer getMessageCount() {
|
||||
return messageCount;
|
||||
}
|
||||
|
||||
public void setMessageCount(Integer messageCount) {
|
||||
this.messageCount = messageCount;
|
||||
}
|
||||
|
||||
public Integer getTotalTokens() {
|
||||
return totalTokens;
|
||||
}
|
||||
|
||||
public void setTotalTokens(Integer totalTokens) {
|
||||
this.totalTokens = totalTokens;
|
||||
}
|
||||
|
||||
public Integer getFileCount() {
|
||||
return fileCount;
|
||||
}
|
||||
|
||||
public void setFileCount(Integer fileCount) {
|
||||
this.fileCount = fileCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAiUsageStatistics{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", statDate=" + statDate +
|
||||
", conversationCount=" + conversationCount +
|
||||
", messageCount=" + messageCount +
|
||||
", totalTokens=" + totalTokens +
|
||||
", fileCount=" + fileCount +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
package org.xyzh.common.dto.permission;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 统一资源权限控制表
|
||||
* @filename TbResourcePermission.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbResourcePermission extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 资源类型(1资源/新闻 2课程 3课程章节 4学习任务)
|
||||
*/
|
||||
private Integer resourceType;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 部门ID(NULL表示不限制部门)
|
||||
*/
|
||||
private String deptID;
|
||||
|
||||
/**
|
||||
* @description 角色ID(NULL表示不限制角色)
|
||||
*/
|
||||
private String roleID;
|
||||
|
||||
/**
|
||||
* @description 读权限(0否 1是)
|
||||
*/
|
||||
private Boolean canRead;
|
||||
|
||||
/**
|
||||
* @description 写权限(0否 1是)
|
||||
*/
|
||||
private Boolean canWrite;
|
||||
|
||||
/**
|
||||
* @description 执行权限(0否 1是)
|
||||
*/
|
||||
private Boolean canExecute;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public Integer getResourceType() {
|
||||
return resourceType;
|
||||
}
|
||||
|
||||
public void setResourceType(Integer resourceType) {
|
||||
this.resourceType = resourceType;
|
||||
}
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public String getDeptID() {
|
||||
return deptID;
|
||||
}
|
||||
|
||||
public void setDeptID(String deptID) {
|
||||
this.deptID = deptID;
|
||||
}
|
||||
|
||||
public String getRoleID() {
|
||||
return roleID;
|
||||
}
|
||||
|
||||
public void setRoleID(String roleID) {
|
||||
this.roleID = roleID;
|
||||
}
|
||||
|
||||
public Boolean getCanRead() {
|
||||
return canRead;
|
||||
}
|
||||
|
||||
public void setCanRead(Boolean canRead) {
|
||||
this.canRead = canRead;
|
||||
}
|
||||
|
||||
public Boolean getCanWrite() {
|
||||
return canWrite;
|
||||
}
|
||||
|
||||
public void setCanWrite(Boolean canWrite) {
|
||||
this.canWrite = canWrite;
|
||||
}
|
||||
|
||||
public Boolean getCanExecute() {
|
||||
return canExecute;
|
||||
}
|
||||
|
||||
public void setCanExecute(Boolean canExecute) {
|
||||
this.canExecute = canExecute;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbResourcePermission{" +
|
||||
"id=" + getID() +
|
||||
", resourceType=" + resourceType +
|
||||
", resourceID='" + resourceID + '\'' +
|
||||
", deptID='" + deptID + '\'' +
|
||||
", roleID='" + roleID + '\'' +
|
||||
", canRead=" + canRead +
|
||||
", canWrite=" + canWrite +
|
||||
", canExecute=" + canExecute +
|
||||
", creator='" + creator + '\'' +
|
||||
", updater='" + updater + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
", updateTime=" + getUpdateTime() +
|
||||
", deleted=" + getDeleted() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description Banner表
|
||||
* @filename TbBanner.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbBanner extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description Banner标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* @description Banner图片URL
|
||||
*/
|
||||
private String imageUrl;
|
||||
|
||||
/**
|
||||
* @description 链接类型(1资源 2课程 3外部链接)
|
||||
*/
|
||||
private Integer linkType;
|
||||
|
||||
/**
|
||||
* @description 关联ID(资源ID或课程ID)
|
||||
*/
|
||||
private String linkID;
|
||||
|
||||
/**
|
||||
* @description 外部链接URL
|
||||
*/
|
||||
private String linkUrl;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 状态(0禁用 1启用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public Integer getLinkType() {
|
||||
return linkType;
|
||||
}
|
||||
|
||||
public void setLinkType(Integer linkType) {
|
||||
this.linkType = linkType;
|
||||
}
|
||||
|
||||
public String getLinkID() {
|
||||
return linkID;
|
||||
}
|
||||
|
||||
public void setLinkID(String linkID) {
|
||||
this.linkID = linkID;
|
||||
}
|
||||
|
||||
public String getLinkUrl() {
|
||||
return linkUrl;
|
||||
}
|
||||
|
||||
public void setLinkUrl(String linkUrl) {
|
||||
this.linkUrl = linkUrl;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbBanner{" +
|
||||
"id=" + getID() +
|
||||
", title='" + title + '\'' +
|
||||
", imageUrl='" + imageUrl + '\'' +
|
||||
", linkType=" + linkType +
|
||||
", linkID='" + linkID + '\'' +
|
||||
", linkUrl='" + linkUrl + '\'' +
|
||||
", orderNum=" + orderNum +
|
||||
", status=" + status +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 数据采集配置表
|
||||
* @filename TbDataCollectionConfig.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbDataCollectionConfig extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 配置名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 采集源URL
|
||||
*/
|
||||
private String sourceUrl;
|
||||
|
||||
/**
|
||||
* @description 采集源类型
|
||||
*/
|
||||
private String sourceType;
|
||||
|
||||
/**
|
||||
* @description 采集频率(daily每天 weekly每周)
|
||||
*/
|
||||
private String frequency;
|
||||
|
||||
/**
|
||||
* @description 默认分类ID
|
||||
*/
|
||||
private String categoryID;
|
||||
|
||||
/**
|
||||
* @description 状态(0禁用 1启用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 最后采集时间
|
||||
*/
|
||||
private Date lastCollectTime;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getSourceUrl() {
|
||||
return sourceUrl;
|
||||
}
|
||||
|
||||
public void setSourceUrl(String sourceUrl) {
|
||||
this.sourceUrl = sourceUrl;
|
||||
}
|
||||
|
||||
public String getSourceType() {
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
public void setSourceType(String sourceType) {
|
||||
this.sourceType = sourceType;
|
||||
}
|
||||
|
||||
public String getFrequency() {
|
||||
return frequency;
|
||||
}
|
||||
|
||||
public void setFrequency(String frequency) {
|
||||
this.frequency = frequency;
|
||||
}
|
||||
|
||||
public String getCategoryID() {
|
||||
return categoryID;
|
||||
}
|
||||
|
||||
public void setCategoryID(String categoryID) {
|
||||
this.categoryID = categoryID;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Date getLastCollectTime() {
|
||||
return lastCollectTime;
|
||||
}
|
||||
|
||||
public void setLastCollectTime(Date lastCollectTime) {
|
||||
this.lastCollectTime = lastCollectTime;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbDataCollectionConfig{" +
|
||||
"id=" + getID() +
|
||||
", name='" + name + '\'' +
|
||||
", sourceUrl='" + sourceUrl + '\'' +
|
||||
", sourceType='" + sourceType + '\'' +
|
||||
", frequency='" + frequency + '\'' +
|
||||
", status=" + status +
|
||||
", lastCollectTime=" + lastCollectTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 数据采集记录表
|
||||
* @filename TbDataCollectionLog.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbDataCollectionLog extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 配置ID
|
||||
*/
|
||||
private String configID;
|
||||
|
||||
/**
|
||||
* @description 采集数量
|
||||
*/
|
||||
private Integer collectCount;
|
||||
|
||||
/**
|
||||
* @description 成功数量
|
||||
*/
|
||||
private Integer successCount;
|
||||
|
||||
/**
|
||||
* @description 失败数量
|
||||
*/
|
||||
private Integer failCount;
|
||||
|
||||
/**
|
||||
* @description 状态(0失败 1成功 2部分成功)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 采集消息
|
||||
*/
|
||||
private String message;
|
||||
|
||||
/**
|
||||
* @description 采集时间
|
||||
*/
|
||||
private Date collectTime;
|
||||
|
||||
public String getConfigID() {
|
||||
return configID;
|
||||
}
|
||||
|
||||
public void setConfigID(String configID) {
|
||||
this.configID = configID;
|
||||
}
|
||||
|
||||
public Integer getCollectCount() {
|
||||
return collectCount;
|
||||
}
|
||||
|
||||
public void setCollectCount(Integer collectCount) {
|
||||
this.collectCount = collectCount;
|
||||
}
|
||||
|
||||
public Integer getSuccessCount() {
|
||||
return successCount;
|
||||
}
|
||||
|
||||
public void setSuccessCount(Integer successCount) {
|
||||
this.successCount = successCount;
|
||||
}
|
||||
|
||||
public Integer getFailCount() {
|
||||
return failCount;
|
||||
}
|
||||
|
||||
public void setFailCount(Integer failCount) {
|
||||
this.failCount = failCount;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public Date getCollectTime() {
|
||||
return collectTime;
|
||||
}
|
||||
|
||||
public void setCollectTime(Date collectTime) {
|
||||
this.collectTime = collectTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbDataCollectionLog{" +
|
||||
"id=" + getID() +
|
||||
", configID='" + configID + '\'' +
|
||||
", collectCount=" + collectCount +
|
||||
", successCount=" + successCount +
|
||||
", failCount=" + failCount +
|
||||
", status=" + status +
|
||||
", collectTime=" + collectTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 资源表
|
||||
* @filename TbResource.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbResource extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 资源标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* @description 资源内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* @description 资源简介
|
||||
*/
|
||||
private String summary;
|
||||
|
||||
/**
|
||||
* @description 封面图片
|
||||
*/
|
||||
private String coverImage;
|
||||
|
||||
/**
|
||||
* @description 分类ID
|
||||
*/
|
||||
private String categoryID;
|
||||
|
||||
/**
|
||||
* @description 作者
|
||||
*/
|
||||
private String author;
|
||||
|
||||
/**
|
||||
* @description 来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* @description 来源URL
|
||||
*/
|
||||
private String sourceUrl;
|
||||
|
||||
/**
|
||||
* @description 浏览次数
|
||||
*/
|
||||
private Integer viewCount;
|
||||
|
||||
/**
|
||||
* @description 点赞次数
|
||||
*/
|
||||
private Integer likeCount;
|
||||
|
||||
/**
|
||||
* @description 收藏次数
|
||||
*/
|
||||
private Integer collectCount;
|
||||
|
||||
/**
|
||||
* @description 状态(0草稿 1已发布 2下架)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 是否推荐
|
||||
*/
|
||||
private Boolean isRecommend;
|
||||
|
||||
/**
|
||||
* @description 是否轮播
|
||||
*/
|
||||
private Boolean isBanner;
|
||||
|
||||
/**
|
||||
* @description 发布时间
|
||||
*/
|
||||
private Date publishTime;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getCoverImage() {
|
||||
return coverImage;
|
||||
}
|
||||
|
||||
public void setCoverImage(String coverImage) {
|
||||
this.coverImage = coverImage;
|
||||
}
|
||||
|
||||
public String getCategoryID() {
|
||||
return categoryID;
|
||||
}
|
||||
|
||||
public void setCategoryID(String categoryID) {
|
||||
this.categoryID = categoryID;
|
||||
}
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public String getSourceUrl() {
|
||||
return sourceUrl;
|
||||
}
|
||||
|
||||
public void setSourceUrl(String sourceUrl) {
|
||||
this.sourceUrl = sourceUrl;
|
||||
}
|
||||
|
||||
public Integer getViewCount() {
|
||||
return viewCount;
|
||||
}
|
||||
|
||||
public void setViewCount(Integer viewCount) {
|
||||
this.viewCount = viewCount;
|
||||
}
|
||||
|
||||
public Integer getLikeCount() {
|
||||
return likeCount;
|
||||
}
|
||||
|
||||
public void setLikeCount(Integer likeCount) {
|
||||
this.likeCount = likeCount;
|
||||
}
|
||||
|
||||
public Integer getCollectCount() {
|
||||
return collectCount;
|
||||
}
|
||||
|
||||
public void setCollectCount(Integer collectCount) {
|
||||
this.collectCount = collectCount;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Boolean getIsRecommend() {
|
||||
return isRecommend;
|
||||
}
|
||||
|
||||
public void setIsRecommend(Boolean isRecommend) {
|
||||
this.isRecommend = isRecommend;
|
||||
}
|
||||
|
||||
public Boolean getIsBanner() {
|
||||
return isBanner;
|
||||
}
|
||||
|
||||
public void setIsBanner(Boolean isBanner) {
|
||||
this.isBanner = isBanner;
|
||||
}
|
||||
|
||||
public Date getPublishTime() {
|
||||
return publishTime;
|
||||
}
|
||||
|
||||
public void setPublishTime(Date publishTime) {
|
||||
this.publishTime = publishTime;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbResource{" +
|
||||
"id=" + getID() +
|
||||
", title='" + title + '\'' +
|
||||
", categoryID='" + categoryID + '\'' +
|
||||
", author='" + author + '\'' +
|
||||
", status=" + status +
|
||||
", viewCount=" + viewCount +
|
||||
", likeCount=" + likeCount +
|
||||
", isRecommend=" + isRecommend +
|
||||
", publishTime=" + publishTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 资源分类表
|
||||
* @filename TbResourceCategory.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbResourceCategory extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 分类唯一标识
|
||||
*/
|
||||
private String categoryID;
|
||||
|
||||
/**
|
||||
* @description 分类名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 父分类ID
|
||||
*/
|
||||
private String parentID;
|
||||
|
||||
/**
|
||||
* @description 分类描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 分类图标
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getCategoryID() {
|
||||
return categoryID;
|
||||
}
|
||||
|
||||
public void setCategoryID(String categoryID) {
|
||||
this.categoryID = categoryID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getParentID() {
|
||||
return parentID;
|
||||
}
|
||||
|
||||
public void setParentID(String parentID) {
|
||||
this.parentID = parentID;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbResourceCategory{" +
|
||||
"id=" + getID() +
|
||||
", categoryID='" + categoryID + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", parentID='" + parentID + '\'' +
|
||||
", orderNum=" + orderNum +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 资源推荐表
|
||||
* @filename TbResourceRecommend.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbResourceRecommend extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 推荐理由
|
||||
*/
|
||||
private String reason;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getReason() {
|
||||
return reason;
|
||||
}
|
||||
|
||||
public void setReason(String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbResourceRecommend{" +
|
||||
"id=" + getID() +
|
||||
", resourceID='" + resourceID + '\'' +
|
||||
", orderNum=" + orderNum +
|
||||
", reason='" + reason + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 资源标签关联表
|
||||
* @filename TbResourceTag.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbResourceTag extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 标签ID
|
||||
*/
|
||||
private String tagID;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public String getTagID() {
|
||||
return tagID;
|
||||
}
|
||||
|
||||
public void setTagID(String tagID) {
|
||||
this.tagID = tagID;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbResourceTag{" +
|
||||
"id=" + getID() +
|
||||
", resourceID='" + resourceID + '\'' +
|
||||
", tagID='" + tagID + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package org.xyzh.common.dto.resource;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 标签表
|
||||
* @filename TbTag.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbTag extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 标签唯一标识
|
||||
*/
|
||||
private String tagID;
|
||||
|
||||
/**
|
||||
* @description 标签名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 标签颜色
|
||||
*/
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* @description 标签描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getTagID() {
|
||||
return tagID;
|
||||
}
|
||||
|
||||
public void setTagID(String tagID) {
|
||||
this.tagID = tagID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbTag{" +
|
||||
"id=" + getID() +
|
||||
", tagID='" + tagID + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", color='" + color + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 课程表
|
||||
* @filename TbCourse.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbCourse extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 课程唯一标识
|
||||
*/
|
||||
private String courseID;
|
||||
|
||||
/**
|
||||
* @description 课程名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 课程封面图片
|
||||
*/
|
||||
private String coverImage;
|
||||
|
||||
/**
|
||||
* @description 课程描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 课程内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* @description 课程时长(分钟)
|
||||
*/
|
||||
private Integer duration;
|
||||
|
||||
/**
|
||||
* @description 授课老师
|
||||
*/
|
||||
private String teacher;
|
||||
|
||||
/**
|
||||
* @description 状态(0未上线 1已上线 2已下架)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 浏览次数
|
||||
*/
|
||||
private Integer viewCount;
|
||||
|
||||
/**
|
||||
* @description 学习人数
|
||||
*/
|
||||
private Integer learnCount;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getCourseID() {
|
||||
return courseID;
|
||||
}
|
||||
|
||||
public void setCourseID(String courseID) {
|
||||
this.courseID = courseID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCoverImage() {
|
||||
return coverImage;
|
||||
}
|
||||
|
||||
public void setCoverImage(String coverImage) {
|
||||
this.coverImage = coverImage;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Integer getDuration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
public void setDuration(Integer duration) {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
public String getTeacher() {
|
||||
return teacher;
|
||||
}
|
||||
|
||||
public void setTeacher(String teacher) {
|
||||
this.teacher = teacher;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getViewCount() {
|
||||
return viewCount;
|
||||
}
|
||||
|
||||
public void setViewCount(Integer viewCount) {
|
||||
this.viewCount = viewCount;
|
||||
}
|
||||
|
||||
public Integer getLearnCount() {
|
||||
return learnCount;
|
||||
}
|
||||
|
||||
public void setLearnCount(Integer learnCount) {
|
||||
this.learnCount = learnCount;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbCourse{" +
|
||||
"id=" + getID() +
|
||||
", courseID='" + courseID + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", coverImage='" + coverImage + '\'' +
|
||||
", teacher='" + teacher + '\'' +
|
||||
", status=" + status +
|
||||
", viewCount=" + viewCount +
|
||||
", learnCount=" + learnCount +
|
||||
", creator='" + creator + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 课程章节表
|
||||
* @filename TbCourseChapter.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbCourseChapter extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 课程ID
|
||||
*/
|
||||
private String courseID;
|
||||
|
||||
/**
|
||||
* @description 章节名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 章节内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* @description 视频URL
|
||||
*/
|
||||
private String videoUrl;
|
||||
|
||||
/**
|
||||
* @description 章节时长(分钟)
|
||||
*/
|
||||
private Integer duration;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getCourseID() {
|
||||
return courseID;
|
||||
}
|
||||
|
||||
public void setCourseID(String courseID) {
|
||||
this.courseID = courseID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getVideoUrl() {
|
||||
return videoUrl;
|
||||
}
|
||||
|
||||
public void setVideoUrl(String videoUrl) {
|
||||
this.videoUrl = videoUrl;
|
||||
}
|
||||
|
||||
public Integer getDuration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
public void setDuration(Integer duration) {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbCourseChapter{" +
|
||||
"id=" + getID() +
|
||||
", courseID='" + courseID + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", videoUrl='" + videoUrl + '\'' +
|
||||
", duration=" + duration +
|
||||
", orderNum=" + orderNum +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 课程标签关联表
|
||||
* @filename TbCourseTag.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbCourseTag extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 课程ID
|
||||
*/
|
||||
private String courseID;
|
||||
|
||||
/**
|
||||
* @description 标签ID
|
||||
*/
|
||||
private String tagID;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
public String getCourseID() {
|
||||
return courseID;
|
||||
}
|
||||
|
||||
public void setCourseID(String courseID) {
|
||||
this.courseID = courseID;
|
||||
}
|
||||
|
||||
public String getTagID() {
|
||||
return tagID;
|
||||
}
|
||||
|
||||
public void setTagID(String tagID) {
|
||||
this.tagID = tagID;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbCourseTag{" +
|
||||
"id=" + getID() +
|
||||
", courseID='" + courseID + '\'' +
|
||||
", tagID='" + tagID + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 学习记录表
|
||||
* @filename TbLearningRecord.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbLearningRecord extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 资源类型(1资源 2课程 3章节)
|
||||
*/
|
||||
private Integer resourceType;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 任务ID
|
||||
*/
|
||||
private String taskID;
|
||||
|
||||
/**
|
||||
* @description 学习时长(秒)
|
||||
*/
|
||||
private Integer duration;
|
||||
|
||||
/**
|
||||
* @description 学习进度(0-100)
|
||||
*/
|
||||
private BigDecimal progress;
|
||||
|
||||
/**
|
||||
* @description 是否完成
|
||||
*/
|
||||
private Boolean isComplete;
|
||||
|
||||
/**
|
||||
* @description 完成时间
|
||||
*/
|
||||
private Date completeTime;
|
||||
|
||||
/**
|
||||
* @description 最后学习时间
|
||||
*/
|
||||
private Date lastLearnTime;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Integer getResourceType() {
|
||||
return resourceType;
|
||||
}
|
||||
|
||||
public void setResourceType(Integer resourceType) {
|
||||
this.resourceType = resourceType;
|
||||
}
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public String getTaskID() {
|
||||
return taskID;
|
||||
}
|
||||
|
||||
public void setTaskID(String taskID) {
|
||||
this.taskID = taskID;
|
||||
}
|
||||
|
||||
public Integer getDuration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
public void setDuration(Integer duration) {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
public BigDecimal getProgress() {
|
||||
return progress;
|
||||
}
|
||||
|
||||
public void setProgress(BigDecimal progress) {
|
||||
this.progress = progress;
|
||||
}
|
||||
|
||||
public Boolean getIsComplete() {
|
||||
return isComplete;
|
||||
}
|
||||
|
||||
public void setIsComplete(Boolean isComplete) {
|
||||
this.isComplete = isComplete;
|
||||
}
|
||||
|
||||
public Date getCompleteTime() {
|
||||
return completeTime;
|
||||
}
|
||||
|
||||
public void setCompleteTime(Date completeTime) {
|
||||
this.completeTime = completeTime;
|
||||
}
|
||||
|
||||
public Date getLastLearnTime() {
|
||||
return lastLearnTime;
|
||||
}
|
||||
|
||||
public void setLastLearnTime(Date lastLearnTime) {
|
||||
this.lastLearnTime = lastLearnTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbLearningRecord{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", resourceType=" + resourceType +
|
||||
", resourceID='" + resourceID + '\'' +
|
||||
", taskID='" + taskID + '\'' +
|
||||
", duration=" + duration +
|
||||
", progress=" + progress +
|
||||
", isComplete=" + isComplete +
|
||||
", lastLearnTime=" + lastLearnTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 学习统计表
|
||||
* @filename TbLearningStatistics.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbLearningStatistics extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 统计日期
|
||||
*/
|
||||
private Date statDate;
|
||||
|
||||
/**
|
||||
* @description 总学习时长(秒)
|
||||
*/
|
||||
private Integer totalDuration;
|
||||
|
||||
/**
|
||||
* @description 学习资源数量
|
||||
*/
|
||||
private Integer resourceCount;
|
||||
|
||||
/**
|
||||
* @description 学习课程数量
|
||||
*/
|
||||
private Integer courseCount;
|
||||
|
||||
/**
|
||||
* @description 完成数量
|
||||
*/
|
||||
private Integer completeCount;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Date getStatDate() {
|
||||
return statDate;
|
||||
}
|
||||
|
||||
public void setStatDate(Date statDate) {
|
||||
this.statDate = statDate;
|
||||
}
|
||||
|
||||
public Integer getTotalDuration() {
|
||||
return totalDuration;
|
||||
}
|
||||
|
||||
public void setTotalDuration(Integer totalDuration) {
|
||||
this.totalDuration = totalDuration;
|
||||
}
|
||||
|
||||
public Integer getResourceCount() {
|
||||
return resourceCount;
|
||||
}
|
||||
|
||||
public void setResourceCount(Integer resourceCount) {
|
||||
this.resourceCount = resourceCount;
|
||||
}
|
||||
|
||||
public Integer getCourseCount() {
|
||||
return courseCount;
|
||||
}
|
||||
|
||||
public void setCourseCount(Integer courseCount) {
|
||||
this.courseCount = courseCount;
|
||||
}
|
||||
|
||||
public Integer getCompleteCount() {
|
||||
return completeCount;
|
||||
}
|
||||
|
||||
public void setCompleteCount(Integer completeCount) {
|
||||
this.completeCount = completeCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbLearningStatistics{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", statDate=" + statDate +
|
||||
", totalDuration=" + totalDuration +
|
||||
", resourceCount=" + resourceCount +
|
||||
", courseCount=" + courseCount +
|
||||
", completeCount=" + completeCount +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 学习任务表
|
||||
* @filename TbLearningTask.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbLearningTask extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 任务唯一标识
|
||||
*/
|
||||
private String taskID;
|
||||
|
||||
/**
|
||||
* @description 任务名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 任务描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 开始时间
|
||||
*/
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* @description 结束时间
|
||||
*/
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* @description 状态(0草稿 1进行中 2已结束)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getTaskID() {
|
||||
return taskID;
|
||||
}
|
||||
|
||||
public void setTaskID(String taskID) {
|
||||
this.taskID = taskID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Date getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Date startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Date endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbLearningTask{" +
|
||||
"id=" + getID() +
|
||||
", taskID='" + taskID + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", startTime=" + startTime +
|
||||
", endTime=" + endTime +
|
||||
", status=" + status +
|
||||
", creator='" + creator + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 任务课程关联表
|
||||
* @filename TbTaskCourse.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbTaskCourse extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 任务ID
|
||||
*/
|
||||
private String taskID;
|
||||
|
||||
/**
|
||||
* @description 课程ID
|
||||
*/
|
||||
private String courseID;
|
||||
|
||||
/**
|
||||
* @description 是否必须完成
|
||||
*/
|
||||
private Boolean required;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
public String getTaskID() {
|
||||
return taskID;
|
||||
}
|
||||
|
||||
public void setTaskID(String taskID) {
|
||||
this.taskID = taskID;
|
||||
}
|
||||
|
||||
public String getCourseID() {
|
||||
return courseID;
|
||||
}
|
||||
|
||||
public void setCourseID(String courseID) {
|
||||
this.courseID = courseID;
|
||||
}
|
||||
|
||||
public Boolean getRequired() {
|
||||
return required;
|
||||
}
|
||||
|
||||
public void setRequired(Boolean required) {
|
||||
this.required = required;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbTaskCourse{" +
|
||||
"id=" + getID() +
|
||||
", taskID='" + taskID + '\'' +
|
||||
", courseID='" + courseID + '\'' +
|
||||
", required=" + required +
|
||||
", orderNum=" + orderNum +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 任务资源关联表
|
||||
* @filename TbTaskResource.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbTaskResource extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 任务ID
|
||||
*/
|
||||
private String taskID;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 是否必须完成
|
||||
*/
|
||||
private Boolean required;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
public String getTaskID() {
|
||||
return taskID;
|
||||
}
|
||||
|
||||
public void setTaskID(String taskID) {
|
||||
this.taskID = taskID;
|
||||
}
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public Boolean getRequired() {
|
||||
return required;
|
||||
}
|
||||
|
||||
public void setRequired(Boolean required) {
|
||||
this.required = required;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbTaskResource{" +
|
||||
"id=" + getID() +
|
||||
", taskID='" + taskID + '\'' +
|
||||
", resourceID='" + resourceID + '\'' +
|
||||
", required=" + required +
|
||||
", orderNum=" + orderNum +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package org.xyzh.common.dto.study;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 任务用户表
|
||||
* @filename TbTaskUser.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbTaskUser extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 任务ID
|
||||
*/
|
||||
private String taskID;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 部门ID
|
||||
*/
|
||||
private String deptID;
|
||||
|
||||
/**
|
||||
* @description 完成状态(0未完成 1已完成)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 完成进度(0-100)
|
||||
*/
|
||||
private BigDecimal progress;
|
||||
|
||||
/**
|
||||
* @description 完成时间
|
||||
*/
|
||||
private Date completeTime;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
public String getTaskID() {
|
||||
return taskID;
|
||||
}
|
||||
|
||||
public void setTaskID(String taskID) {
|
||||
this.taskID = taskID;
|
||||
}
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getDeptID() {
|
||||
return deptID;
|
||||
}
|
||||
|
||||
public void setDeptID(String deptID) {
|
||||
this.deptID = deptID;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public BigDecimal getProgress() {
|
||||
return progress;
|
||||
}
|
||||
|
||||
public void setProgress(BigDecimal progress) {
|
||||
this.progress = progress;
|
||||
}
|
||||
|
||||
public Date getCompleteTime() {
|
||||
return completeTime;
|
||||
}
|
||||
|
||||
public void setCompleteTime(Date completeTime) {
|
||||
this.completeTime = completeTime;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbTaskUser{" +
|
||||
"id=" + getID() +
|
||||
", taskID='" + taskID + '\'' +
|
||||
", userID='" + userID + '\'' +
|
||||
", deptID='" + deptID + '\'' +
|
||||
", status=" + status +
|
||||
", progress=" + progress +
|
||||
", completeTime=" + completeTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 系统配置表
|
||||
* @filename TbSysConfig.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysConfig extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 配置键
|
||||
*/
|
||||
private String configKey;
|
||||
|
||||
/**
|
||||
* @description 配置值
|
||||
*/
|
||||
private String configValue;
|
||||
|
||||
/**
|
||||
* @description 配置类型(string/number/boolean/json)
|
||||
*/
|
||||
private String configType;
|
||||
|
||||
/**
|
||||
* @description 配置分组
|
||||
*/
|
||||
private String configGroup;
|
||||
|
||||
/**
|
||||
* @description 配置描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 是否系统配置
|
||||
*/
|
||||
private Boolean isSystem;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getConfigKey() {
|
||||
return configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey) {
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
public String getConfigValue() {
|
||||
return configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue) {
|
||||
this.configValue = configValue;
|
||||
}
|
||||
|
||||
public String getConfigType() {
|
||||
return configType;
|
||||
}
|
||||
|
||||
public void setConfigType(String configType) {
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
public String getConfigGroup() {
|
||||
return configGroup;
|
||||
}
|
||||
|
||||
public void setConfigGroup(String configGroup) {
|
||||
this.configGroup = configGroup;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Boolean getIsSystem() {
|
||||
return isSystem;
|
||||
}
|
||||
|
||||
public void setIsSystem(Boolean isSystem) {
|
||||
this.isSystem = isSystem;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysConfig{" +
|
||||
"id=" + getID() +
|
||||
", configKey='" + configKey + '\'' +
|
||||
", configValue='" + configValue + '\'' +
|
||||
", configType='" + configType + '\'' +
|
||||
", configGroup='" + configGroup + '\'' +
|
||||
", isSystem=" + isSystem +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 字典数据表
|
||||
* @filename TbSysDictData.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysDictData extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 字典类型
|
||||
*/
|
||||
private String dictType;
|
||||
|
||||
/**
|
||||
* @description 字典标签
|
||||
*/
|
||||
private String dictLabel;
|
||||
|
||||
/**
|
||||
* @description 字典值
|
||||
*/
|
||||
private String dictValue;
|
||||
|
||||
/**
|
||||
* @description 排序
|
||||
*/
|
||||
private Integer dictSort;
|
||||
|
||||
/**
|
||||
* @description 样式类
|
||||
*/
|
||||
private String cssClass;
|
||||
|
||||
/**
|
||||
* @description 列表样式
|
||||
*/
|
||||
private String listClass;
|
||||
|
||||
/**
|
||||
* @description 是否默认
|
||||
*/
|
||||
private Boolean isDefault;
|
||||
|
||||
/**
|
||||
* @description 状态(0禁用 1启用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getDictType() {
|
||||
return dictType;
|
||||
}
|
||||
|
||||
public void setDictType(String dictType) {
|
||||
this.dictType = dictType;
|
||||
}
|
||||
|
||||
public String getDictLabel() {
|
||||
return dictLabel;
|
||||
}
|
||||
|
||||
public void setDictLabel(String dictLabel) {
|
||||
this.dictLabel = dictLabel;
|
||||
}
|
||||
|
||||
public String getDictValue() {
|
||||
return dictValue;
|
||||
}
|
||||
|
||||
public void setDictValue(String dictValue) {
|
||||
this.dictValue = dictValue;
|
||||
}
|
||||
|
||||
public Integer getDictSort() {
|
||||
return dictSort;
|
||||
}
|
||||
|
||||
public void setDictSort(Integer dictSort) {
|
||||
this.dictSort = dictSort;
|
||||
}
|
||||
|
||||
public String getCssClass() {
|
||||
return cssClass;
|
||||
}
|
||||
|
||||
public void setCssClass(String cssClass) {
|
||||
this.cssClass = cssClass;
|
||||
}
|
||||
|
||||
public String getListClass() {
|
||||
return listClass;
|
||||
}
|
||||
|
||||
public void setListClass(String listClass) {
|
||||
this.listClass = listClass;
|
||||
}
|
||||
|
||||
public Boolean getIsDefault() {
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Boolean isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysDictData{" +
|
||||
"id=" + getID() +
|
||||
", dictType='" + dictType + '\'' +
|
||||
", dictLabel='" + dictLabel + '\'' +
|
||||
", dictValue='" + dictValue + '\'' +
|
||||
", dictSort=" + dictSort +
|
||||
", status=" + status +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 字典类型表
|
||||
* @filename TbSysDictType.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysDictType extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 字典类型
|
||||
*/
|
||||
private String dictType;
|
||||
|
||||
/**
|
||||
* @description 字典名称
|
||||
*/
|
||||
private String dictName;
|
||||
|
||||
/**
|
||||
* @description 描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 状态(0禁用 1启用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getDictType() {
|
||||
return dictType;
|
||||
}
|
||||
|
||||
public void setDictType(String dictType) {
|
||||
this.dictType = dictType;
|
||||
}
|
||||
|
||||
public String getDictName() {
|
||||
return dictName;
|
||||
}
|
||||
|
||||
public void setDictName(String dictName) {
|
||||
this.dictName = dictName;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysDictType{" +
|
||||
"id=" + getID() +
|
||||
", dictType='" + dictType + '\'' +
|
||||
", dictName='" + dictName + '\'' +
|
||||
", status=" + status +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 文件上传记录表
|
||||
* @filename TbSysFile.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysFile extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 文件名
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* @description 原始文件名
|
||||
*/
|
||||
private String originalName;
|
||||
|
||||
/**
|
||||
* @description 文件路径
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
* @description 访问URL
|
||||
*/
|
||||
private String fileUrl;
|
||||
|
||||
/**
|
||||
* @description 文件大小(字节)
|
||||
*/
|
||||
private Long fileSize;
|
||||
|
||||
/**
|
||||
* @description 文件类型
|
||||
*/
|
||||
private String fileType;
|
||||
|
||||
/**
|
||||
* @description MIME类型
|
||||
*/
|
||||
private String mimeType;
|
||||
|
||||
/**
|
||||
* @description 所属模块
|
||||
*/
|
||||
private String module;
|
||||
|
||||
/**
|
||||
* @description 业务ID
|
||||
*/
|
||||
private String businessID;
|
||||
|
||||
/**
|
||||
* @description 上传者
|
||||
*/
|
||||
private String uploader;
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getOriginalName() {
|
||||
return originalName;
|
||||
}
|
||||
|
||||
public void setOriginalName(String originalName) {
|
||||
this.originalName = originalName;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
public Long getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
|
||||
public void setFileSize(Long fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getMimeType() {
|
||||
return mimeType;
|
||||
}
|
||||
|
||||
public void setMimeType(String mimeType) {
|
||||
this.mimeType = mimeType;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
public String getBusinessID() {
|
||||
return businessID;
|
||||
}
|
||||
|
||||
public void setBusinessID(String businessID) {
|
||||
this.businessID = businessID;
|
||||
}
|
||||
|
||||
public String getUploader() {
|
||||
return uploader;
|
||||
}
|
||||
|
||||
public void setUploader(String uploader) {
|
||||
this.uploader = uploader;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysFile{" +
|
||||
"id=" + getID() +
|
||||
", fileName='" + fileName + '\'' +
|
||||
", originalName='" + originalName + '\'' +
|
||||
", fileSize=" + fileSize +
|
||||
", fileType='" + fileType + '\'' +
|
||||
", module='" + module + '\'' +
|
||||
", businessID='" + businessID + '\'' +
|
||||
", uploader='" + uploader + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.xyzh.common.dto.log;
|
||||
package org.xyzh.common.dto.system;
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
@@ -0,0 +1,134 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 系统通知表
|
||||
* @filename TbSysNotification.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysNotification extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 通知类型(1系统通知 2任务通知 3成就通知)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* @description 通知标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* @description 通知内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* @description 链接类型(1资源 2课程 3任务)
|
||||
*/
|
||||
private Integer linkType;
|
||||
|
||||
/**
|
||||
* @description 链接ID
|
||||
*/
|
||||
private String linkID;
|
||||
|
||||
/**
|
||||
* @description 是否已读
|
||||
*/
|
||||
private Boolean isRead;
|
||||
|
||||
/**
|
||||
* @description 阅读时间
|
||||
*/
|
||||
private Date readTime;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Integer getLinkType() {
|
||||
return linkType;
|
||||
}
|
||||
|
||||
public void setLinkType(Integer linkType) {
|
||||
this.linkType = linkType;
|
||||
}
|
||||
|
||||
public String getLinkID() {
|
||||
return linkID;
|
||||
}
|
||||
|
||||
public void setLinkID(String linkID) {
|
||||
this.linkID = linkID;
|
||||
}
|
||||
|
||||
public Boolean getIsRead() {
|
||||
return isRead;
|
||||
}
|
||||
|
||||
public void setIsRead(Boolean isRead) {
|
||||
this.isRead = isRead;
|
||||
}
|
||||
|
||||
public Date getReadTime() {
|
||||
return readTime;
|
||||
}
|
||||
|
||||
public void setReadTime(Date readTime) {
|
||||
this.readTime = readTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysNotification{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", type=" + type +
|
||||
", title='" + title + '\'' +
|
||||
", linkType=" + linkType +
|
||||
", linkID='" + linkID + '\'' +
|
||||
", isRead=" + isRead +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 操作日志表
|
||||
* @filename TbSysOperationLog.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysOperationLog extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 用户名
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* @description 操作模块
|
||||
*/
|
||||
private String module;
|
||||
|
||||
/**
|
||||
* @description 操作类型
|
||||
*/
|
||||
private String operation;
|
||||
|
||||
/**
|
||||
* @description 请求方法
|
||||
*/
|
||||
private String method;
|
||||
|
||||
/**
|
||||
* @description 请求URL
|
||||
*/
|
||||
private String requestUrl;
|
||||
|
||||
/**
|
||||
* @description 请求方式(GET/POST等)
|
||||
*/
|
||||
private String requestMethod;
|
||||
|
||||
/**
|
||||
* @description 请求参数
|
||||
*/
|
||||
private String requestParams;
|
||||
|
||||
/**
|
||||
* @description 响应数据
|
||||
*/
|
||||
private String responseData;
|
||||
|
||||
/**
|
||||
* @description IP地址
|
||||
*/
|
||||
private String ipAddress;
|
||||
|
||||
/**
|
||||
* @description IP来源
|
||||
*/
|
||||
private String ipSource;
|
||||
|
||||
/**
|
||||
* @description 浏览器
|
||||
*/
|
||||
private String browser;
|
||||
|
||||
/**
|
||||
* @description 操作系统
|
||||
*/
|
||||
private String os;
|
||||
|
||||
/**
|
||||
* @description 操作状态(0失败 1成功)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @description 错误消息
|
||||
*/
|
||||
private String errorMessage;
|
||||
|
||||
/**
|
||||
* @description 执行时长(毫秒)
|
||||
*/
|
||||
private Integer executeTime;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
public String getOperation() {
|
||||
return operation;
|
||||
}
|
||||
|
||||
public void setOperation(String operation) {
|
||||
this.operation = operation;
|
||||
}
|
||||
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public String getRequestUrl() {
|
||||
return requestUrl;
|
||||
}
|
||||
|
||||
public void setRequestUrl(String requestUrl) {
|
||||
this.requestUrl = requestUrl;
|
||||
}
|
||||
|
||||
public String getRequestMethod() {
|
||||
return requestMethod;
|
||||
}
|
||||
|
||||
public void setRequestMethod(String requestMethod) {
|
||||
this.requestMethod = requestMethod;
|
||||
}
|
||||
|
||||
public String getRequestParams() {
|
||||
return requestParams;
|
||||
}
|
||||
|
||||
public void setRequestParams(String requestParams) {
|
||||
this.requestParams = requestParams;
|
||||
}
|
||||
|
||||
public String getResponseData() {
|
||||
return responseData;
|
||||
}
|
||||
|
||||
public void setResponseData(String responseData) {
|
||||
this.responseData = responseData;
|
||||
}
|
||||
|
||||
public String getIpAddress() {
|
||||
return ipAddress;
|
||||
}
|
||||
|
||||
public void setIpAddress(String ipAddress) {
|
||||
this.ipAddress = ipAddress;
|
||||
}
|
||||
|
||||
public String getIpSource() {
|
||||
return ipSource;
|
||||
}
|
||||
|
||||
public void setIpSource(String ipSource) {
|
||||
this.ipSource = ipSource;
|
||||
}
|
||||
|
||||
public String getBrowser() {
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser) {
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs() {
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os) {
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getErrorMessage() {
|
||||
return errorMessage;
|
||||
}
|
||||
|
||||
public void setErrorMessage(String errorMessage) {
|
||||
this.errorMessage = errorMessage;
|
||||
}
|
||||
|
||||
public Integer getExecuteTime() {
|
||||
return executeTime;
|
||||
}
|
||||
|
||||
public void setExecuteTime(Integer executeTime) {
|
||||
this.executeTime = executeTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysOperationLog{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", username='" + username + '\'' +
|
||||
", module='" + module + '\'' +
|
||||
", operation='" + operation + '\'' +
|
||||
", status=" + status +
|
||||
", executeTime=" + executeTime +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package org.xyzh.common.dto.system;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 系统访问统计表
|
||||
* @filename TbSysVisitStatistics.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbSysVisitStatistics extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 统计日期
|
||||
*/
|
||||
private Date statDate;
|
||||
|
||||
/**
|
||||
* @description 总访问量
|
||||
*/
|
||||
private Integer totalVisits;
|
||||
|
||||
/**
|
||||
* @description 独立访客数
|
||||
*/
|
||||
private Integer uniqueVisitors;
|
||||
|
||||
/**
|
||||
* @description 新增用户数
|
||||
*/
|
||||
private Integer newUsers;
|
||||
|
||||
/**
|
||||
* @description 活跃用户数
|
||||
*/
|
||||
private Integer activeUsers;
|
||||
|
||||
/**
|
||||
* @description 页面浏览量
|
||||
*/
|
||||
private Integer pageViews;
|
||||
|
||||
/**
|
||||
* @description 平均访问时长(秒)
|
||||
*/
|
||||
private Integer avgVisitDuration;
|
||||
|
||||
public Date getStatDate() {
|
||||
return statDate;
|
||||
}
|
||||
|
||||
public void setStatDate(Date statDate) {
|
||||
this.statDate = statDate;
|
||||
}
|
||||
|
||||
public Integer getTotalVisits() {
|
||||
return totalVisits;
|
||||
}
|
||||
|
||||
public void setTotalVisits(Integer totalVisits) {
|
||||
this.totalVisits = totalVisits;
|
||||
}
|
||||
|
||||
public Integer getUniqueVisitors() {
|
||||
return uniqueVisitors;
|
||||
}
|
||||
|
||||
public void setUniqueVisitors(Integer uniqueVisitors) {
|
||||
this.uniqueVisitors = uniqueVisitors;
|
||||
}
|
||||
|
||||
public Integer getNewUsers() {
|
||||
return newUsers;
|
||||
}
|
||||
|
||||
public void setNewUsers(Integer newUsers) {
|
||||
this.newUsers = newUsers;
|
||||
}
|
||||
|
||||
public Integer getActiveUsers() {
|
||||
return activeUsers;
|
||||
}
|
||||
|
||||
public void setActiveUsers(Integer activeUsers) {
|
||||
this.activeUsers = activeUsers;
|
||||
}
|
||||
|
||||
public Integer getPageViews() {
|
||||
return pageViews;
|
||||
}
|
||||
|
||||
public void setPageViews(Integer pageViews) {
|
||||
this.pageViews = pageViews;
|
||||
}
|
||||
|
||||
public Integer getAvgVisitDuration() {
|
||||
return avgVisitDuration;
|
||||
}
|
||||
|
||||
public void setAvgVisitDuration(Integer avgVisitDuration) {
|
||||
this.avgVisitDuration = avgVisitDuration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysVisitStatistics{" +
|
||||
"id=" + getID() +
|
||||
", statDate=" + statDate +
|
||||
", totalVisits=" + totalVisits +
|
||||
", uniqueVisitors=" + uniqueVisitors +
|
||||
", newUsers=" + newUsers +
|
||||
", activeUsers=" + activeUsers +
|
||||
", pageViews=" + pageViews +
|
||||
", avgVisitDuration=" + avgVisitDuration +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
package org.xyzh.common.dto.usercenter;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 成就表
|
||||
* @filename TbAchievement.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbAchievement extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 成就唯一标识
|
||||
*/
|
||||
private String achievementID;
|
||||
|
||||
/**
|
||||
* @description 成就名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @description 成就描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @description 成就图标
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* @description 成就类型(1勋章 2等级)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* @description 成就等级
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* @description 获取条件类型(1学习时长 2资源数量 3课程数量 4连续学习天数)
|
||||
*/
|
||||
private Integer conditionType;
|
||||
|
||||
/**
|
||||
* @description 条件值
|
||||
*/
|
||||
private Integer conditionValue;
|
||||
|
||||
/**
|
||||
* @description 获得积分
|
||||
*/
|
||||
private Integer points;
|
||||
|
||||
/**
|
||||
* @description 排序号
|
||||
*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* @description 更新者
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getAchievementID() {
|
||||
return achievementID;
|
||||
}
|
||||
|
||||
public void setAchievementID(String achievementID) {
|
||||
this.achievementID = achievementID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Integer getConditionType() {
|
||||
return conditionType;
|
||||
}
|
||||
|
||||
public void setConditionType(Integer conditionType) {
|
||||
this.conditionType = conditionType;
|
||||
}
|
||||
|
||||
public Integer getConditionValue() {
|
||||
return conditionValue;
|
||||
}
|
||||
|
||||
public void setConditionValue(Integer conditionValue) {
|
||||
this.conditionValue = conditionValue;
|
||||
}
|
||||
|
||||
public Integer getPoints() {
|
||||
return points;
|
||||
}
|
||||
|
||||
public void setPoints(Integer points) {
|
||||
this.points = points;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbAchievement{" +
|
||||
"id=" + getID() +
|
||||
", achievementID='" + achievementID + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", type=" + type +
|
||||
", level=" + level +
|
||||
", conditionType=" + conditionType +
|
||||
", conditionValue=" + conditionValue +
|
||||
", points=" + points +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package org.xyzh.common.dto.usercenter;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 积分记录表
|
||||
* @filename TbPointsRecord.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbPointsRecord extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 积分变动
|
||||
*/
|
||||
private Integer points;
|
||||
|
||||
/**
|
||||
* @description 类型(1获得 2消费)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* @description 来源类型(1学习资源 2学习课程 3完成任务 4获得成就)
|
||||
*/
|
||||
private Integer sourceType;
|
||||
|
||||
/**
|
||||
* @description 来源ID
|
||||
*/
|
||||
private String sourceID;
|
||||
|
||||
/**
|
||||
* @description 说明
|
||||
*/
|
||||
private String description;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Integer getPoints() {
|
||||
return points;
|
||||
}
|
||||
|
||||
public void setPoints(Integer points) {
|
||||
this.points = points;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getSourceType() {
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
public void setSourceType(Integer sourceType) {
|
||||
this.sourceType = sourceType;
|
||||
}
|
||||
|
||||
public String getSourceID() {
|
||||
return sourceID;
|
||||
}
|
||||
|
||||
public void setSourceID(String sourceID) {
|
||||
this.sourceID = sourceID;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbPointsRecord{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", points=" + points +
|
||||
", type=" + type +
|
||||
", sourceType=" + sourceType +
|
||||
", sourceID='" + sourceID + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package org.xyzh.common.dto.usercenter;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 用户成就表
|
||||
* @filename TbUserAchievement.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbUserAchievement extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 成就ID
|
||||
*/
|
||||
private String achievementID;
|
||||
|
||||
/**
|
||||
* @description 获得时间
|
||||
*/
|
||||
private Date obtainTime;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getAchievementID() {
|
||||
return achievementID;
|
||||
}
|
||||
|
||||
public void setAchievementID(String achievementID) {
|
||||
this.achievementID = achievementID;
|
||||
}
|
||||
|
||||
public Date getObtainTime() {
|
||||
return obtainTime;
|
||||
}
|
||||
|
||||
public void setObtainTime(Date obtainTime) {
|
||||
this.obtainTime = obtainTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbUserAchievement{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", achievementID='" + achievementID + '\'' +
|
||||
", obtainTime=" + obtainTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package org.xyzh.common.dto.usercenter;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 用户浏览记录表
|
||||
* @filename TbUserBrowseRecord.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbUserBrowseRecord extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 浏览类型(1资源 2课程)
|
||||
*/
|
||||
private Integer browseType;
|
||||
|
||||
/**
|
||||
* @description 浏览对象ID
|
||||
*/
|
||||
private String browseID;
|
||||
|
||||
/**
|
||||
* @description 浏览时间
|
||||
*/
|
||||
private Date browseTime;
|
||||
|
||||
/**
|
||||
* @description IP地址
|
||||
*/
|
||||
private String ipAddress;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Integer getBrowseType() {
|
||||
return browseType;
|
||||
}
|
||||
|
||||
public void setBrowseType(Integer browseType) {
|
||||
this.browseType = browseType;
|
||||
}
|
||||
|
||||
public String getBrowseID() {
|
||||
return browseID;
|
||||
}
|
||||
|
||||
public void setBrowseID(String browseID) {
|
||||
this.browseID = browseID;
|
||||
}
|
||||
|
||||
public Date getBrowseTime() {
|
||||
return browseTime;
|
||||
}
|
||||
|
||||
public void setBrowseTime(Date browseTime) {
|
||||
this.browseTime = browseTime;
|
||||
}
|
||||
|
||||
public String getIpAddress() {
|
||||
return ipAddress;
|
||||
}
|
||||
|
||||
public void setIpAddress(String ipAddress) {
|
||||
this.ipAddress = ipAddress;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbUserBrowseRecord{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", browseType=" + browseType +
|
||||
", browseID='" + browseID + '\'' +
|
||||
", browseTime=" + browseTime +
|
||||
", ipAddress='" + ipAddress + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package org.xyzh.common.dto.usercenter;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 用户收藏表
|
||||
* @filename TbUserCollection.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbUserCollection extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 收藏类型(1资源 2课程)
|
||||
*/
|
||||
private Integer collectionType;
|
||||
|
||||
/**
|
||||
* @description 收藏对象ID
|
||||
*/
|
||||
private String collectionID;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Integer getCollectionType() {
|
||||
return collectionType;
|
||||
}
|
||||
|
||||
public void setCollectionType(Integer collectionType) {
|
||||
this.collectionType = collectionType;
|
||||
}
|
||||
|
||||
public String getCollectionID() {
|
||||
return collectionID;
|
||||
}
|
||||
|
||||
public void setCollectionID(String collectionID) {
|
||||
this.collectionID = collectionID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbUserCollection{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", collectionType=" + collectionType +
|
||||
", collectionID='" + collectionID + '\'' +
|
||||
", createTime=" + getCreateTime() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package org.xyzh.common.dto.usercenter;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
|
||||
/**
|
||||
* @description 用户积分表
|
||||
* @filename TbUserPoints.java
|
||||
* @author system
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TbUserPoints extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 用户ID
|
||||
*/
|
||||
private String userID;
|
||||
|
||||
/**
|
||||
* @description 总积分
|
||||
*/
|
||||
private Integer totalPoints;
|
||||
|
||||
/**
|
||||
* @description 当前积分
|
||||
*/
|
||||
private Integer currentPoints;
|
||||
|
||||
/**
|
||||
* @description 用户等级
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public Integer getTotalPoints() {
|
||||
return totalPoints;
|
||||
}
|
||||
|
||||
public void setTotalPoints(Integer totalPoints) {
|
||||
this.totalPoints = totalPoints;
|
||||
}
|
||||
|
||||
public Integer getCurrentPoints() {
|
||||
return currentPoints;
|
||||
}
|
||||
|
||||
public void setCurrentPoints(Integer currentPoints) {
|
||||
this.currentPoints = currentPoints;
|
||||
}
|
||||
|
||||
public Integer getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbUserPoints{" +
|
||||
"id=" + getID() +
|
||||
", userID='" + userID + '\'' +
|
||||
", totalPoints=" + totalPoints +
|
||||
", currentPoints=" + currentPoints +
|
||||
", level=" + level +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user