首页>代码>Spring MVC+bootstrap+redis+mybatis整合开发开源高并发秒杀商品系统>/seckill/src/main/java/org/seckill/dto/Exposer.java
package org.seckill.dto; import java.io.Serializable; /** * 暴露秒杀地址DTO(dto:web层和service层传递数据用) * Created by wchb7 on 16-5-13. */ public class Exposer implements Serializable { private static final long serialVersionUID = 7602244494037452541L; /** * 秒杀是否开启 */ private boolean exposed; private String md5; private long seckillId; /** * 系统时间(毫秒) */ private long now; private long start; private long end; public Exposer(boolean exposed, String md5, long seckillId) { this.exposed = exposed; this.md5 = md5; this.seckillId = seckillId; } public Exposer(boolean exposed, long seckillId, long now, long start, long end) { this.exposed = exposed; this.seckillId = seckillId; this.now = now; this.start = start; this.end = end; } public Exposer(boolean exposed, long seckillId) { this.exposed = exposed; this.seckillId = seckillId; } public boolean isExposed() { return exposed; } public void setExposed(boolean exposed) { this.exposed = exposed; } public String getMd5() { return md5; } public void setMd5(String md5) { this.md5 = md5; } public long getSeckillId() { return seckillId; } public void setSeckillId(long seckillId) { this.seckillId = seckillId; } public long getNow() { return now; } public void setNow(long now) { this.now = now; } public long getStart() { return start; } public void setStart(long start) { this.start = start; } public long getEnd() { return end; } public void setEnd(long end) { this.end = end; } @Override public String toString() { return "Exposer{" + "exposed=" + exposed + ", md5='" + md5 + '\'' + ", seckillId=" + seckillId + ", now=" + now + ", start=" + start + ", end=" + end + '}'; } }
最近下载更多
dapeng0011 LV13
2月24日
笛卡尔积 LV6
2023年2月17日
弹指又十年 LV8
2022年9月18日
asd6260647 LV4
2022年7月2日
moneyla LV5
2022年3月11日
李可以 LV5
2022年2月19日
xuweisong2010 LV27
2021年10月28日
qiheideguang LV16
2021年10月17日
ltq50736 LV4
2021年9月3日
qiangmin1223 LV12
2021年8月25日
最近浏览更多
dapeng0011 LV13
2月24日
limin123 LV6
2023年10月16日
西瓜哥哥 LV4
2023年8月16日
yqyqyqyqy LV4
2023年8月10日
cunbie LV4
2023年6月13日
aaaahao LV13
2023年5月29日
杨亚洲
2023年5月5日
暂无贡献等级
aaaaooa LV4
2023年4月22日
微信网友_6442962125967360 LV2
2023年4月21日
1613619109 LV6
2023年3月24日