feat(mq): 新增直播明细消息队列与处理链路
- 新增 ServerLiveHostDetail 实体、Mapper、Service 及实现类 - MQSender 新增 liveHostDetailSend 方法,MQReceiver 新增 liveHostDetailReceive 消费者 - RabbitMQConfig 补充 LIVE_HOST_DETAIL 队列定义 - HostInfoController 新增 add_live_host_detail 接口,支持批量接收直播明细数据 - .gitignore 忽略 CLAUDE.md 日志文件
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
package com.yupi.springbootinit.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2025/12/17 20:45
|
||||
*/
|
||||
|
||||
/**
|
||||
* 主播单场直播明细表
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "server_live_host_detail")
|
||||
public class ServerLiveHostDetail {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 当前用户标识
|
||||
*/
|
||||
@TableField(value = "user_id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 主播名称
|
||||
*/
|
||||
@TableField(value = "hosts_id")
|
||||
private String hostsId;
|
||||
|
||||
/**
|
||||
* 粉丝团人数
|
||||
*/
|
||||
@TableField(value = "fans_club_count")
|
||||
private Integer fansClubCount;
|
||||
|
||||
/**
|
||||
* 礼物之比
|
||||
*/
|
||||
@TableField(value = "lighted_vs_total_gifts")
|
||||
private String lightedVsTotalGifts;
|
||||
|
||||
/**
|
||||
* 直播开始时间(格式化)
|
||||
*/
|
||||
@TableField(value = "start_time_formatted")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date startTimeFormatted;
|
||||
|
||||
/**
|
||||
* 直播结束时间(格式化)
|
||||
*/
|
||||
@TableField(value = "end_time_formatted")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date endTimeFormatted;
|
||||
|
||||
/**
|
||||
* 获得的点赞数量
|
||||
*/
|
||||
@TableField(value = "like_count")
|
||||
private Integer likeCount;
|
||||
|
||||
/**
|
||||
* 持续时间(格式化)
|
||||
*/
|
||||
@TableField(value = "duration_formatted")
|
||||
private String durationFormatted;
|
||||
|
||||
/**
|
||||
* 记录创建时间
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 记录更新时间
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 租户 Id
|
||||
*/
|
||||
@TableField(value = "tenant_id")
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@TableField(value = "deleted")
|
||||
private Byte deleted;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@TableField(value = "updater")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(value = "creator")
|
||||
private String creator;
|
||||
}
|
||||
Reference in New Issue
Block a user