CouponSendMqBean.java 1.9 KB
package com.yoho.mq;


import java.util.List;

/**
 * 描述:券发放MQ对象
 * Created by pangjie@yoho.cn on 2016/5/18.
 */
public class CouponSendMqBean  {

    /**
	 * 
	 */
	private static final long serialVersionUID = -2453701970834359630L;

	/**
     * 用户uid
     */
    private int uid;

    /**
     * 券ID列表
     */
    private List<Integer> couponIds;

    /**
     * 系统标示,不同的系统可处理之后可能有不同的处理
     */
    private String system;

    /**
     * 和system相关,可能需要根据不同的system做不同的业务,还有系统的ID
     */
    private int systemId;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public List<Integer> getCouponIds() {
        return couponIds;
    }

    public void setCouponIds(List<Integer> couponIds) {
        this.couponIds = couponIds;
    }

    public CouponSendMqBean buildUid(int uid) {
        this.uid = uid;
        return this;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public CouponSendMqBean buildCouponIds(List<Integer> couponIds) {
        this.couponIds = couponIds;
        return this;
    }

    public CouponSendMqBean buildSystem(String system) {
        this.system = system;
        return this;
    }

    public int getSystemId() {
        return systemId;
    }

    public void setSystemId(int systemId) {
        this.systemId = systemId;
    }

    public CouponSendMqBean buildSystemId(int systemId) {
        this.systemId = systemId;
        return this;
    }

    public String toString() {
        return "CouponSendMqBean{" +
                "uid=" + uid +
                ", couponIds=" + couponIds +
                ", system='" + system + '\'' +
                ", systemId=" + systemId +
                '}';
    }
}