机票票状态推送dto

This commit is contained in:
huangxh3 2024-02-02 13:52:31 +08:00
parent b19a44f2cf
commit 75eb2bfe98
10 changed files with 104 additions and 87 deletions

View File

@ -1,20 +0,0 @@
package com.chint.interfaces.rest.ly.dto.applyordersync;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 返回结果
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class AOSResult {
private Boolean success;//返回结果
private String errorCode;//返回类型
private String errorMessage;//返回信息
private String data;//差旅单信息
private String travelApplyNo;//同程出差单号
private Integer errorType;//错误类型
}

View File

@ -1,4 +1,4 @@
package com.chint.interfaces.rest.ly.dto.hotelorderdatapushbach; package com.chint.interfaces.rest.ly.dto.commonresult;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;

View File

@ -0,0 +1,18 @@
package com.chint.interfaces.rest.ly.dto.flydatapushback;
import com.chint.interfaces.rest.ly.dto.ticketpush.NotifyData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
@AllArgsConstructor
public class Notification {
private OrderDetails orderDetails;
private int notifyType; //推送类型
private int subNotifyType; //推送子类型
private long notifyTime; //推送时间戳
private String sign; //推送签名
private String soleKey; // 推送唯一秘钥
}

View File

@ -1,33 +0,0 @@
package com.chint.interfaces.rest.ly.dto.flydatapushback;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@Data
@NoArgsConstructor
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,18 @@
package com.chint.interfaces.rest.ly.dto.hotelorderdatapushbach;
import com.chint.interfaces.rest.ly.dto.ticketpush.NotifyData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
@AllArgsConstructor
public class Notification {
private OrderInfo orderInfo;
private int notifyType; //推送类型
private int subNotifyType; //推送子类型
private long notifyTime; //推送时间戳
private String sign; //推送签名
private String soleKey; // 推送唯一秘钥
}

View File

@ -0,0 +1,18 @@
package com.chint.interfaces.rest.ly.dto.ticketpush;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
@AllArgsConstructor
public class Notification {
private NotifyData notifyData;
private int notifyType; //推送类型
private int subNotifyType; //推送子类型
private long notifyTime; //推送时间戳
private String sign; //推送签名
private String soleKey; // 推送唯一秘钥
private boolean isEncrypt; //是否加密
}

View File

@ -0,0 +1,17 @@
package com.chint.interfaces.rest.ly.dto.ticketpush;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@NoArgsConstructor
@Data
@AllArgsConstructor
public class NotifyData {
private String orderSerialNo;//订单号
private String ticketNo;//票号
private List<TicketRecordSegment> ticketRecordSegmentList;
}

View File

@ -0,0 +1,14 @@
package com.chint.interfaces.rest.ly.dto.ticketpush;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
@AllArgsConstructor
public class TicketRecordSegment {
private String flightNo;//航班号
private int status;//票状态
private String statusText;//票状态描述
}

View File

@ -0,0 +1,18 @@
package com.chint.interfaces.rest.ly.dto.trainorderdatapushback;
import com.chint.interfaces.rest.ly.dto.ticketpush.NotifyData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
@AllArgsConstructor
public class Notification {
private NotifyData notifyData;
private int notifyType; //推送类型
private int subNotifyType; //推送子类型
private long notifyTime; //推送时间戳
private String sign; //推送签名
private String soleKey; // 推送唯一秘钥
}

View File

@ -1,33 +0,0 @@
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);
}
}