火车票订单数据回推dto

This commit is contained in:
huangxh3 2024-02-02 13:22:55 +08:00
parent d32d3c0776
commit b19a44f2cf
4 changed files with 82 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);
}
}

View File

@ -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;
}

View File

@ -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;
}