package shop.alien.entity.store.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 添加购物车商品DTO
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@ApiModel(value = "AddCartItemDTO对象", description = "添加购物车商品")
public class AddCartItemDTO {

    @ApiModelProperty(value = "桌号ID", required = true)
    @NotNull(message = "桌号ID不能为空")
    private Integer tableId;

    @ApiModelProperty(value = "菜品ID", required = true)
    @NotNull(message = "菜品ID不能为空")
    private Integer cuisineId;

    @ApiModelProperty(value = "数量", required = true)
    @NotNull(message = "数量不能为空")
    @Positive(message = "数量必须大于0")
    private Integer quantity;

    @ApiModelProperty(value = "备注")
    private String remark;
}
