diff --git a/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/NotifyData.java b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/NotifyData.java new file mode 100644 index 00000000..1a13dea7 --- /dev/null +++ b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/NotifyData.java @@ -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; +} diff --git a/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/Result.java b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/Result.java new file mode 100644 index 00000000..406fddf8 --- /dev/null +++ b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/Result.java @@ -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 { + 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 Result Success(String success, T data) { + return new Result(success,data); + } + + public static Result error(String errorCode,String errorMessage) { + return new Result(errorCode,errorMessage); + } +} diff --git a/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/SubmitItem.java b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/SubmitItem.java new file mode 100644 index 00000000..ee3f5bb4 --- /dev/null +++ b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/SubmitItem.java @@ -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; +} diff --git a/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/TravelData.java b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/TravelData.java new file mode 100644 index 00000000..449e98df --- /dev/null +++ b/src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/TravelData.java @@ -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 submitItemList; +}