package cn.ysk.cashier.pojo.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 店铺打印机配置
 *
 * @author tankaikai
 * @since 2024-09-25 11:49
 */
@Data
@TableName("tb_print_machine")
public class TbPrintMachineEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String type;
    private String connectionType;
    private String address;
    private String port;
    private String subType;
    private Integer status;
    private String shopId;
    private String categoryIds;
    private String contentType;
    private String config;
    private Long createdAt;
    private Long updatedAt;
    private String categoryList;
    private Integer sort;
    private String vendorId;
    private String productId;

    /**
     * 小票尺寸 58mm 80mm
     */
    private String receiptSize;
    /**
     * 分类打印 0-所以 1-部分分类 2-部分商品
     */
    private String classifyPrint;
    /**
     * 桌台打印 0-所有 1-部分
     */
    private String tablePrint;
    /**
     * 打印数量 c1m1^2=顾客+商家[2张] m1^1=商家[1张] c1^1顾客[1张] c2m1^3顾客2+商家1[3张]
     */
    private String printQty;
    /**
     * 打印方式 all-全部打印 normal-仅打印结账单「前台」one-仅打印制作单「厨房」
     */
    private String printMethod;
    /**
     * 打印类型，JSON数组 refund-确认退款单 handover-交班单 queue-排队取号，如：['refund','handover','queue']
     */
    private String printType;
    /**
     * 打印单据 0-全部打印 1-仅厨房 2-仅前台
     */
    private String printReceipt;

}
