package com.bonus.canteen.core.device.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class DeviceDTO {
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("主键id")
    private String deviceId;
    @ApiModelProperty("商家id")
    private Long tenantId;
    @NotBlank(message = "设备sn码必填")
    @ApiModelProperty("设备sn码")
    private String deviceSn;
    @NotBlank(message = "设备名称必填")
    @ApiModelProperty("设备名称")
    private String deviceName;
    @NotBlank(message = "设备编号必填")
    @ApiModelProperty("设备编号")
    private String deviceNum;
    @ApiModelProperty("设备密码")
    private String devicePwd;
    @ApiModelProperty("设备安装地址")
    private String deviceAddr;
    @ApiModelProperty("设备key")
    private String deviceKey;
    @ApiModelProperty("设备ip")
    private String deviceIp;
    @ApiModelProperty("网关")
    private String deviceGateway;
    @ApiModelProperty("设备mac")
    private String deviceMac;
    @NotBlank(message = "区域必填")
    @ApiModelProperty("区域ID")
    private String areaId;
    @NotBlank(message = "食堂必填")
    @ApiModelProperty("食堂ID")
    private String canteenId;
    @NotBlank(message = "档口必填")
    @ApiModelProperty("店铺档口id")
    private String stallId;
    @ApiModelProperty("创建人")
    private String createBy;
    @ApiModelProperty("更新人")
    private String updateBy;
    @ApiModelProperty("设备类型")
    private String deviceType;
    @ApiModelProperty("菜谱id")
    private String recipeId;
    @ApiModelProperty("设备型号")
    private String deviceModel;
    @ApiModelProperty("参数")
    private String keyWord;
}
