package com.entity.vo; import com.entity.JianshenkechengCollectionEntity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; // 课程收藏手机端接口返回VO,去除不必要字段 @TableName("jianshenkecheng_collection") public class JianshenkechengCollectionVO implements Serializable { private static final long serialVersionUID = 1L; // 主键ID @TableField(value = "id") private Integer id; // 关联的健身课程ID @TableField(value = "jianshenkecheng_id") private Integer jianshenkechengId; // 收藏用户ID @TableField(value = "yonghu_id") private Integer yonghuId; // 收藏类型(如:1收藏/2取消) @TableField(value = "jianshenkecheng_collection_types") private Integer jianshenkechengCollectionTypes; // 收藏时间(带时区格式化) @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat @TableField(value = "insert_time") private Date insertTime; // 记录创建时间(用于特定展示场景) @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat @TableField(value = "create_time") private Date createTime; // 获取:主键ID public Integer getId() { return id; } // 设置:主键ID public void setId(Integer id) { this.id = id; } // 获取:关联课程ID public Integer getJianshenkechengId() { return jianshenkechengId; } // 设置:关联课程ID public void setJianshenkechengId(Integer jianshenkechengId) { this.jianshenkechengId = jianshenkechengId; } // 获取:用户ID public Integer getYonghuId() { return yonghuId; } // 设置:用户ID public void setYonghuId(Integer yonghuId) { this.yonghuId = yonghuId; } // 获取:收藏类型 public Integer getJianshenkechengCollectionTypes() { return jianshenkechengCollectionTypes; } // 设置:收藏类型 public void setJianshenkechengCollectionTypes(Integer jianshenkechengCollectionTypes) { this.jianshenkechengCollectionTypes = jianshenkechengCollectionTypes; } // 获取:收藏时间 public Date getInsertTime() { return insertTime; } // 设置:收藏时间 public void setInsertTime(Date insertTime) { this.insertTime = insertTime; } // 获取:创建时间(展示用) public Date getCreateTime() { return createTime; } // 设置:创建时间(展示用) public void setCreateTime(Date createTime) { this.createTime = createTime; } }