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,60 @@
package com.ruoyi.jarvis.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 京东评论对象 comments
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class Comment extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键ID */
@Excel(name = "ID")
private Long id;
/** 商品ID */
@Excel(name = "商品ID")
private String productId;
/** 用户名 */
@Excel(name = "用户名")
private String userName;
/** 评论内容 */
@Excel(name = "评论内容")
private String commentText;
/** 评论ID */
@Excel(name = "评论ID")
private String commentId;
/** 图片URLs */
@Excel(name = "图片URLs")
private String pictureUrls;
/** 创建时间 */
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/** 评论日期 */
@Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date commentDate;
/** 是否已使用 0-未使用 1-已使用 */
@Excel(name = "使用状态", readConverterExp = "0=未使用,1=已使用")
private Integer isUse;
/** 产品类型从Redis映射获取 */
private String productType;
/** Redis映射的产品ID */
private String mappedProductId;
}

View File

@@ -0,0 +1,58 @@
package com.ruoyi.jarvis.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 淘宝评论对象 taobao_comments
*/
@Data
public class TaobaoComment extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键ID */
@Excel(name = "ID")
private Integer id;
/** 商品ID */
@Excel(name = "商品ID")
private String productId;
/** 用户名 */
@Excel(name = "用户名")
private String userName;
/** 评论内容 */
@Excel(name = "评论内容")
private String commentText;
/** 评论ID */
@Excel(name = "评论ID")
private String commentId;
/** 图片URLs */
@Excel(name = "图片URLs")
private String pictureUrls;
/** 创建时间 */
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/** 评论日期 */
@Excel(name = "评论日期")
private String commentDate;
/** 是否已使用 0-未使用 1-已使用 */
@Excel(name = "使用状态", readConverterExp = "0=未使用,1=已使用")
private Integer isUse;
/** 产品类型从Redis映射获取 */
private String productType;
/** Redis映射的产品ID */
private String mappedProductId;
}

View File

@@ -0,0 +1,30 @@
package com.ruoyi.jarvis.domain.dto;
import lombok.Data;
import java.util.Date;
/**
* 评论接口调用统计
*/
@Data
public class CommentApiStatistics {
/** 统计日期 */
private Date statDate;
/** 接口类型jd-京东tb-淘宝 */
private String apiType;
/** 产品类型 */
private String productType;
/** 调用次数 */
private Long callCount;
/** 成功次数 */
private Long successCount;
/** 失败次数 */
private Long failCount;
}

View File

@@ -0,0 +1,34 @@
package com.ruoyi.jarvis.domain.dto;
import lombok.Data;
/**
* 评论统计信息
*/
@Data
public class CommentStatistics {
/** 评论来源jd-京东tb-淘宝 */
private String source;
/** 产品类型 */
private String productType;
/** 产品ID */
private String productId;
/** 总评论数 */
private Long totalCount;
/** 可用评论数(未使用) */
private Long availableCount;
/** 已使用评论数 */
private Long usedCount;
/** 接口调用次数 */
private Long apiCallCount;
/** 今日调用次数 */
private Long todayCallCount;
}