This commit is contained in:
Leo
2025-12-08 14:42:44 +08:00
parent 632b9f7eb1
commit 9a8c7b1039
15 changed files with 1151 additions and 1 deletions

View File

@@ -0,0 +1,65 @@
package com.ruoyi.jarvis.service;
import com.ruoyi.jarvis.domain.Comment;
import com.ruoyi.jarvis.domain.dto.CommentStatistics;
import com.ruoyi.jarvis.domain.dto.CommentApiStatistics;
import java.util.List;
import java.util.Map;
/**
* 评论管理 Service 接口
*/
public interface ICommentService {
/**
* 查询京东评论列表
*/
List<Comment> selectCommentList(Comment comment);
/**
* 根据ID查询京东评论
*/
Comment selectCommentById(Long id);
/**
* 更新评论使用状态
*/
int updateCommentIsUse(Comment comment);
/**
* 批量删除评论
*/
int deleteCommentByIds(Long[] ids);
/**
* 重置评论使用状态(批量)
*/
int resetCommentIsUseByProductId(String productId);
/**
* 获取评论统计信息包含Redis映射
*/
List<CommentStatistics> getCommentStatistics(String source);
/**
* 记录接口调用统计
*/
void recordApiCall(String apiType, String productType, boolean success);
/**
* 获取接口调用统计
*/
List<CommentApiStatistics> getApiStatistics(String apiType, String productType, String startDate, String endDate);
/**
* 获取Redis产品类型映射京东
*/
Map<String, String> getJdProductTypeMap();
/**
* 获取Redis产品类型映射淘宝
*/
Map<String, String> getTbProductTypeMap();
}