package类
程序代码:
package cn.hz.model;
import org.springframework./**
* 红包类
*
*
* **/
@Component
public class Packet {
private double total;//红包金额
private int num;//红包个数
private long time;//抢红包的时间
public double getTotal() {
return total;
}
public void setTotal(double total) {
this.total = total;
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public Packet() {
super();
// TODO Auto-generated constructor stub
}
public Packet(double total, int num, int time) {
super();
this.total = total;
this.num = num;
this.time = time;
}
@Override
public String toString() {
return "Packet [total=" + total + ", num=" + num + ", time=" + time + "]";
}
}