"拉卡拉进件支付代码"
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package cn.pluss.platform.pos;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class BasePosReq implements Serializable {
|
||||
/**
|
||||
* 请求标识,用于唯一标识当前请求(pos,uuid)
|
||||
*/
|
||||
private String requestId;
|
||||
|
||||
/**
|
||||
* 唯一识别码(pos机)
|
||||
*/
|
||||
private String appId;
|
||||
|
||||
/**
|
||||
* 签名(pos)
|
||||
*/
|
||||
private String token;
|
||||
|
||||
/**
|
||||
* timestamp时间戳(pos机)
|
||||
*/
|
||||
private String timestamp;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package cn.pluss.platform.pos;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PosTradeQueryReq extends BasePosReq{
|
||||
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
private String date;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
private String sn;
|
||||
|
||||
/**
|
||||
* 搜索类型
|
||||
* 1:按日期检索
|
||||
* 2:按照月份检索
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
private Integer page;
|
||||
|
||||
|
||||
/**
|
||||
* 单页搜索条数
|
||||
*/
|
||||
private Integer size;
|
||||
|
||||
public static void main(String[] args) throws JsonProcessingException {
|
||||
System.out.println(new ObjectMapper().writeValueAsString(new PosTradeQueryReq()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user