package com.gxwebsoft.apps.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 消费机请求参数
 *
 * @author 科技小王子
 * @since 2023-04-27 17:59:40
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "消费机请求参数", description = "消费机请求参数")
public class HxzParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交易模式（0:扣费 1：充值3:信息查询）")
    @TableField(exist = false)
    private String Mode;

    @ApiModelProperty(value = "扣费类型（0:手动 1：菜单 2：定值 3：取餐 4：计时）")
    @TableField(exist = false)
    private Integer PayType;

    @ApiModelProperty(value = "消费金额(Mode为3时，此字段传入值可能为0)")
    @TableField(exist = false)
    private BigDecimal Amount;

    @ApiModelProperty(value = "消费菜品列表")
    @TableField(exist = false)
    private List<Object> Menus;

    @ApiModelProperty(value = "扫描到的二维码字符串（最大长度为200）")
    @TableField(exist = false)
    private String QR;

}
