package cn.iocoder.yudao.module.system.controller.app.devuce.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 设备新增/修改 Request VO")
@Data
public class DevuceSaveReqVO {

    @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11545")
    private Long id;


    private String deviceSn;

    @Schema(description = "菜品id", example = "17970")
    @NotNull(message = "菜品id不能为空")
    private Long dishesId;

    @Schema(description = "是否绑定", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否绑定不能为空")
    private Boolean  bind;

    @Schema(description = "菜品总重量")
    private BigDecimal totalWeight;

    @Schema(description = "变化重量")
    private BigDecimal diff;

    @Schema(description = "剩余重量")
    private BigDecimal remWeight;

}