sxwz2.0/src/main/java/com/kexue/skills/entity/CmsContent.java
wangzhiwei d8d1a4eaf4 feat(content): 重构内容管理系统增加标签功能
- 修改应用配置文件,统一token和session超时时间为24小时
- 配置Redis连接参数为动态引用公共配置
- 在内容实体类中替换分类相关字段为来源和标签字段
- 移除分类ID数组设置方法,优化实体映射
- 更新MyBatis映射文件中的字段映射关系
- 新增CmsCategoryTag实体类用于分类标签关联
- 实现标签服务接口,支持按分类查询标签列表
- 在内容控制器中添加标签列表获取接口
- 重构技能生成控制器,分离预生成和生成接口
- 更新技能请求参数类,支持标签列表传递
- 调整用户登录信息缓存时间至24小时
- 完善分类标签关联的数据访问层实现
2026-02-25 11:14:43 +08:00

139 lines
3.9 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.kexue.skills.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
import com.kexue.skills.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* (CmsContent)实体类
*
* @author 王志维
* @since 2025-02-21 23:01:48
*/
@Data
public class CmsContent extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description ="主键ID")
private Long contentId;
@Schema(description ="标题")
private String title;
@Schema(description ="是否是官方0否1是")
private Boolean isOfficial;
@Schema(description ="分类ID列表逗号分隔")
private String categoryIds;
@Schema(description ="图标")
private String icon;
@Schema(description ="背景")
private String background;
@Schema(description ="文件URL")
private String fileUrl;
@Schema(description ="内容摘要")
private String summary;
@Schema(description ="分享数量")
private Integer shareCount;
@Schema(description ="点赞量")
private Integer likeCount;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description ="创建时间")
private Date createTime;
@Schema(description ="付费金额")
private BigDecimal price;
@Schema(description ="内容类型1文章2视频3图片")
private Integer contentType;
@Schema(description ="内容详情")
private String content;
@Schema(description ="封面图片")
private String coverImage;
@Schema(description ="作者ID")
private Long authorId;
@Schema(description ="作者名称")
private String authorName;
@Schema(description ="审核人ID")
private Long reviewerId;
@Schema(description ="审核人名称")
private String reviewerName;
@Schema(description ="审核状态1草稿2待审核3审核通过4审核拒绝")
private Integer auditStatus;
@Schema(description ="审核意见")
private String auditComment;
@Schema(description ="发布状态1未发布2已发布3已下架")
private Integer publishStatus;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description ="发布时间")
private Date publishTime;
@Schema(description ="阅读量")
private Integer viewCount;
@Schema(description ="评论量")
private Integer commentCount;
@Schema(description ="排序")
private Integer sort;
@Schema(description ="所需积分")
private Integer requiredPoints;
@Schema(description ="是否支持积分支付0不支持1支持")
private Integer supportPointsPay;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description ="更新时间")
private Date updateTime;
@Schema(description ="创建人")
private String createBy;
@Schema(description ="更新人")
private String updateBy;
@Schema(description ="是否删除 0 未删除1已删除")
private Integer deleteFlag;
@Schema(description ="子分类列表")
private java.util.List<CmsCategory> subCategoryList;
@Schema(description ="是否付费0免费1付费")
private Integer isPaid;
@Schema(description ="副标题")
private String subtitle;
@Schema(description ="来源")
private String origin;
@Schema(description ="标签")
private String tags;
}