Update JianshenkechengCollectionVO.java

王刚注释
pz2femycj 4 months ago
parent ece09f22e2
commit c88ddc02de

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