火车票订单数据回推dto
This commit is contained in:
parent
d32d3c0776
commit
b19a44f2cf
|
@ -0,0 +1,20 @@
|
|||
package com.chint.interfaces.rest.ly.dto.trainorderdatapushback;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class NotifyData {
|
||||
private String orderNo;
|
||||
private String outOrderNo;
|
||||
private String issueTime;
|
||||
private String msgCode;
|
||||
private String msgInfo;
|
||||
private String ticketGate;
|
||||
private String fInfo;
|
||||
private String originalOrderNo;
|
||||
private TravelData travelData;
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package com.chint.interfaces.rest.ly.dto.trainorderdatapushback;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class Result<T> {
|
||||
private String success;
|
||||
private String errorCode;
|
||||
private String errorMessage;
|
||||
private T data;
|
||||
|
||||
public Result(String success, T data) {
|
||||
this.success = success;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public Result(String errorCode, String errorMessage) {
|
||||
this.errorCode = errorCode;
|
||||
this.errorMessage = errorMessage;
|
||||
}
|
||||
|
||||
public static <T> Result<T> Success(String success, T data) {
|
||||
return new Result<T>(success,data);
|
||||
}
|
||||
|
||||
public static <T> Result<T> error(String errorCode,String errorMessage) {
|
||||
return new Result<T>(errorCode,errorMessage);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.chint.interfaces.rest.ly.dto.trainorderdatapushback;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class SubmitItem {
|
||||
private String itemCode;
|
||||
private String itemTitle;
|
||||
private String itemTitleEn;
|
||||
private String itemContent;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.chint.interfaces.rest.ly.dto.trainorderdatapushback;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class TravelData {
|
||||
private String oaNo;
|
||||
private String travelApplyNo;
|
||||
private List<SubmitItem> submitItemList;
|
||||
}
|
Loading…
Reference in New Issue