- 修改应用配置文件,统一token和session超时时间为24小时 - 配置Redis连接参数为动态引用公共配置 - 在内容实体类中替换分类相关字段为来源和标签字段 - 移除分类ID数组设置方法,优化实体映射 - 更新MyBatis映射文件中的字段映射关系 - 新增CmsCategoryTag实体类用于分类标签关联 - 实现标签服务接口,支持按分类查询标签列表 - 在内容控制器中添加标签列表获取接口 - 重构技能生成控制器,分离预生成和生成接口 - 更新技能请求参数类,支持标签列表传递 - 调整用户登录信息缓存时间至24小时 - 完善分类标签关联的数据访问层实现
139 lines
3.9 KiB
Java
139 lines
3.9 KiB
Java
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;
|
||
|
||
}
|