From b19a44f2cfb73d9e1c3c62481dac2ce24e9a980c Mon Sep 17 00:00:00 2001 From: huangxh3 Date: Fri, 2 Feb 2024 13:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AB=E8=BD=A6=E7=A5=A8=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=9B=9E=E6=8E=A8dto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trainorderdatapushback/NotifyData.java | 20 +++++++++++ .../ly/dto/trainorderdatapushback/Result.java | 33 +++++++++++++++++++ .../trainorderdatapushback/SubmitItem.java | 15 +++++++++ .../trainorderdatapushback/TravelData.java | 14 ++++++++ 4 files changed, 82 insertions(+) create mode 100644 src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/NotifyData.java create mode 100644 src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/Result.java create mode 100644 src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/SubmitItem.java create mode 100644 src/main/java/com/chint/interfaces/rest/ly/dto/trainorderdatapushback/TravelData.java 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; +}