web-文件接口
This commit is contained in:
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 智能体配置数据访问层
|
||||
* @filename AiAgentConfigMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiAgentConfigMapper extends BaseMapper<TbAiAgentConfig> {
|
||||
* @description 查询智能体配置列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbAiAgentConfig> 智能体配置列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbAiAgentConfig> selectAiAgentConfigs(TbAiAgentConfig filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 对话会话数据访问层
|
||||
* @filename AiConversationMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiConversationMapper extends BaseMapper<TbAiConversation> {
|
||||
* @description 查询对话会话列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbAiConversation> 对话会话列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbAiConversation> selectAiConversations(TbAiConversation filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 知识库数据访问层
|
||||
* @filename AiKnowledgeMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiKnowledgeMapper extends BaseMapper<TbAiKnowledge> {
|
||||
* @description 查询知识库列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbAiKnowledge> 知识库列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbAiKnowledge> selectAiKnowledges(TbAiKnowledge filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 对话消息数据访问层
|
||||
* @filename AiMessageMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiMessageMapper extends BaseMapper<TbAiMessage> {
|
||||
* @description 查询对话消息列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbAiMessage> 对话消息列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbAiMessage> selectAiMessages(TbAiMessage filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 上传文件数据访问层
|
||||
* @filename AiUploadFileMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiUploadFileMapper extends BaseMapper<TbAiUploadFile> {
|
||||
* @description 查询上传文件列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbAiUploadFile> 上传文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbAiUploadFile> selectAiUploadFiles(TbAiUploadFile filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description AI使用统计数据访问层
|
||||
* @filename AiUsageStatisticsMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiUsageStatisticsMapper extends BaseMapper<TbAiUsageStatistics>
|
||||
* @description 查询AI使用统计列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbAiUsageStatistics> AI使用统计列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbAiUsageStatistics> selectAiUsageStatistics(TbAiUsageStatistics filter);
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.xyzh.common.dto.ai.TbAiAgentConfig;
|
||||
/**
|
||||
* @description 智能体配置服务接口
|
||||
* @filename AiAgentConfigService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -17,7 +17,7 @@ public interface AiAgentConfigService {
|
||||
* @description 获取智能体配置列表
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbAiAgentConfig> 配置列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> getAgentConfigList(Integer status);
|
||||
@@ -26,7 +26,7 @@ public interface AiAgentConfigService {
|
||||
* @description 根据ID获取智能体配置详情
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<TbAiAgentConfig> 配置详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> getAgentConfigById(String configID);
|
||||
@@ -35,7 +35,7 @@ public interface AiAgentConfigService {
|
||||
* @description 创建智能体配置
|
||||
* @param config 配置信息
|
||||
* @return ResultDomain<TbAiAgentConfig> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> createAgentConfig(TbAiAgentConfig config);
|
||||
@@ -44,7 +44,7 @@ public interface AiAgentConfigService {
|
||||
* @description 更新智能体配置
|
||||
* @param config 配置信息
|
||||
* @return ResultDomain<TbAiAgentConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> updateAgentConfig(TbAiAgentConfig config);
|
||||
@@ -53,7 +53,7 @@ public interface AiAgentConfigService {
|
||||
* @description 删除智能体配置
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteAgentConfig(String configID);
|
||||
@@ -63,7 +63,7 @@ public interface AiAgentConfigService {
|
||||
* @param configID 配置ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbAiAgentConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> updateAgentStatus(String configID, Integer status);
|
||||
@@ -77,7 +77,7 @@ public interface AiAgentConfigService {
|
||||
* @param maxTokens 最大tokens
|
||||
* @param topP Top P值
|
||||
* @return ResultDomain<TbAiAgentConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> updateAgentModel(String configID, String modelName, String modelProvider,
|
||||
@@ -88,7 +88,7 @@ public interface AiAgentConfigService {
|
||||
* @param configID 配置ID
|
||||
* @param systemPrompt 系统提示词
|
||||
* @return ResultDomain<TbAiAgentConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> updateAgentPrompt(String configID, String systemPrompt);
|
||||
@@ -96,7 +96,7 @@ public interface AiAgentConfigService {
|
||||
/**
|
||||
* @description 获取启用的智能体配置
|
||||
* @return ResultDomain<TbAiAgentConfig> 启用的配置列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> getActiveAgentConfigs();
|
||||
@@ -105,7 +105,7 @@ public interface AiAgentConfigService {
|
||||
* @description 根据名称搜索智能体配置
|
||||
* @param name 智能体名称
|
||||
* @return ResultDomain<TbAiAgentConfig> 搜索结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiAgentConfig> searchAgentConfigsByName(String name);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description AI对话会话服务接口
|
||||
* @filename AiConversationService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -19,7 +19,7 @@ public interface AiConversationService {
|
||||
* @param userID 用户ID
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbAiConversation> 会话列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> getUserConversations(String userID, Integer status);
|
||||
@@ -28,7 +28,7 @@ public interface AiConversationService {
|
||||
* @description 根据ID获取会话详情
|
||||
* @param conversationID 会话ID
|
||||
* @return ResultDomain<TbAiConversation> 会话详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> getConversationById(String conversationID);
|
||||
@@ -38,7 +38,7 @@ public interface AiConversationService {
|
||||
* @param userID 用户ID
|
||||
* @param title 会话标题
|
||||
* @return ResultDomain<TbAiConversation> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> createConversation(String userID, String title);
|
||||
@@ -48,7 +48,7 @@ public interface AiConversationService {
|
||||
* @param conversationID 会话ID
|
||||
* @param title 新标题
|
||||
* @return ResultDomain<TbAiConversation> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> updateConversationTitle(String conversationID, String title);
|
||||
@@ -58,7 +58,7 @@ public interface AiConversationService {
|
||||
* @param conversationID 会话ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbAiConversation> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> updateConversationStatus(String conversationID, Integer status);
|
||||
@@ -67,7 +67,7 @@ public interface AiConversationService {
|
||||
* @description 结束会话
|
||||
* @param conversationID 会话ID
|
||||
* @return ResultDomain<TbAiConversation> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> endConversation(String conversationID);
|
||||
@@ -76,7 +76,7 @@ public interface AiConversationService {
|
||||
* @description 删除会话
|
||||
* @param conversationID 会话ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteConversation(String conversationID);
|
||||
@@ -87,7 +87,7 @@ public interface AiConversationService {
|
||||
* @param messageCount 消息数量
|
||||
* @param lastMessageTime 最后消息时间
|
||||
* @return ResultDomain<TbAiConversation> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> updateConversationStats(String conversationID, Integer messageCount, Date lastMessageTime);
|
||||
@@ -98,7 +98,7 @@ public interface AiConversationService {
|
||||
* @param startDate 开始日期(可选)
|
||||
* @param endDate 结束日期(可选)
|
||||
* @return ResultDomain<TbAiConversation> 会话统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> getUserConversationStats(String userID, Date startDate, Date endDate);
|
||||
@@ -107,7 +107,7 @@ public interface AiConversationService {
|
||||
* @description 清空用户所有会话
|
||||
* @param userID 用户ID
|
||||
* @return ResultDomain<Boolean> 清空结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> clearUserConversations(String userID);
|
||||
@@ -117,7 +117,7 @@ public interface AiConversationService {
|
||||
* @param userID 用户ID
|
||||
* @param limit 限制数量
|
||||
* @return ResultDomain<TbAiConversation> 最近会话列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiConversation> getRecentConversations(String userID, Integer limit);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description AI文件上传服务接口
|
||||
* @filename AiUploadFileService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface AiUploadFileService {
|
||||
* @param conversationID 会话ID(可选)
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbAiUploadFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> getUserFiles(String userID, String conversationID, Integer status);
|
||||
@@ -29,7 +29,7 @@ public interface AiUploadFileService {
|
||||
* @description 根据ID获取文件详情
|
||||
* @param fileID 文件ID
|
||||
* @return ResultDomain<TbAiUploadFile> 文件详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> getFileById(String fileID);
|
||||
@@ -38,7 +38,7 @@ public interface AiUploadFileService {
|
||||
* @description 创建文件记录
|
||||
* @param file 文件信息
|
||||
* @return ResultDomain<TbAiUploadFile> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> createFile(TbAiUploadFile file);
|
||||
@@ -48,7 +48,7 @@ public interface AiUploadFileService {
|
||||
* @param fileID 文件ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbAiUploadFile> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> updateFileStatus(String fileID, Integer status);
|
||||
@@ -58,7 +58,7 @@ public interface AiUploadFileService {
|
||||
* @param fileID 文件ID
|
||||
* @param extractedText 提取的文本
|
||||
* @return ResultDomain<TbAiUploadFile> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> updateFileExtractedText(String fileID, String extractedText);
|
||||
@@ -67,7 +67,7 @@ public interface AiUploadFileService {
|
||||
* @description 删除文件
|
||||
* @param fileID 文件ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteFile(String fileID);
|
||||
@@ -76,7 +76,7 @@ public interface AiUploadFileService {
|
||||
* @description 清空会话文件
|
||||
* @param conversationID 会话ID
|
||||
* @return ResultDomain<Boolean> 清空结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> clearConversationFiles(String conversationID);
|
||||
@@ -85,7 +85,7 @@ public interface AiUploadFileService {
|
||||
* @description 清空用户文件
|
||||
* @param userID 用户ID
|
||||
* @return ResultDomain<Boolean> 清空结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> clearUserFiles(String userID);
|
||||
@@ -95,7 +95,7 @@ public interface AiUploadFileService {
|
||||
* @param userID 用户ID
|
||||
* @param conversationID 会话ID(可选)
|
||||
* @return ResultDomain<TbAiUploadFile> 文件统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> getFileStatistics(String userID, String conversationID);
|
||||
@@ -105,7 +105,7 @@ public interface AiUploadFileService {
|
||||
* @param userID 用户ID
|
||||
* @param fileName 文件名
|
||||
* @return ResultDomain<TbAiUploadFile> 搜索结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> searchFilesByName(String userID, String fileName);
|
||||
@@ -115,7 +115,7 @@ public interface AiUploadFileService {
|
||||
* @param userID 用户ID
|
||||
* @param fileType 文件类型
|
||||
* @return ResultDomain<TbAiUploadFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUploadFile> getFilesByType(String userID, String fileType);
|
||||
@@ -124,7 +124,7 @@ public interface AiUploadFileService {
|
||||
* @description 批量删除文件
|
||||
* @param fileIDs 文件ID列表
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> batchDeleteFiles(List<String> fileIDs);
|
||||
@@ -135,7 +135,7 @@ public interface AiUploadFileService {
|
||||
* @param fileName 文件名
|
||||
* @param filePath 文件路径
|
||||
* @return ResultDomain<Boolean> 是否存在
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> checkFileExists(String userID, String fileName, String filePath);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description AI知识库服务接口
|
||||
* @filename AiKnowledgeService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ public interface AiKnowledgeService {
|
||||
* @description 获取知识库列表
|
||||
* @param filter 过滤条件
|
||||
* @return ResultDomain<TbAiKnowledge> 知识库列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> getKnowledgeList(TbAiKnowledge filter);
|
||||
@@ -27,7 +27,7 @@ public interface AiKnowledgeService {
|
||||
* @description 根据ID获取知识详情
|
||||
* @param knowledgeID 知识ID
|
||||
* @return ResultDomain<TbAiKnowledge> 知识详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> getKnowledgeById(String knowledgeID);
|
||||
@@ -36,7 +36,7 @@ public interface AiKnowledgeService {
|
||||
* @description 创建知识
|
||||
* @param knowledge 知识信息
|
||||
* @return ResultDomain<TbAiKnowledge> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> createKnowledge(TbAiKnowledge knowledge);
|
||||
@@ -45,7 +45,7 @@ public interface AiKnowledgeService {
|
||||
* @description 更新知识
|
||||
* @param knowledge 知识信息
|
||||
* @return ResultDomain<TbAiKnowledge> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> updateKnowledge(TbAiKnowledge knowledge);
|
||||
@@ -54,7 +54,7 @@ public interface AiKnowledgeService {
|
||||
* @description 删除知识
|
||||
* @param knowledgeID 知识ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteKnowledge(String knowledgeID);
|
||||
@@ -64,7 +64,7 @@ public interface AiKnowledgeService {
|
||||
* @param knowledgeID 知识ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbAiKnowledge> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> updateKnowledgeStatus(String knowledgeID, Integer status);
|
||||
@@ -74,7 +74,7 @@ public interface AiKnowledgeService {
|
||||
* @param knowledgeID 知识ID
|
||||
* @param vectorID 向量ID
|
||||
* @return ResultDomain<TbAiKnowledge> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> updateKnowledgeVector(String knowledgeID, String vectorID);
|
||||
@@ -85,7 +85,7 @@ public interface AiKnowledgeService {
|
||||
* @param category 分类(可选)
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbAiKnowledge> 搜索结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> searchKnowledge(String keyword, String category, Integer status);
|
||||
@@ -94,7 +94,7 @@ public interface AiKnowledgeService {
|
||||
* @description 根据分类获取知识
|
||||
* @param category 分类
|
||||
* @return ResultDomain<TbAiKnowledge> 知识列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> getKnowledgeByCategory(String category);
|
||||
@@ -103,7 +103,7 @@ public interface AiKnowledgeService {
|
||||
* @description 根据标签获取知识
|
||||
* @param tag 标签
|
||||
* @return ResultDomain<TbAiKnowledge> 知识列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> getKnowledgeByTag(String tag);
|
||||
@@ -113,7 +113,7 @@ public interface AiKnowledgeService {
|
||||
* @param query 查询内容
|
||||
* @param limit 限制数量
|
||||
* @return ResultDomain<TbAiKnowledge> 检索结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> vectorSearchKnowledge(String query, Integer limit);
|
||||
@@ -122,7 +122,7 @@ public interface AiKnowledgeService {
|
||||
* @description 批量删除知识
|
||||
* @param knowledgeIDs 知识ID列表
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> batchDeleteKnowledge(List<String> knowledgeIDs);
|
||||
@@ -131,7 +131,7 @@ public interface AiKnowledgeService {
|
||||
* @description 获取知识统计
|
||||
* @param category 分类(可选)
|
||||
* @return ResultDomain<TbAiKnowledge> 知识统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiKnowledge> getKnowledgeStatistics(String category);
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.xyzh.common.dto.ai.TbAiMessage;
|
||||
/**
|
||||
* @description AI对话消息服务接口
|
||||
* @filename AiMessageService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ public interface AiMessageService {
|
||||
* @param conversationID 会话ID
|
||||
* @param limit 限制数量(可选)
|
||||
* @return ResultDomain<TbAiMessage> 消息列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> getConversationMessages(String conversationID, Integer limit);
|
||||
@@ -27,7 +27,7 @@ public interface AiMessageService {
|
||||
* @description 根据ID获取消息详情
|
||||
* @param messageID 消息ID
|
||||
* @return ResultDomain<TbAiMessage> 消息详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> getMessageById(String messageID);
|
||||
@@ -39,7 +39,7 @@ public interface AiMessageService {
|
||||
* @param content 消息内容
|
||||
* @param fileIDs 关联文件ID(可选)
|
||||
* @return ResultDomain<TbAiMessage> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> sendUserMessage(String conversationID, String userID, String content, String fileIDs);
|
||||
@@ -52,7 +52,7 @@ public interface AiMessageService {
|
||||
* @param knowledgeIDs 引用知识ID(可选)
|
||||
* @param tokenCount Token数量
|
||||
* @return ResultDomain<TbAiMessage> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> sendAssistantMessage(String conversationID, String userID, String content, String knowledgeIDs, Integer tokenCount);
|
||||
@@ -62,7 +62,7 @@ public interface AiMessageService {
|
||||
* @param conversationID 会话ID
|
||||
* @param content 消息内容
|
||||
* @return ResultDomain<TbAiMessage> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> sendSystemMessage(String conversationID, String content);
|
||||
@@ -72,7 +72,7 @@ public interface AiMessageService {
|
||||
* @param messageID 消息ID
|
||||
* @param content 新内容
|
||||
* @return ResultDomain<TbAiMessage> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> updateMessageContent(String messageID, String content);
|
||||
@@ -82,7 +82,7 @@ public interface AiMessageService {
|
||||
* @param messageID 消息ID
|
||||
* @param tokenCount Token数量
|
||||
* @return ResultDomain<TbAiMessage> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> updateMessageTokens(String messageID, Integer tokenCount);
|
||||
@@ -91,7 +91,7 @@ public interface AiMessageService {
|
||||
* @description 删除消息
|
||||
* @param messageID 消息ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteMessage(String messageID);
|
||||
@@ -100,7 +100,7 @@ public interface AiMessageService {
|
||||
* @description 清空会话消息
|
||||
* @param conversationID 会话ID
|
||||
* @return ResultDomain<Boolean> 清空结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> clearConversationMessages(String conversationID);
|
||||
@@ -110,7 +110,7 @@ public interface AiMessageService {
|
||||
* @param userID 用户ID
|
||||
* @param conversationID 会话ID(可选)
|
||||
* @return ResultDomain<TbAiMessage> 消息统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> getUserMessageStats(String userID, String conversationID);
|
||||
@@ -119,7 +119,7 @@ public interface AiMessageService {
|
||||
* @description 获取会话最后一条消息
|
||||
* @param conversationID 会话ID
|
||||
* @return ResultDomain<TbAiMessage> 最后消息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> getLastMessage(String conversationID);
|
||||
@@ -130,7 +130,7 @@ public interface AiMessageService {
|
||||
* @param keyword 关键词
|
||||
* @param conversationID 会话ID(可选)
|
||||
* @return ResultDomain<TbAiMessage> 搜索结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiMessage> searchMessages(String userID, String keyword, String conversationID);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description AI使用统计服务接口
|
||||
* @filename AiUsageStatisticsService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param startDate 开始日期(可选)
|
||||
* @param endDate 结束日期(可选)
|
||||
* @return ResultDomain<TbAiUsageStatistics> 统计列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> getUserStatistics(String userID, Date startDate, Date endDate);
|
||||
@@ -31,7 +31,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param userID 用户ID
|
||||
* @param statDate 统计日期
|
||||
* @return ResultDomain<TbAiUsageStatistics> 统计信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> getDailyStatistics(String userID, Date statDate);
|
||||
@@ -40,7 +40,7 @@ public interface AiUsageStatisticsService {
|
||||
* @description 创建或更新使用统计
|
||||
* @param statistics 统计信息
|
||||
* @return ResultDomain<TbAiUsageStatistics> 创建/更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> saveStatistics(TbAiUsageStatistics statistics);
|
||||
@@ -54,7 +54,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param totalTokens 总Token数
|
||||
* @param fileCount 文件数量
|
||||
* @return ResultDomain<TbAiUsageStatistics> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> updateStatistics(String userID, Date statDate, Integer conversationCount,
|
||||
@@ -65,7 +65,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param userID 用户ID
|
||||
* @param statDate 统计日期
|
||||
* @return ResultDomain<TbAiUsageStatistics> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> incrementConversationCount(String userID, Date statDate);
|
||||
@@ -76,7 +76,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param statDate 统计日期
|
||||
* @param tokenCount Token数量
|
||||
* @return ResultDomain<TbAiUsageStatistics> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> incrementMessageCount(String userID, Date statDate, Integer tokenCount);
|
||||
@@ -86,7 +86,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param userID 用户ID
|
||||
* @param statDate 统计日期
|
||||
* @return ResultDomain<TbAiUsageStatistics> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> incrementFileCount(String userID, Date statDate);
|
||||
@@ -96,7 +96,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param statDate 统计日期
|
||||
* @param limit 限制数量
|
||||
* @return ResultDomain<TbAiUsageStatistics> 排行榜
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> getUsageRanking(Date statDate, Integer limit);
|
||||
@@ -106,7 +106,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return ResultDomain<TbAiUsageStatistics> 总体统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> getOverallStatistics(Date startDate, Date endDate);
|
||||
@@ -116,7 +116,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param userID 用户ID
|
||||
* @param days 天数
|
||||
* @return ResultDomain<TbAiUsageStatistics> 趋势数据
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> getUserUsageTrend(String userID, Integer days);
|
||||
@@ -125,7 +125,7 @@ public interface AiUsageStatisticsService {
|
||||
* @description 删除使用统计
|
||||
* @param statisticsID 统计ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteStatistics(String statisticsID);
|
||||
@@ -136,7 +136,7 @@ public interface AiUsageStatisticsService {
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return ResultDomain<TbAiUsageStatistics> Token统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAiUsageStatistics> getUserTokenStatistics(String userID, Date startDate, Date endDate);
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.xyzh.common.dto.system.TbSysFile;
|
||||
/**
|
||||
* @description 文件服务接口
|
||||
* @filename FileService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@@ -19,7 +19,7 @@ public interface FileService {
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @return ResultDomain<TbSysFile> 上传结果,包含文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> uploadFile(MultipartFile file, String module, String businessId);
|
||||
@@ -31,7 +31,7 @@ public interface FileService {
|
||||
* @param businessId 业务ID
|
||||
* @param uploader 上传者用户ID
|
||||
* @return ResultDomain<TbSysFile> 上传结果,包含文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> uploadFile(MultipartFile file, String module, String businessId, String uploader);
|
||||
@@ -40,7 +40,7 @@ public interface FileService {
|
||||
* @description 下载文件
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<byte[]> 文件字节数组
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<byte[]> downloadFile(String fileId);
|
||||
@@ -49,7 +49,7 @@ public interface FileService {
|
||||
* @description 删除文件(逻辑删除)
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> deleteFile(String fileId);
|
||||
@@ -58,7 +58,7 @@ public interface FileService {
|
||||
* @description 物理删除文件(同时删除存储和数据库记录)
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> deleteFilePhysically(String fileId);
|
||||
@@ -67,7 +67,7 @@ public interface FileService {
|
||||
* @description 根据文件ID查询文件信息
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> getFileById(String fileId);
|
||||
@@ -77,7 +77,7 @@ public interface FileService {
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @return ResultDomain<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> getFilesByBusinessId(String module, String businessId);
|
||||
@@ -86,7 +86,7 @@ public interface FileService {
|
||||
* @description 根据上传者查询文件列表
|
||||
* @param uploader 上传者用户ID
|
||||
* @return ResultDomain<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> getFilesByUploader(String uploader);
|
||||
@@ -95,7 +95,7 @@ public interface FileService {
|
||||
* @description 获取文件访问URL
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<String> 文件访问URL
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<String> getFileUrl(String fileId);
|
||||
@@ -107,7 +107,7 @@ public interface FileService {
|
||||
* @param businessId 业务ID
|
||||
* @param uploader 上传者用户ID(可选)
|
||||
* @return ResultDomain<TbSysFile> 上传结果,包含文件信息列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> batchUploadFiles(MultipartFile[] files, String module, String businessId, String uploader);
|
||||
@@ -116,7 +116,7 @@ public interface FileService {
|
||||
* @description 批量删除文件(逻辑删除)
|
||||
* @param fileIds 文件ID列表
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> batchDeleteFiles(String[] fileIds);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description Banner服务接口
|
||||
* @filename BannerService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ public interface BannerService {
|
||||
* @description 获取Banner列表
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbBanner> Banner列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> getBannerList(Integer status);
|
||||
@@ -27,7 +27,7 @@ public interface BannerService {
|
||||
* @description 根据ID获取Banner详情
|
||||
* @param bannerID BannerID
|
||||
* @return ResultDomain<TbBanner> Banner详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> getBannerById(String bannerID);
|
||||
@@ -36,7 +36,7 @@ public interface BannerService {
|
||||
* @description 创建Banner
|
||||
* @param banner Banner信息
|
||||
* @return ResultDomain<TbBanner> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> createBanner(TbBanner banner);
|
||||
@@ -45,7 +45,7 @@ public interface BannerService {
|
||||
* @description 更新Banner
|
||||
* @param banner Banner信息
|
||||
* @return ResultDomain<TbBanner> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> updateBanner(TbBanner banner);
|
||||
@@ -54,7 +54,7 @@ public interface BannerService {
|
||||
* @description 删除Banner
|
||||
* @param bannerID BannerID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteBanner(String bannerID);
|
||||
@@ -64,7 +64,7 @@ public interface BannerService {
|
||||
* @param bannerID BannerID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbBanner> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> updateBannerStatus(String bannerID, Integer status);
|
||||
@@ -74,7 +74,7 @@ public interface BannerService {
|
||||
* @param bannerID BannerID
|
||||
* @param orderNum 排序号
|
||||
* @return ResultDomain<TbBanner> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> updateBannerOrder(String bannerID, Integer orderNum);
|
||||
@@ -83,7 +83,7 @@ public interface BannerService {
|
||||
* @description 获取启用的Banner列表(按排序号排序)
|
||||
* @param limit 限制数量(可选)
|
||||
* @return ResultDomain<TbBanner> 启用的Banner列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbBanner> getActiveBanners(Integer limit);
|
||||
@@ -92,7 +92,7 @@ public interface BannerService {
|
||||
* @description 批量更新Banner排序
|
||||
* @param bannerOrders Banner排序信息(BannerID -> 排序号)
|
||||
* @return ResultDomain<Boolean> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> batchUpdateBannerOrder(java.util.Map<String, Integer> bannerOrders);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源分类服务接口
|
||||
* @filename ResourceCategoryService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -17,7 +17,7 @@ public interface ResourceCategoryService {
|
||||
/**
|
||||
* @description 获取所有分类列表
|
||||
* @return ResultDomain<TbResourceCategory> 分类列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> getAllCategories();
|
||||
@@ -25,7 +25,7 @@ public interface ResourceCategoryService {
|
||||
/**
|
||||
* @description 获取分类树形结构
|
||||
* @return ResultDomain<TbResourceCategory> 分类树
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> getCategoryTree();
|
||||
@@ -34,7 +34,7 @@ public interface ResourceCategoryService {
|
||||
* @description 根据ID获取分类详情
|
||||
* @param categoryID 分类ID
|
||||
* @return ResultDomain<TbResourceCategory> 分类详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> getCategoryById(String categoryID);
|
||||
@@ -43,7 +43,7 @@ public interface ResourceCategoryService {
|
||||
* @description 根据父ID获取子分类
|
||||
* @param parentID 父分类ID
|
||||
* @return ResultDomain<TbResourceCategory> 子分类列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> getCategoriesByParent(String parentID);
|
||||
@@ -52,7 +52,7 @@ public interface ResourceCategoryService {
|
||||
* @description 创建分类
|
||||
* @param category 分类信息
|
||||
* @return ResultDomain<TbResourceCategory> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> createCategory(TbResourceCategory category);
|
||||
@@ -61,7 +61,7 @@ public interface ResourceCategoryService {
|
||||
* @description 更新分类
|
||||
* @param category 分类信息
|
||||
* @return ResultDomain<TbResourceCategory> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> updateCategory(TbResourceCategory category);
|
||||
@@ -70,7 +70,7 @@ public interface ResourceCategoryService {
|
||||
* @description 删除分类
|
||||
* @param categoryID 分类ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteCategory(String categoryID);
|
||||
@@ -80,7 +80,7 @@ public interface ResourceCategoryService {
|
||||
* @param categoryID 分类ID
|
||||
* @param orderNum 排序号
|
||||
* @return ResultDomain<TbResourceCategory> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceCategory> updateCategoryOrder(String categoryID, Integer orderNum);
|
||||
@@ -89,7 +89,7 @@ public interface ResourceCategoryService {
|
||||
* @description 检查分类是否有子分类
|
||||
* @param categoryID 分类ID
|
||||
* @return ResultDomain<Boolean> 是否有子分类
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> hasChildCategories(String categoryID);
|
||||
@@ -98,7 +98,7 @@ public interface ResourceCategoryService {
|
||||
* @description 检查分类下是否有资源
|
||||
* @param categoryID 分类ID
|
||||
* @return ResultDomain<Boolean> 是否有资源
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> hasResources(String categoryID);
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 数据采集服务接口
|
||||
* @filename DataCollectionService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -22,7 +22,7 @@ public interface DataCollectionService {
|
||||
* @description 获取采集配置列表
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbDataCollectionConfig> 配置列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionConfig> getConfigList(Integer status);
|
||||
@@ -31,7 +31,7 @@ public interface DataCollectionService {
|
||||
* @description 根据ID获取配置详情
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<TbDataCollectionConfig> 配置详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionConfig> getConfigById(String configID);
|
||||
@@ -40,7 +40,7 @@ public interface DataCollectionService {
|
||||
* @description 创建采集配置
|
||||
* @param config 配置信息
|
||||
* @return ResultDomain<TbDataCollectionConfig> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionConfig> createConfig(TbDataCollectionConfig config);
|
||||
@@ -49,7 +49,7 @@ public interface DataCollectionService {
|
||||
* @description 更新采集配置
|
||||
* @param config 配置信息
|
||||
* @return ResultDomain<TbDataCollectionConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionConfig> updateConfig(TbDataCollectionConfig config);
|
||||
@@ -58,7 +58,7 @@ public interface DataCollectionService {
|
||||
* @description 删除采集配置
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteConfig(String configID);
|
||||
@@ -68,7 +68,7 @@ public interface DataCollectionService {
|
||||
* @param configID 配置ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbDataCollectionConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionConfig> updateConfigStatus(String configID, Integer status);
|
||||
@@ -78,7 +78,7 @@ public interface DataCollectionService {
|
||||
* @param configID 配置ID
|
||||
* @param lastCollectTime 最后采集时间
|
||||
* @return ResultDomain<TbDataCollectionConfig> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionConfig> updateLastCollectTime(String configID, Date lastCollectTime);
|
||||
@@ -91,7 +91,7 @@ public interface DataCollectionService {
|
||||
* @param startDate 开始日期(可选)
|
||||
* @param endDate 结束日期(可选)
|
||||
* @return ResultDomain<TbDataCollectionLog> 日志列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionLog> getLogList(String configID, Date startDate, Date endDate);
|
||||
@@ -100,7 +100,7 @@ public interface DataCollectionService {
|
||||
* @description 根据ID获取日志详情
|
||||
* @param logID 日志ID
|
||||
* @return ResultDomain<TbDataCollectionLog> 日志详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionLog> getLogById(String logID);
|
||||
@@ -109,7 +109,7 @@ public interface DataCollectionService {
|
||||
* @description 创建采集日志
|
||||
* @param log 日志信息
|
||||
* @return ResultDomain<TbDataCollectionLog> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionLog> createLog(TbDataCollectionLog log);
|
||||
@@ -118,7 +118,7 @@ public interface DataCollectionService {
|
||||
* @description 获取配置的采集统计
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<TbDataCollectionLog> 采集统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionLog> getConfigStatistics(String configID);
|
||||
@@ -129,7 +129,7 @@ public interface DataCollectionService {
|
||||
* @description 执行数据采集
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<TbDataCollectionLog> 采集结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionLog> executeCollection(String configID);
|
||||
@@ -138,7 +138,7 @@ public interface DataCollectionService {
|
||||
* @description 批量执行数据采集
|
||||
* @param configIDs 配置ID列表
|
||||
* @return ResultDomain<TbDataCollectionLog> 采集结果列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbDataCollectionLog> batchExecuteCollection(List<String> configIDs);
|
||||
@@ -147,7 +147,7 @@ public interface DataCollectionService {
|
||||
* @description 停止采集任务
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<Boolean> 停止结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> stopCollection(String configID);
|
||||
@@ -156,7 +156,7 @@ public interface DataCollectionService {
|
||||
* @description 获取采集任务状态
|
||||
* @param configID 配置ID
|
||||
* @return ResultDomain<String> 任务状态
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<String> getCollectionStatus(String configID);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源推荐服务接口
|
||||
* @filename ResourceRecommendService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -17,7 +17,7 @@ public interface ResourceRecommendService {
|
||||
/**
|
||||
* @description 获取推荐资源列表
|
||||
* @return ResultDomain<TbResourceRecommend> 推荐资源列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceRecommend> getRecommendList();
|
||||
@@ -26,7 +26,7 @@ public interface ResourceRecommendService {
|
||||
* @description 添加推荐资源
|
||||
* @param recommend 推荐信息
|
||||
* @return ResultDomain<TbResourceRecommend> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceRecommend> addRecommend(TbResourceRecommend recommend);
|
||||
@@ -35,7 +35,7 @@ public interface ResourceRecommendService {
|
||||
* @description 移除推荐资源
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeRecommend(String resourceID);
|
||||
@@ -45,7 +45,7 @@ public interface ResourceRecommendService {
|
||||
* @param resourceID 资源ID
|
||||
* @param orderNum 排序号
|
||||
* @return ResultDomain<TbResourceRecommend> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceRecommend> updateRecommendOrder(String resourceID, Integer orderNum);
|
||||
@@ -55,7 +55,7 @@ public interface ResourceRecommendService {
|
||||
* @param resourceID 资源ID
|
||||
* @param reason 推荐理由
|
||||
* @return ResultDomain<TbResourceRecommend> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceRecommend> updateRecommendReason(String resourceID, String reason);
|
||||
@@ -64,7 +64,7 @@ public interface ResourceRecommendService {
|
||||
* @description 检查资源是否已推荐
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<Boolean> 是否已推荐
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> isResourceRecommended(String resourceID);
|
||||
@@ -74,7 +74,7 @@ public interface ResourceRecommendService {
|
||||
* @param resourceIDs 资源ID列表
|
||||
* @param reason 推荐理由
|
||||
* @return ResultDomain<TbResourceRecommend> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceRecommend> batchAddRecommends(List<String> resourceIDs, String reason);
|
||||
@@ -83,7 +83,7 @@ public interface ResourceRecommendService {
|
||||
* @description 批量移除推荐资源
|
||||
* @param resourceIDs 资源ID列表
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> batchRemoveRecommends(List<String> resourceIDs);
|
||||
@@ -92,7 +92,7 @@ public interface ResourceRecommendService {
|
||||
* @description 获取推荐资源详情
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResourceRecommend> 推荐详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceRecommend> getRecommendDetail(String resourceID);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源服务接口
|
||||
* @filename ResourceService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ public interface ResourceService {
|
||||
* @description 获取资源列表
|
||||
* @param filter 过滤条件
|
||||
* @return ResultDomain<TbResource> 资源列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> getResourceList(TbResource filter);
|
||||
@@ -27,7 +27,7 @@ public interface ResourceService {
|
||||
* @description 根据ID获取资源详情
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResource> 资源详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> getResourceById(String resourceID);
|
||||
@@ -36,7 +36,7 @@ public interface ResourceService {
|
||||
* @description 创建资源
|
||||
* @param resource 资源信息
|
||||
* @return ResultDomain<TbResource> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> createResource(TbResource resource);
|
||||
@@ -45,7 +45,7 @@ public interface ResourceService {
|
||||
* @description 更新资源
|
||||
* @param resource 资源信息
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> updateResource(TbResource resource);
|
||||
@@ -54,7 +54,7 @@ public interface ResourceService {
|
||||
* @description 删除资源
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteResource(String resourceID);
|
||||
@@ -64,7 +64,7 @@ public interface ResourceService {
|
||||
* @param resourceID 资源ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> updateResourceStatus(String resourceID, Integer status);
|
||||
@@ -73,7 +73,7 @@ public interface ResourceService {
|
||||
* @description 发布资源
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResource> 发布结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> publishResource(String resourceID);
|
||||
@@ -82,7 +82,7 @@ public interface ResourceService {
|
||||
* @description 下架资源
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResource> 下架结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> unpublishResource(String resourceID);
|
||||
@@ -91,7 +91,7 @@ public interface ResourceService {
|
||||
* @description 增加浏览次数
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> incrementViewCount(String resourceID);
|
||||
@@ -100,7 +100,7 @@ public interface ResourceService {
|
||||
* @description 增加点赞次数
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> incrementLikeCount(String resourceID);
|
||||
@@ -109,7 +109,7 @@ public interface ResourceService {
|
||||
* @description 增加收藏次数
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> incrementCollectCount(String resourceID);
|
||||
@@ -119,7 +119,7 @@ public interface ResourceService {
|
||||
* @param resourceID 资源ID
|
||||
* @param isRecommend 是否推荐
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> setResourceRecommend(String resourceID, Boolean isRecommend);
|
||||
@@ -129,7 +129,7 @@ public interface ResourceService {
|
||||
* @param resourceID 资源ID
|
||||
* @param isBanner 是否轮播
|
||||
* @return ResultDomain<TbResource> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> setResourceBanner(String resourceID, Boolean isBanner);
|
||||
@@ -138,7 +138,7 @@ public interface ResourceService {
|
||||
* @description 获取推荐资源列表
|
||||
* @param limit 限制数量
|
||||
* @return ResultDomain<TbResource> 推荐资源列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> getRecommendResources(Integer limit);
|
||||
@@ -147,7 +147,7 @@ public interface ResourceService {
|
||||
* @description 获取轮播资源列表
|
||||
* @param limit 限制数量
|
||||
* @return ResultDomain<TbResource> 轮播资源列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> getBannerResources(Integer limit);
|
||||
@@ -158,7 +158,7 @@ public interface ResourceService {
|
||||
* @param categoryID 分类ID(可选)
|
||||
* @param status 状态(可选)
|
||||
* @return ResultDomain<TbResource> 搜索结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResource> searchResources(String keyword, String categoryID, Integer status);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 标签服务接口
|
||||
* @filename TagService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ public interface TagService {
|
||||
/**
|
||||
* @description 获取所有标签
|
||||
* @return ResultDomain<TbTag> 标签列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTag> getAllTags();
|
||||
@@ -27,7 +27,7 @@ public interface TagService {
|
||||
* @description 根据ID获取标签详情
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<TbTag> 标签详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTag> getTagById(String tagID);
|
||||
@@ -36,7 +36,7 @@ public interface TagService {
|
||||
* @description 创建标签
|
||||
* @param tag 标签信息
|
||||
* @return ResultDomain<TbTag> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTag> createTag(TbTag tag);
|
||||
@@ -45,7 +45,7 @@ public interface TagService {
|
||||
* @description 更新标签
|
||||
* @param tag 标签信息
|
||||
* @return ResultDomain<TbTag> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTag> updateTag(TbTag tag);
|
||||
@@ -54,7 +54,7 @@ public interface TagService {
|
||||
* @description 删除标签
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteTag(String tagID);
|
||||
@@ -63,7 +63,7 @@ public interface TagService {
|
||||
* @description 根据名称搜索标签
|
||||
* @param name 标签名称
|
||||
* @return ResultDomain<TbTag> 标签列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTag> searchTagsByName(String name);
|
||||
@@ -74,7 +74,7 @@ public interface TagService {
|
||||
* @description 获取资源的标签
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbTag> 标签列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTag> getResourceTags(String resourceID);
|
||||
@@ -84,7 +84,7 @@ public interface TagService {
|
||||
* @param resourceID 资源ID
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<TbResourceTag> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceTag> addResourceTag(String resourceID, String tagID);
|
||||
@@ -94,7 +94,7 @@ public interface TagService {
|
||||
* @param resourceID 资源ID
|
||||
* @param tagIDs 标签ID列表
|
||||
* @return ResultDomain<TbResourceTag> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbResourceTag> batchAddResourceTags(String resourceID, List<String> tagIDs);
|
||||
@@ -104,7 +104,7 @@ public interface TagService {
|
||||
* @param resourceID 资源ID
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeResourceTag(String resourceID, String tagID);
|
||||
@@ -113,7 +113,7 @@ public interface TagService {
|
||||
* @description 清空资源的所有标签
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<Boolean> 清空结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> clearResourceTags(String resourceID);
|
||||
@@ -122,7 +122,7 @@ public interface TagService {
|
||||
* @description 根据标签获取资源列表
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<String> 资源ID列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<String> getResourcesByTag(String tagID);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 课程服务接口
|
||||
* @filename CourseService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -19,7 +19,7 @@ public interface CourseService {
|
||||
* @description 获取课程列表
|
||||
* @param filter 过滤条件
|
||||
* @return ResultDomain<TbCourse> 课程列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> getCourseList(TbCourse filter);
|
||||
@@ -28,7 +28,7 @@ public interface CourseService {
|
||||
* @description 根据ID获取课程详情
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<TbCourse> 课程详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> getCourseById(String courseID);
|
||||
@@ -37,7 +37,7 @@ public interface CourseService {
|
||||
* @description 创建课程
|
||||
* @param course 课程信息
|
||||
* @return ResultDomain<TbCourse> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> createCourse(TbCourse course);
|
||||
@@ -46,7 +46,7 @@ public interface CourseService {
|
||||
* @description 更新课程
|
||||
* @param course 课程信息
|
||||
* @return ResultDomain<TbCourse> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> updateCourse(TbCourse course);
|
||||
@@ -55,7 +55,7 @@ public interface CourseService {
|
||||
* @description 删除课程
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteCourse(String courseID);
|
||||
@@ -65,7 +65,7 @@ public interface CourseService {
|
||||
* @param courseID 课程ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbCourse> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> updateCourseStatus(String courseID, Integer status);
|
||||
@@ -74,7 +74,7 @@ public interface CourseService {
|
||||
* @description 增加课程浏览次数
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<TbCourse> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> incrementViewCount(String courseID);
|
||||
@@ -83,7 +83,7 @@ public interface CourseService {
|
||||
* @description 增加课程学习人数
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<TbCourse> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourse> incrementLearnCount(String courseID);
|
||||
@@ -94,7 +94,7 @@ public interface CourseService {
|
||||
* @description 获取课程章节列表
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<TbCourseChapter> 章节列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseChapter> getCourseChapters(String courseID);
|
||||
@@ -103,7 +103,7 @@ public interface CourseService {
|
||||
* @description 根据ID获取章节详情
|
||||
* @param chapterID 章节ID
|
||||
* @return ResultDomain<TbCourseChapter> 章节详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseChapter> getChapterById(String chapterID);
|
||||
@@ -112,7 +112,7 @@ public interface CourseService {
|
||||
* @description 创建课程章节
|
||||
* @param chapter 章节信息
|
||||
* @return ResultDomain<TbCourseChapter> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseChapter> createChapter(TbCourseChapter chapter);
|
||||
@@ -121,7 +121,7 @@ public interface CourseService {
|
||||
* @description 更新课程章节
|
||||
* @param chapter 章节信息
|
||||
* @return ResultDomain<TbCourseChapter> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseChapter> updateChapter(TbCourseChapter chapter);
|
||||
@@ -130,7 +130,7 @@ public interface CourseService {
|
||||
* @description 删除课程章节
|
||||
* @param chapterID 章节ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteChapter(String chapterID);
|
||||
@@ -140,7 +140,7 @@ public interface CourseService {
|
||||
* @param chapterID 章节ID
|
||||
* @param orderNum 排序号
|
||||
* @return ResultDomain<TbCourseChapter> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseChapter> updateChapterOrder(String chapterID, Integer orderNum);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 学习记录服务接口
|
||||
* @filename LearningRecordService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface LearningRecordService {
|
||||
* @param resourceType 资源类型(可选)
|
||||
* @param taskID 任务ID(可选)
|
||||
* @return ResultDomain<TbLearningRecord> 学习记录列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> getUserLearningRecords(String userID, Integer resourceType, String taskID);
|
||||
@@ -31,7 +31,7 @@ public interface LearningRecordService {
|
||||
* @param resourceType 资源类型
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbLearningRecord> 学习记录列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> getResourceLearningRecords(Integer resourceType, String resourceID);
|
||||
@@ -40,7 +40,7 @@ public interface LearningRecordService {
|
||||
* @description 创建或更新学习记录
|
||||
* @param learningRecord 学习记录
|
||||
* @return ResultDomain<TbLearningRecord> 创建/更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> saveLearningRecord(TbLearningRecord learningRecord);
|
||||
@@ -53,7 +53,7 @@ public interface LearningRecordService {
|
||||
* @param progress 进度
|
||||
* @param duration 学习时长(秒)
|
||||
* @return ResultDomain<TbLearningRecord> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> updateLearningProgress(String userID, Integer resourceType, String resourceID, BigDecimal progress, Integer duration);
|
||||
@@ -65,7 +65,7 @@ public interface LearningRecordService {
|
||||
* @param resourceID 资源ID
|
||||
* @param taskID 任务ID(可选)
|
||||
* @return ResultDomain<TbLearningRecord> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> markLearningComplete(String userID, Integer resourceType, String resourceID, String taskID);
|
||||
@@ -75,7 +75,7 @@ public interface LearningRecordService {
|
||||
* @param userID 用户ID
|
||||
* @param resourceType 资源类型(可选)
|
||||
* @return ResultDomain<TbLearningRecord> 学习统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> getUserLearningStatistics(String userID, Integer resourceType);
|
||||
@@ -86,7 +86,7 @@ public interface LearningRecordService {
|
||||
* @param resourceType 资源类型
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<TbLearningRecord> 学习进度
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> getUserLearningProgress(String userID, Integer resourceType, String resourceID);
|
||||
@@ -95,7 +95,7 @@ public interface LearningRecordService {
|
||||
* @description 删除学习记录
|
||||
* @param recordID 记录ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteLearningRecord(String recordID);
|
||||
@@ -104,7 +104,7 @@ public interface LearningRecordService {
|
||||
* @description 获取任务学习进度统计
|
||||
* @param taskID 任务ID
|
||||
* @return ResultDomain<TbLearningRecord> 学习进度统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningRecord> getTaskLearningStatistics(String taskID);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 学习统计服务接口
|
||||
* @filename LearningStatisticsService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface LearningStatisticsService {
|
||||
* @param startDate 开始日期(可选)
|
||||
* @param endDate 结束日期(可选)
|
||||
* @return ResultDomain<TbLearningStatistics> 学习统计列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> getUserLearningStatistics(String userID, Date startDate, Date endDate);
|
||||
@@ -31,7 +31,7 @@ public interface LearningStatisticsService {
|
||||
* @param userID 用户ID
|
||||
* @param statDate 统计日期
|
||||
* @return ResultDomain<TbLearningStatistics> 学习统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> getDailyLearningStatistics(String userID, Date statDate);
|
||||
@@ -40,7 +40,7 @@ public interface LearningStatisticsService {
|
||||
* @description 创建或更新学习统计
|
||||
* @param statistics 学习统计
|
||||
* @return ResultDomain<TbLearningStatistics> 创建/更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> saveLearningStatistics(TbLearningStatistics statistics);
|
||||
@@ -54,7 +54,7 @@ public interface LearningStatisticsService {
|
||||
* @param courseCount 学习课程数量
|
||||
* @param completeCount 完成数量
|
||||
* @return ResultDomain<TbLearningStatistics> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> updateLearningStatistics(String userID, Date statDate, Integer totalDuration, Integer resourceCount, Integer courseCount, Integer completeCount);
|
||||
@@ -64,7 +64,7 @@ public interface LearningStatisticsService {
|
||||
* @param statDate 统计日期
|
||||
* @param limit 限制数量
|
||||
* @return ResultDomain<TbLearningStatistics> 排行榜
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> getLearningRanking(Date statDate, Integer limit);
|
||||
@@ -75,7 +75,7 @@ public interface LearningStatisticsService {
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return ResultDomain<TbLearningStatistics> 部门学习统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> getDeptLearningStatistics(String deptID, Date startDate, Date endDate);
|
||||
@@ -85,7 +85,7 @@ public interface LearningStatisticsService {
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return ResultDomain<TbLearningStatistics> 总体学习统计
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningStatistics> getOverallLearningStatistics(Date startDate, Date endDate);
|
||||
@@ -94,7 +94,7 @@ public interface LearningStatisticsService {
|
||||
* @description 删除学习统计
|
||||
* @param statisticsID 统计ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteLearningStatistics(String statisticsID);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 课程标签服务接口
|
||||
* @filename CourseTagService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -17,7 +17,7 @@ public interface CourseTagService {
|
||||
/**
|
||||
* @description 获取所有课程标签
|
||||
* @return ResultDomain<TbCourseTag> 标签列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseTag> getAllCourseTags();
|
||||
@@ -26,7 +26,7 @@ public interface CourseTagService {
|
||||
* @description 根据ID获取标签详情
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<TbCourseTag> 标签详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseTag> getTagById(String tagID);
|
||||
@@ -35,7 +35,7 @@ public interface CourseTagService {
|
||||
* @description 创建课程标签
|
||||
* @param courseTag 标签信息
|
||||
* @return ResultDomain<TbCourseTag> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseTag> createCourseTag(TbCourseTag courseTag);
|
||||
@@ -44,7 +44,7 @@ public interface CourseTagService {
|
||||
* @description 更新课程标签
|
||||
* @param courseTag 标签信息
|
||||
* @return ResultDomain<TbCourseTag> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseTag> updateCourseTag(TbCourseTag courseTag);
|
||||
@@ -53,7 +53,7 @@ public interface CourseTagService {
|
||||
* @description 删除课程标签
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteCourseTag(String tagID);
|
||||
@@ -62,7 +62,7 @@ public interface CourseTagService {
|
||||
* @description 获取课程的标签
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<TbCourseTag> 标签列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbCourseTag> getCourseTags(String courseID);
|
||||
@@ -72,7 +72,7 @@ public interface CourseTagService {
|
||||
* @param courseID 课程ID
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<Boolean> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> addCourseTag(String courseID, String tagID);
|
||||
@@ -82,7 +82,7 @@ public interface CourseTagService {
|
||||
* @param courseID 课程ID
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeCourseTag(String courseID, String tagID);
|
||||
@@ -91,7 +91,7 @@ public interface CourseTagService {
|
||||
* @description 根据标签获取课程列表
|
||||
* @param tagID 标签ID
|
||||
* @return ResultDomain<String> 课程ID列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<String> getCoursesByTag(String tagID);
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 学习任务服务接口
|
||||
* @filename LearningTaskService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface LearningTaskService {
|
||||
* @description 获取学习任务列表
|
||||
* @param filter 过滤条件
|
||||
* @return ResultDomain<TbLearningTask> 任务列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningTask> getTaskList(TbLearningTask filter);
|
||||
@@ -30,7 +30,7 @@ public interface LearningTaskService {
|
||||
* @description 根据ID获取任务详情
|
||||
* @param taskID 任务ID
|
||||
* @return ResultDomain<TbLearningTask> 任务详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningTask> getTaskById(String taskID);
|
||||
@@ -39,7 +39,7 @@ public interface LearningTaskService {
|
||||
* @description 创建学习任务
|
||||
* @param task 任务信息
|
||||
* @return ResultDomain<TbLearningTask> 创建结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningTask> createTask(TbLearningTask task);
|
||||
@@ -48,7 +48,7 @@ public interface LearningTaskService {
|
||||
* @description 更新学习任务
|
||||
* @param task 任务信息
|
||||
* @return ResultDomain<TbLearningTask> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningTask> updateTask(TbLearningTask task);
|
||||
@@ -57,7 +57,7 @@ public interface LearningTaskService {
|
||||
* @description 删除学习任务
|
||||
* @param taskID 任务ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteTask(String taskID);
|
||||
@@ -67,7 +67,7 @@ public interface LearningTaskService {
|
||||
* @param taskID 任务ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<TbLearningTask> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbLearningTask> updateTaskStatus(String taskID, Integer status);
|
||||
@@ -78,7 +78,7 @@ public interface LearningTaskService {
|
||||
* @description 获取任务用户列表
|
||||
* @param taskID 任务ID
|
||||
* @return ResultDomain<TbTaskUser> 用户列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskUser> getTaskUsers(String taskID);
|
||||
@@ -87,7 +87,7 @@ public interface LearningTaskService {
|
||||
* @description 添加任务用户
|
||||
* @param taskUser 任务用户信息
|
||||
* @return ResultDomain<TbTaskUser> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskUser> addTaskUser(TbTaskUser taskUser);
|
||||
@@ -98,7 +98,7 @@ public interface LearningTaskService {
|
||||
* @param userIDs 用户ID列表
|
||||
* @param deptID 部门ID
|
||||
* @return ResultDomain<TbTaskUser> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskUser> batchAddTaskUsers(String taskID, List<String> userIDs, String deptID);
|
||||
@@ -108,7 +108,7 @@ public interface LearningTaskService {
|
||||
* @param taskID 任务ID
|
||||
* @param userID 用户ID
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeTaskUser(String taskID, String userID);
|
||||
@@ -120,7 +120,7 @@ public interface LearningTaskService {
|
||||
* @param status 状态
|
||||
* @param progress 进度
|
||||
* @return ResultDomain<TbTaskUser> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskUser> updateTaskUserStatus(String taskID, String userID, Integer status, java.math.BigDecimal progress);
|
||||
@@ -131,7 +131,7 @@ public interface LearningTaskService {
|
||||
* @description 获取任务课程列表
|
||||
* @param taskID 任务ID
|
||||
* @return ResultDomain<TbTaskCourse> 课程列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskCourse> getTaskCourses(String taskID);
|
||||
@@ -140,7 +140,7 @@ public interface LearningTaskService {
|
||||
* @description 添加任务课程
|
||||
* @param taskCourse 任务课程信息
|
||||
* @return ResultDomain<TbTaskCourse> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskCourse> addTaskCourse(TbTaskCourse taskCourse);
|
||||
@@ -150,7 +150,7 @@ public interface LearningTaskService {
|
||||
* @param taskID 任务ID
|
||||
* @param courseID 课程ID
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeTaskCourse(String taskID, String courseID);
|
||||
@@ -161,7 +161,7 @@ public interface LearningTaskService {
|
||||
* @description 获取任务资源列表
|
||||
* @param taskID 任务ID
|
||||
* @return ResultDomain<TbTaskResource> 资源列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskResource> getTaskResources(String taskID);
|
||||
@@ -170,7 +170,7 @@ public interface LearningTaskService {
|
||||
* @description 添加任务资源
|
||||
* @param taskResource 任务资源信息
|
||||
* @return ResultDomain<TbTaskResource> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbTaskResource> addTaskResource(TbTaskResource taskResource);
|
||||
@@ -180,7 +180,7 @@ public interface LearningTaskService {
|
||||
* @param taskID 任务ID
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<Boolean> 移除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeTaskResource(String taskID, String resourceID);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 用户成就服务接口
|
||||
* @filename UserAchievementService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface UserAchievementService {
|
||||
* @param type 成就类型(可选)
|
||||
* @param level 成就等级(可选)
|
||||
* @return ResultDomain<TbAchievement> 成就列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAchievement> getAllAchievements(Integer type, Integer level);
|
||||
@@ -30,7 +30,7 @@ public interface UserAchievementService {
|
||||
* @param userID 用户ID
|
||||
* @param type 成就类型(可选)
|
||||
* @return ResultDomain<TbUserAchievement> 用户成就列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserAchievement> getUserAchievements(String userID, Integer type);
|
||||
@@ -40,7 +40,7 @@ public interface UserAchievementService {
|
||||
* @param userID 用户ID
|
||||
* @param achievementID 成就ID
|
||||
* @return ResultDomain<Boolean> 是否已获得
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> hasAchievement(String userID, String achievementID);
|
||||
@@ -50,7 +50,7 @@ public interface UserAchievementService {
|
||||
* @param userID 用户ID
|
||||
* @param achievementID 成就ID
|
||||
* @return ResultDomain<TbUserAchievement> 授予结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserAchievement> grantAchievement(String userID, String achievementID);
|
||||
@@ -59,7 +59,7 @@ public interface UserAchievementService {
|
||||
* @description 获取成就详情
|
||||
* @param achievementID 成就ID
|
||||
* @return ResultDomain<TbAchievement> 成就详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbAchievement> getAchievementDetail(String achievementID);
|
||||
@@ -69,7 +69,7 @@ public interface UserAchievementService {
|
||||
* @param userID 用户ID
|
||||
* @param achievementID 成就ID
|
||||
* @return ResultDomain<Boolean> 是否满足条件
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> checkAchievementCondition(String userID, String achievementID);
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 用户浏览记录服务接口
|
||||
* @filename UserBrowseRecordService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ public interface UserBrowseRecordService {
|
||||
* @description 添加浏览记录
|
||||
* @param browseRecord 浏览记录
|
||||
* @return ResultDomain<TbUserBrowseRecord> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserBrowseRecord> addBrowseRecord(TbUserBrowseRecord browseRecord);
|
||||
@@ -29,7 +29,7 @@ public interface UserBrowseRecordService {
|
||||
* @param browseType 浏览类型(可选)
|
||||
* @param limit 限制数量(可选)
|
||||
* @return ResultDomain<TbUserBrowseRecord> 浏览记录列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserBrowseRecord> getUserBrowseRecords(String userID, Integer browseType, Integer limit);
|
||||
@@ -38,7 +38,7 @@ public interface UserBrowseRecordService {
|
||||
* @description 删除浏览记录
|
||||
* @param recordID 记录ID
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> deleteBrowseRecord(String recordID);
|
||||
@@ -48,7 +48,7 @@ public interface UserBrowseRecordService {
|
||||
* @param userID 用户ID
|
||||
* @param browseType 浏览类型(可选)
|
||||
* @return ResultDomain<Boolean> 清空结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> clearUserBrowseRecords(String userID, Integer browseType);
|
||||
@@ -58,7 +58,7 @@ public interface UserBrowseRecordService {
|
||||
* @param userID 用户ID
|
||||
* @param browseType 浏览类型(可选)
|
||||
* @return ResultDomain<Integer> 浏览次数
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Integer> getBrowseCount(String userID, Integer browseType);
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.xyzh.common.dto.usercenter.TbUserCollection;
|
||||
/**
|
||||
* @description 用户收藏服务接口
|
||||
* @filename UserCollectionService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -16,7 +16,7 @@ public interface UserCollectionService {
|
||||
* @description 添加收藏
|
||||
* @param userCollection 收藏信息
|
||||
* @return ResultDomain<TbUserCollection> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserCollection> addCollection(TbUserCollection userCollection);
|
||||
@@ -27,7 +27,7 @@ public interface UserCollectionService {
|
||||
* @param collectionType 收藏类型
|
||||
* @param collectionID 收藏对象ID
|
||||
* @return ResultDomain<Boolean> 取消结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> removeCollection(String userID, Integer collectionType, String collectionID);
|
||||
@@ -38,7 +38,7 @@ public interface UserCollectionService {
|
||||
* @param collectionType 收藏类型
|
||||
* @param collectionID 收藏对象ID
|
||||
* @return ResultDomain<Boolean> 是否已收藏
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Boolean> isCollected(String userID, Integer collectionType, String collectionID);
|
||||
@@ -48,7 +48,7 @@ public interface UserCollectionService {
|
||||
* @param userID 用户ID
|
||||
* @param collectionType 收藏类型(可选)
|
||||
* @return ResultDomain<TbUserCollection> 收藏列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserCollection> getUserCollections(String userID, Integer collectionType);
|
||||
@@ -59,7 +59,7 @@ public interface UserCollectionService {
|
||||
* @param collectionType 收藏类型
|
||||
* @param collectionID 收藏对象ID
|
||||
* @return ResultDomain<TbUserCollection> 收藏详情
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserCollection> getCollectionDetail(String userID, Integer collectionType, String collectionID);
|
||||
@@ -71,7 +71,7 @@ public interface UserCollectionService {
|
||||
* @param collectionID 收藏对象ID
|
||||
* @param resourceID 资源ID
|
||||
* @return ResultDomain<Integer> 收藏数量
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<Integer> getCollectionCount(String userID, Integer collectionType, String collectionID);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 用户积分服务接口
|
||||
* @filename UserPointsService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -19,7 +19,7 @@ public interface UserPointsService {
|
||||
* @description 获取用户积分信息
|
||||
* @param userID 用户ID
|
||||
* @return ResultDomain<TbUserPoints> 用户积分信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserPoints> getUserPoints(String userID);
|
||||
@@ -28,7 +28,7 @@ public interface UserPointsService {
|
||||
* @description 更新用户积分
|
||||
* @param userPoints 用户积分信息
|
||||
* @return ResultDomain<TbUserPoints> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserPoints> updateUserPoints(TbUserPoints userPoints);
|
||||
@@ -41,7 +41,7 @@ public interface UserPointsService {
|
||||
* @param sourceID 来源ID
|
||||
* @param description 说明
|
||||
* @return ResultDomain<TbUserPoints> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserPoints> addUserPoints(String userID, Integer points, Integer sourceType, String sourceID, String description);
|
||||
@@ -54,7 +54,7 @@ public interface UserPointsService {
|
||||
* @param sourceID 来源ID
|
||||
* @param description 说明
|
||||
* @return ResultDomain<TbUserPoints> 更新结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbUserPoints> consumeUserPoints(String userID, Integer points, Integer sourceType, String sourceID, String description);
|
||||
@@ -65,7 +65,7 @@ public interface UserPointsService {
|
||||
* @param type 类型(1获得 2消费)
|
||||
* @param sourceType 来源类型
|
||||
* @return ResultDomain<TbPointsRecord> 积分记录列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbPointsRecord> getPointsRecords(String userID, Integer type, Integer sourceType);
|
||||
@@ -74,7 +74,7 @@ public interface UserPointsService {
|
||||
* @description 添加积分记录
|
||||
* @param pointsRecord 积分记录
|
||||
* @return ResultDomain<TbPointsRecord> 添加结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
ResultDomain<TbPointsRecord> addPointsRecord(TbPointsRecord pointsRecord);
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.math.BigDecimal;
|
||||
/**
|
||||
* @description 智能体配置表
|
||||
* @filename TbAiAgentConfig.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 对话会话表
|
||||
* @filename TbAiConversation.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 知识库表
|
||||
* @filename TbAiKnowledge.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 对话消息表
|
||||
* @filename TbAiMessage.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 上传文件表
|
||||
* @filename TbAiUploadFile.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description AI使用统计表
|
||||
* @filename TbAiUsageStatistics.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 统一资源权限控制表
|
||||
* @filename TbResourcePermission.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description Banner表
|
||||
* @filename TbBanner.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 数据采集配置表
|
||||
* @filename TbDataCollectionConfig.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 数据采集记录表
|
||||
* @filename TbDataCollectionLog.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 资源表
|
||||
* @filename TbResource.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 资源分类表
|
||||
* @filename TbResourceCategory.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 资源推荐表
|
||||
* @filename TbResourceRecommend.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 资源标签关联表
|
||||
* @filename TbResourceTag.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 标签表
|
||||
* @filename TbTag.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 课程表
|
||||
* @filename TbCourse.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 课程章节表
|
||||
* @filename TbCourseChapter.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 课程标签关联表
|
||||
* @filename TbCourseTag.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 学习记录表
|
||||
* @filename TbLearningRecord.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 学习统计表
|
||||
* @filename TbLearningStatistics.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 学习任务表
|
||||
* @filename TbLearningTask.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 任务课程关联表
|
||||
* @filename TbTaskCourse.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 任务资源关联表
|
||||
* @filename TbTaskResource.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 任务用户表
|
||||
* @filename TbTaskUser.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 系统配置表
|
||||
* @filename TbSysConfig.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 字典数据表
|
||||
* @filename TbSysDictData.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 字典类型表
|
||||
* @filename TbSysDictType.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 文件上传记录表
|
||||
* @filename TbSysFile.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -13,6 +13,8 @@ public class TbSysFile extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String fileID;
|
||||
|
||||
/**
|
||||
* @description 文件名
|
||||
*/
|
||||
@@ -48,6 +50,11 @@ public class TbSysFile extends BaseDTO {
|
||||
*/
|
||||
private String mimeType;
|
||||
|
||||
/**
|
||||
* @description 存储类型(local-本地存储、minio-MinIO存储、oss-阿里云OSS等)
|
||||
*/
|
||||
private String storageType;
|
||||
|
||||
/**
|
||||
* @description 所属模块
|
||||
*/
|
||||
@@ -63,6 +70,14 @@ public class TbSysFile extends BaseDTO {
|
||||
*/
|
||||
private String uploader;
|
||||
|
||||
public String getFileID() {
|
||||
return fileID;
|
||||
}
|
||||
|
||||
public void setFileID(String fileID) {
|
||||
this.fileID = fileID;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
@@ -119,6 +134,14 @@ public class TbSysFile extends BaseDTO {
|
||||
this.mimeType = mimeType;
|
||||
}
|
||||
|
||||
public String getStorageType() {
|
||||
return storageType;
|
||||
}
|
||||
|
||||
public void setStorageType(String storageType) {
|
||||
this.storageType = storageType;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
@@ -146,11 +169,12 @@ public class TbSysFile extends BaseDTO {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbSysFile{" +
|
||||
"id=" + getID() +
|
||||
"fileID='" + fileID + '\'' +
|
||||
", fileName='" + fileName + '\'' +
|
||||
", originalName='" + originalName + '\'' +
|
||||
", fileSize=" + fileSize +
|
||||
", fileType='" + fileType + '\'' +
|
||||
", storageType='" + storageType + '\'' +
|
||||
", module='" + module + '\'' +
|
||||
", businessID='" + businessID + '\'' +
|
||||
", uploader='" + uploader + '\'' +
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 系统通知表
|
||||
* @filename TbSysNotification.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 操作日志表
|
||||
* @filename TbSysOperationLog.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 系统访问统计表
|
||||
* @filename TbSysVisitStatistics.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 成就表
|
||||
* @filename TbAchievement.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 积分记录表
|
||||
* @filename TbPointsRecord.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 用户成就表
|
||||
* @filename TbUserAchievement.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Date;
|
||||
/**
|
||||
* @description 用户浏览记录表
|
||||
* @filename TbUserBrowseRecord.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 用户收藏表
|
||||
* @filename TbUserCollection.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.common.dto.BaseDTO;
|
||||
/**
|
||||
* @description 用户积分表
|
||||
* @filename TbUserPoints.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 文件存储配置类
|
||||
* @filename FileStorageConfig.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.nio.charset.StandardCharsets;
|
||||
/**
|
||||
* @description 文件控制器
|
||||
* @filename FileController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@@ -37,7 +37,7 @@ public class FileController {
|
||||
* @param businessId 业务ID
|
||||
* @param uploader 上传者用户ID(可选)
|
||||
* @return ResultDomain<TbSysFile> 上传结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@PostMapping("/upload")
|
||||
@@ -57,7 +57,7 @@ public class FileController {
|
||||
* @description 下载文件
|
||||
* @param fileId 文件ID
|
||||
* @return ResponseEntity<byte[]> 文件字节数组
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@GetMapping("/download/{fileId}")
|
||||
@@ -91,7 +91,7 @@ public class FileController {
|
||||
* @description 删除文件(逻辑删除)
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@DeleteMapping("/{fileId}")
|
||||
@@ -104,7 +104,7 @@ public class FileController {
|
||||
* @description 物理删除文件
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@DeleteMapping("/physical/{fileId}")
|
||||
@@ -117,7 +117,7 @@ public class FileController {
|
||||
* @description 根据文件ID查询文件信息
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@GetMapping("/{fileId}")
|
||||
@@ -130,7 +130,7 @@ public class FileController {
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @return ResultDomain<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@GetMapping("/business/{module}/{businessId}")
|
||||
@@ -144,7 +144,7 @@ public class FileController {
|
||||
* @description 根据上传者查询文件列表
|
||||
* @param uploader 上传者用户ID
|
||||
* @return ResultDomain<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@GetMapping("/uploader/{uploader}")
|
||||
@@ -156,7 +156,7 @@ public class FileController {
|
||||
* @description 获取文件访问URL
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<String> 文件访问URL
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@GetMapping("/url/{fileId}")
|
||||
@@ -171,7 +171,7 @@ public class FileController {
|
||||
* @param businessId 业务ID
|
||||
* @param uploader 上传者用户ID(可选)
|
||||
* @return ResultDomain<TbSysFile> 上传结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@PostMapping("/batch-upload")
|
||||
@@ -191,7 +191,7 @@ public class FileController {
|
||||
* @description 批量删除文件
|
||||
* @param fileIds 文件ID数组
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@DeleteMapping("/batch")
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 文件Mapper接口
|
||||
* @filename FileMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 插入文件记录
|
||||
* @param file 文件对象
|
||||
* @return int 影响行数
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
int insertFile(@Param("file") TbSysFile file);
|
||||
@@ -30,7 +30,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 根据文件ID查询文件信息
|
||||
* @param fileId 文件ID
|
||||
* @return TbSysFile 文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
TbSysFile selectFileById(@Param("fileId") String fileId);
|
||||
@@ -39,7 +39,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 根据文件ID查询文件信息(包括已删除)
|
||||
* @param fileId 文件ID
|
||||
* @return TbSysFile 文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
TbSysFile selectFileByIdIncludeDeleted(@Param("fileId") String fileId);
|
||||
@@ -49,7 +49,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @return List<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
List<TbSysFile> selectFilesByBusinessId(@Param("module") String module, @Param("businessId") String businessId);
|
||||
@@ -58,7 +58,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 根据上传者查询文件列表
|
||||
* @param uploader 上传者用户ID
|
||||
* @return List<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
List<TbSysFile> selectFilesByUploader(@Param("uploader") String uploader);
|
||||
@@ -67,7 +67,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 逻辑删除文件
|
||||
* @param fileId 文件ID
|
||||
* @return int 影响行数
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
int logicDeleteFileById(@Param("fileId") String fileId);
|
||||
@@ -76,7 +76,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 物理删除文件
|
||||
* @param fileId 文件ID
|
||||
* @return int 影响行数
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
int deleteFileById(@Param("fileId") String fileId);
|
||||
@@ -85,7 +85,7 @@ public interface FileMapper extends BaseMapper<TbSysFile>{
|
||||
* @description 批量逻辑删除文件
|
||||
* @param fileIds 文件ID列表
|
||||
* @return int 影响行数
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
int batchLogicDeleteFiles(@Param("fileIds") List<String> fileIds);
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* @description 文件服务实现
|
||||
* @filename FileServiceImpl.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* @description 文件存储策略接口
|
||||
* @filename FileStorageStrategy.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface FileStorageStrategy {
|
||||
* @param module 所属模块
|
||||
* @return String 文件存储路径
|
||||
* @throws IOException IO异常
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
String upload(MultipartFile file, String fileName, String module) throws IOException;
|
||||
@@ -30,7 +30,7 @@ public interface FileStorageStrategy {
|
||||
* @param filePath 文件路径
|
||||
* @return byte[] 文件字节数组
|
||||
* @throws IOException IO异常
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
byte[] download(String filePath) throws IOException;
|
||||
@@ -40,7 +40,7 @@ public interface FileStorageStrategy {
|
||||
* @param filePath 文件路径
|
||||
* @return boolean 删除是否成功
|
||||
* @throws IOException IO异常
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
boolean delete(String filePath) throws IOException;
|
||||
@@ -49,7 +49,7 @@ public interface FileStorageStrategy {
|
||||
* @description 获取文件访问URL
|
||||
* @param filePath 文件路径
|
||||
* @return String 文件访问URL
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
String getFileUrl(String filePath);
|
||||
@@ -57,7 +57,7 @@ public interface FileStorageStrategy {
|
||||
/**
|
||||
* @description 获取存储类型
|
||||
* @return String 存储类型
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
String getStorageType();
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
/**
|
||||
* @description 文件存储策略工厂
|
||||
* @filename FileStorageStrategyFactory.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@@ -53,7 +53,7 @@ public class FileStorageStrategyFactory {
|
||||
* @description 根据配置创建存储策略
|
||||
* @param storage 存储配置
|
||||
* @return FileStorageStrategy 存储策略
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
private FileStorageStrategy createStrategy(FileStorageConfig.StorageProperties storage) {
|
||||
@@ -83,7 +83,7 @@ public class FileStorageStrategyFactory {
|
||||
/**
|
||||
* @description 获取默认存储策略
|
||||
* @return FileStorageStrategy 存储策略
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
public FileStorageStrategy getDefaultStrategy() {
|
||||
@@ -94,7 +94,7 @@ public class FileStorageStrategyFactory {
|
||||
* @description 根据类型获取存储策略
|
||||
* @param storageType 存储类型
|
||||
* @return FileStorageStrategy 存储策略
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
public FileStorageStrategy getStrategy(String storageType) {
|
||||
@@ -110,7 +110,7 @@ public class FileStorageStrategyFactory {
|
||||
* @description 注册新的存储策略
|
||||
* @param storageType 存储类型
|
||||
* @param strategy 存储策略
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
public void registerStrategy(String storageType, FileStorageStrategy strategy) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.nio.file.Paths;
|
||||
/**
|
||||
* @description 本地文件存储策略实现
|
||||
* @filename LocalFileStorageStrategy.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
|
||||
/**
|
||||
* @description MinIO文件存储策略实现
|
||||
* @filename MinIOFileStorageStrategy.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.xyzh.common.dto.resource.TbBanner;
|
||||
/**
|
||||
* @description 横幅控制器
|
||||
* @filename BannerController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.xyzh.common.dto.resource.TbDataCollectionLog;
|
||||
/**
|
||||
* @description 数据采集控制器
|
||||
* @filename DataCollectionController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @description 首页控制器
|
||||
* @filename HomePageController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.xyzh.common.dto.resource.TbResourceCategory;
|
||||
/**
|
||||
* @description 资源分类控制器
|
||||
* @filename ResourceCategoryController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @description 资源中心控制器
|
||||
* @filename ResourceCenterController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.xyzh.common.dto.resource.TbResource;
|
||||
/**
|
||||
* @description 资源控制器
|
||||
* @filename ResourceController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @description 资源管理控制器
|
||||
* @filename ResourceManagementController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.xyzh.common.dto.resource.TbResourceRecommend;
|
||||
/**
|
||||
* @description 资源推荐控制器
|
||||
* @filename ResourceRecommendController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.xyzh.common.dto.resource.TbTag;
|
||||
/**
|
||||
* @description 标签控制器
|
||||
* @filename TagController.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description Banner数据访问层
|
||||
* @filename BannerMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface BannerMapper extends BaseMapper<TbBanner> {
|
||||
* @description 查询Banner列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbBanner> Banner列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbBanner> selectBanners(TbBanner filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 数据采集配置数据访问层
|
||||
* @filename DataCollectionConfigMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface DataCollectionConfigMapper extends BaseMapper<TbDataCollectionC
|
||||
* @description 查询数据采集配置列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbDataCollectionConfig> 数据采集配置列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbDataCollectionConfig> selectDataCollectionConfigs(TbDataCollectionConfig filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 数据采集记录数据访问层
|
||||
* @filename DataCollectionLogMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface DataCollectionLogMapper extends BaseMapper<TbDataCollectionLog>
|
||||
* @description 查询数据采集记录列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbDataCollectionLog> 数据采集记录列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbDataCollectionLog> selectDataCollectionLogs(TbDataCollectionLog filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源分类数据访问层
|
||||
* @filename ResourceCategoryMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface ResourceCategoryMapper extends BaseMapper<TbResourceCategory> {
|
||||
* @description 查询资源分类列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbResourceCategory> 资源分类列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbResourceCategory> selectResourceCategories(TbResourceCategory filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源数据访问层
|
||||
* @filename ResourceMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface ResourceMapper extends BaseMapper<TbResource> {
|
||||
* @description 查询资源列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbResource> 资源列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbResource> selectResources(TbResource filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源推荐数据访问层
|
||||
* @filename ResourceRecommendMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface ResourceRecommendMapper extends BaseMapper<TbResourceRecommend>
|
||||
* @description 查询资源推荐列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbResourceRecommend> 资源推荐列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbResourceRecommend> selectResourceRecommends(TbResourceRecommend filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 资源标签关联数据访问层
|
||||
* @filename ResourceTagMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface ResourceTagMapper extends BaseMapper<TbResourceTag> {
|
||||
* @description 查询资源标签关联列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbResourceTag> 资源标签关联列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbResourceTag> selectResourceTags(TbResourceTag filter);
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* @description 标签数据访问层
|
||||
* @filename TagMapper.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
@@ -20,7 +20,7 @@ public interface TagMapper extends BaseMapper<TbTag> {
|
||||
* @description 查询标签列表
|
||||
* @param filter 过滤条件
|
||||
* @return List<TbTag> 标签列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
List<TbTag> selectTags(TbTag filter);
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.api.news.banner.BannerService;
|
||||
/**
|
||||
* @description 横幅服务接口
|
||||
* @filename NCBannerService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.api.news.collection.DataCollectionService;
|
||||
/**
|
||||
* @description 数据采集服务接口
|
||||
* @filename NCDataCollectionService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.api.news.category.ResourceCategoryService;
|
||||
/**
|
||||
* @description 资源分类服务接口
|
||||
* @filename NCResourceCategoryService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.api.news.recommend.ResourceRecommendService;
|
||||
/**
|
||||
* @description 资源推荐服务接口
|
||||
* @filename NCResourceRecommendService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.api.news.resource.ResourceService;
|
||||
/**
|
||||
* @description 资源服务接口
|
||||
* @filename NCResourceService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.xyzh.api.news.tag.TagService;
|
||||
/**
|
||||
* @description 标签服务接口
|
||||
* @filename NCTagService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.xyzh.api.news.banner.BannerService;
|
||||
/**
|
||||
* @description 横幅服务实现类
|
||||
* @filename NCBannerServiceImpl.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.xyzh.api.news.collection.DataCollectionService;
|
||||
/**
|
||||
* @description 数据采集服务实现类
|
||||
* @filename NCDataCollectionServiceImpl.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.xyzh.api.news.category.ResourceCategoryService;
|
||||
/**
|
||||
* @description 资源分类服务实现类
|
||||
* @filename NCResourceCategoryServiceImpl.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.xyzh.api.news.recommend.ResourceRecommendService;
|
||||
/**
|
||||
* @description 资源推荐服务实现类
|
||||
* @filename NCResourceRecommendServiceImpl.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user