72 lines
1.3 KiB
Java
72 lines
1.3 KiB
Java
package com.amms.domain;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* 收藏对象 item_collection
|
|
*/
|
|
public class ItemCollection {
|
|
|
|
/** 收藏id */
|
|
private Long id;
|
|
|
|
/** 用户id */
|
|
private Long userId;
|
|
|
|
/** 藏品id */
|
|
private Long itemId;
|
|
|
|
/** 创建时间 */
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
private Date createTime;
|
|
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setUserId(Long userId) {
|
|
this.userId = userId;
|
|
}
|
|
|
|
public Long getUserId() {
|
|
return userId;
|
|
}
|
|
|
|
public void setItemId(Long itemId) {
|
|
this.itemId = itemId;
|
|
}
|
|
|
|
public Long getItemId() {
|
|
return itemId;
|
|
}
|
|
|
|
|
|
public Date getCreateTime() {
|
|
return createTime;
|
|
}
|
|
|
|
public void setCreateTime(Date createTime) {
|
|
this.createTime = createTime;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ItemCollection{" +
|
|
"id=" + id +
|
|
", userId=" + userId +
|
|
", itemId=" + itemId +
|
|
", createTime=" + createTime +
|
|
'}';
|
|
}
|
|
}
|