package cn.iocoder.yudao.module.member.controller.app.orderdetail.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 AppOrderDetailSaveReqVO {

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

    @Schema(description = "订单ID", example = "31077")
    private Long orderId;

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

    @Schema(description = "菜品", example = "王五")
    private String dishesName;

    @Schema(description = "重量")
    private BigDecimal weight;

    @Schema(description = "热量")
    private Double heat;

    @Schema(description = "餐盘编号")
    private String diningPlatesNum;

    @Schema(description = "门店Id")
    private Long storeId;


}