Commit b329fd52 by zhangchen

Request 增加属性type 区分线下发券还是线上标识

parent 1273b075
......@@ -11,9 +11,18 @@ public class Request <T> {
private String userId;
private T body;
private String loginUserName;
private int type;
public String getLoginUserName() {
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getLoginUserName() {
return loginUserName;
}
......@@ -50,6 +59,14 @@ public class Request <T> {
this.body = body;
this.loginUserName = loginUserName;
}
public Request(String userId, T body,String loginUserName,int type){
this.userId = userId;
this.body = body;
this.loginUserName = loginUserName;
this.type = type;
}
@Override
public String toString() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment