|
|
@@ -1,6 +1,7 @@
|
|
|
package com.github.microservice.models.hxz;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
@@ -13,23 +14,30 @@ import java.io.Serializable;
|
|
|
public class ConsumTransactionsModel extends HxzSuperModel implements Serializable {
|
|
|
|
|
|
@JsonProperty("Order")
|
|
|
+ @Schema(description = "消费序号(年月日时分秒+2个字节序号(0~65535)),用于识别上传数据不重复")
|
|
|
private String Order;
|
|
|
|
|
|
+ @Schema(description = "10进制卡序列号(实体卡号或虚拟卡号)")
|
|
|
@JsonProperty("CardNo")
|
|
|
private String CardNo;
|
|
|
|
|
|
+ @Schema(description = "卡模式(0:实体卡 1:电子卡)")
|
|
|
@JsonProperty("CardMode")
|
|
|
private Integer CardMode;
|
|
|
|
|
|
+ @Schema(description = "交易模式(0:刷卡扣费 1:现金充值2:余额查询 3:钱包转账 4:现金退款)")
|
|
|
@JsonProperty("Mode")
|
|
|
private Integer Mode;
|
|
|
|
|
|
+ @Schema(description = "扣费类型(0:手动 1:菜单 2:定值 3:取餐 4:计时 5:计次)")
|
|
|
@JsonProperty("PayType")
|
|
|
private Integer PayType;
|
|
|
|
|
|
+ @Schema(description = "消费金额(Mode为2时,此字段传入值可能为0)")
|
|
|
@JsonProperty("Amount")
|
|
|
private String Amount;
|
|
|
|
|
|
+ @Schema(description = "消费菜品列表")
|
|
|
@JsonProperty("Menus")
|
|
|
private Menus[] Menus;
|
|
|
|
|
|
@@ -37,9 +45,11 @@ public class ConsumTransactionsModel extends HxzSuperModel implements Serializab
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
public static class Menus {
|
|
|
+ @Schema(description = "菜品编号(与菜品查询接口菜品编号一致)")
|
|
|
@JsonProperty("MenuID")
|
|
|
private String MenuID;
|
|
|
|
|
|
+ @Schema(description = "菜品数量(支持小数)")
|
|
|
@JsonProperty("Count")
|
|
|
private String Count;
|
|
|
}
|