机票票状态推送dto
This commit is contained in:
parent
b19a44f2cf
commit
75eb2bfe98
|
@ -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;//错误类型
|
||||
}
|
|
@ -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.Data;
|
|
@ -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; // 推送唯一秘钥
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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; // 推送唯一秘钥
|
||||
}
|
|
@ -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; //是否加密
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;//票状态描述
|
||||
}
|
|
@ -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; // 推送唯一秘钥
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue