TakeawaySystemServer/src/main/java/com/example/takeawaysystemserver/entity/OrderItem.java

32 lines
711 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.takeawaysystemserver.entity;
import jakarta.annotation.Nullable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Map;
/**
* @author spyn
* @date 2024/7/10
* @description
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem {
private String dishId;
@Nullable
private Dish dish;
private String orderId;
private Integer count;
private Integer price;
/**
* [key: 类型,如“辣度选择”] : [value: 子选项,如"微辣"]
* 注意这里value是String而不是String[]和Dish中的subOptions不同
*/
@Nullable
private Map<String, String> options;
}