package com.ld.igds.io.response;
|
|
import com.ld.igds.io.constant.OrderRespEnum;
|
import lombok.Data;
|
|
/**
|
* 响应数据封装,命令的请求分为两个阶段,发送和响应
|
*/
|
@Data
|
public class BaseResponse {
|
|
private String code;//请求代码
|
|
private String msg;//请求返信息
|
|
private String orderId;
|
|
public BaseResponse() {
|
}
|
|
public BaseResponse(String code, String msg) {
|
this.msg = msg;
|
this.code = code;
|
}
|
|
public BaseResponse(OrderRespEnum orderRespEnum) {
|
this.msg = orderRespEnum.getMsg();
|
this.code = orderRespEnum.getCode();
|
}
|
|
|
}
|