首页>代码>Spring MVC+Spring+apache Shiro整合开发客户端日志埋点校验系统>/logreplay/src/main/java/com/sogou/map/logreplay/bean/Avatar.java
package com.sogou.map.logreplay.bean;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import com.alibaba.fastjson.JSON;
import com.sogou.map.logreplay.bean.Image.Type;
import com.sogou.map.logreplay.bean.base.AbstractBean;
@Table(name = "avatar")
public class Avatar extends AbstractBean {
public static final String DEFAULT_AVATAR = "/img/default-avatar.jpg";
public static Image.Type[] IMAGE_TYPES = {
Image.Type.small, Image.Type.middle, Image.Type.large
};
@Id
@Column
private Long id;
@Column(name = "user_id")
private Long userId;
@Column(name = "image_id")
private Long imageId;
@Column
private Type type;
@Column(name = "create_time")
private Timestamp createTime;
public Avatar() {}
public Avatar(Long userId, Long imageId, Image.Type type) {
this.userId = userId;
this.imageId = imageId;
this.type = type;
this.createTime = new Timestamp(System.currentTimeMillis());
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getImageId() {
return imageId;
}
public void setImageId(Long imageId) {
this.imageId = imageId;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public Timestamp getCreateTime() {
return createTime;
}
public void setCreateTime(Timestamp createTime) {
this.createTime = createTime;
}
}
最近下载更多
00044304 LV6
2022年8月23日
tutuhero LV8
2021年4月21日
zdm2157 LV3
2020年6月11日
zmw55555 LV1
2020年4月2日
Mason-想飞 LV2
2019年7月5日
z924931408 LV25
2019年6月10日
ybywx1030 LV7
2019年4月24日
最代码酒酒 LV20
2019年4月16日
denliv_hui LV14
2018年12月27日
gvin001 LV14
2018年12月12日
最近浏览更多
微信网友_6248713511227392 LV11
2022年12月5日
00044304 LV6
2022年8月22日
wanglinddad LV55
2022年4月15日
等你归来 LV2
2022年3月1日
囤华飞
2021年7月15日
暂无贡献等级
2840820049 LV9
2021年6月21日
tutuhero LV8
2021年4月21日
yanxiaoai LV6
2021年2月1日
啊最代码我要下 LV15
2020年11月16日
adminzk LV2
2020年7月12日

