package com.fzzy.igds.response;
|
|
import com.fzzy.igds.constant.OrderRespEnum;
|
import lombok.Data;
|
|
/**
|
* @Description 响应数据封装,命令的请求分为两个阶段,发送和响应
|
* @Author CZT
|
* @Date 2025/12/9 9:56
|
*/
|
@Data
|
public class BaseResponse {
|
|
//执行验证成功
|
public static final String CHECK_SUCCESS ="0000";
|
//执行验证失败,具体失败原因意自定义
|
public static final String CHECK_ERROR ="1111";
|
|
|
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();
|
}
|
|
|
}
|