当前位置: 首页 > news >正文

JAVA-实战8 Redis实战项目—雷神点评(附加)数据实体类

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_blog_comments")
@NoArgsConstructor
@AllArgsConstructor
public class BlogCommentData implements Serializable {@TableId(value = "id", type = IdType.AUTO)private Long id;private Long userId;private Long blogId;private Long parentId;private Long answerId;private String content;private Integer liked;private Boolean status;private LocalDateTime createTime;private LocalDateTime updateTime;}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_blog")
@NoArgsConstructor
@AllArgsConstructor
public class BlogData implements Serializable {@TableId(value = "id", type = IdType.AUTO)private Long id;private Long shopId;private Long userId;@TableField(exist = false)private String icon;@TableField(exist = false)private String name;@TableField(exist = false)private Boolean isLike;private String title;private String images;private String content;private Integer liked;private Integer comments;private LocalDateTime createTime;private LocalDateTime updateTime;}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_follow")
@NoArgsConstructor
@AllArgsConstructor
public class FollowData implements Serializable {@TableId(value = "id", type = IdType.AUTO)private Long id;private Long userId;private Long followUserId;private LocalDateTime createTime;
}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_like")
@NoArgsConstructor
@AllArgsConstructor
public class LikeData {@TableId(value = "id", type = IdType.AUTO)private Long id;private Long blogId;private Long userId;private Long likedCount;
}
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginFormData {private String phone;private String code;private String password;
}
@Data
public class ResultData {private Integer code; //编码:1成功,0为失败private String msg; //错误信息private Object data; //数据public static ResultData success() {ResultData result = new ResultData();result.code = 1;result.msg = "success";return result;}public static ResultData success(Object object) {ResultData result = new ResultData();result.data = object;result.code = 1;result.msg = "success";return result;}public static ResultData error(String msg) {ResultData result = new ResultData();result.msg = msg;result.code = 0;return result;}
}
@Data
public class ScrollResult {private List<?> list;private Long minTime;private Integer offset;
}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_shop")
public class ShopData{@TableId(value = "id", type = IdType.AUTO)private Long id;private String name;private Long typeId;private String images;private String area;private String address;private Double x;private Double y;private Long avgPrice;private Integer sold;private Integer comments;private Integer score;private String openHours;private LocalDateTime createTime;private LocalDateTime updateTime;@TableField(exist = false)private Double distance;
}
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserBaseData {private String id;private String nickName;private String icon = "";
}
@TableName("tb_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserData {@TableId(value = "id", type = IdType.AUTO)private Long id;private String phone;private String password;private String nickName;private String icon = "";private LocalDateTime createTime;private LocalDateTime updateTime;
}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_voucher")
@AllArgsConstructor
@NoArgsConstructor
public class VoucherData implements Serializable {@TableId(value = "id", type = IdType.AUTO)private Long id;private Long shopId;private String title;private String subTitle;private String rules;private Long payValue;private Long actualValue;private Integer type;private Integer status;@TableField(exist = false)private Integer stock;@TableField(exist = false)private LocalDateTime beginTime;@TableField(exist = false)private LocalDateTime endTime;private LocalDateTime createTime;private LocalDateTime updateTime;
}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_voucher_order")
@NoArgsConstructor
@AllArgsConstructor
public class VoucherOrderData implements Serializable {@TableId(value = "id", type = IdType.INPUT)private Long id;private Long userId;private Long voucherId;private Integer payType;private Integer status;private LocalDateTime createTime;private LocalDateTime payTime;private LocalDateTime useTime;private LocalDateTime refundTime;private LocalDateTime updateTime;
}
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_seckill_voucher")
@AllArgsConstructor
@NoArgsConstructor
public class VoucherSecondKillData {@TableId(value = "voucher_id", type = IdType.INPUT)private Long voucherId;private Integer stock;private LocalDateTime createTime;private LocalDateTime beginTime;private LocalDateTime endTime;private LocalDateTime updateTime;
}
http://www.jsqmd.com/news/785791/

相关文章:

  • 认知科学如何启发AI:从感知机制到通用智能的五大支柱
  • AI-XR元宇宙隐私保护:从数据最小化到零知识证明的技术实践
  • YOLOv5与LSTM构建智能交通系统:从实时感知到动态信号控制
  • 小米关闭USB安装提示的解决方法(超简单)
  • 开源音乐技能开发实战:从音频指纹到多模态交互
  • 2026年3月宠物外科医生哪个好,宠物骨科/宠物骨科专家/宠物体检/异宠医院/宠物内科,宠物外科医生找哪家 - 品牌推荐师
  • Terraform Import实战指南:将现有云资源纳入IaC管理
  • 脑机接口中的可解释AI:从黑盒解码到透明神经交互
  • 模力方舟:中国AI开源生态的自主创新样本
  • Unity协程
  • SpringBoot+Vue 海滨学院班级回忆录设计与实现平台完整项目源码+SQL脚本+接口文档【Java Web毕设】
  • Codex客户端左侧侧边栏变黑的解决方法(Windows)
  • 3分钟掌握N_m3u8DL-RE:跨平台流媒体下载神器终极指南
  • 团队如何利用Taotoken CLI统一配置多工具开发环境
  • 修改寄存器的位操作方法
  • 国产研发协作平台Gitee崛起:本土化与全链路集成重塑项目管理新生态
  • java的运行机制:编译期、运行期和半编译半解释性
  • 科研绘图别再乱找素材了
  • Thunderbolt 5 的ESD保护方案
  • 2026年AI技术大会报名截止时间全链路解析(含时区换算表与主办方内部截止逻辑)
  • 基于MCP协议构建MeiliSearch AI助手集成:安全搜索与工作流自动化
  • AI与多级回归后分层:社交媒体数据如何校准预测选举结果
  • 中国企业DevOps工具链选型新趋势:本土化与安全可控成核心指标
  • Linux内核Dirty Frag漏洞
  • 2026 年广州全屋高端定制用户好评 TOP 排名及选型指南
  • 数据驱动的可解释AI:从特征归因到样本影响分析的实践指南
  • 法律AI中的形式化方法:从规则自动化到逻辑边界探索
  • CANN/opbase AI CPU任务接口
  • CANN/ops-cv最近邻插值算子
  • CANN技术博客与最佳实践