peng
7 天以前 28e85b011d662ef7b42216993f1f91d79b4d93c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package cn.lili.modules.lmk.domain.vo;
 
import cn.lili.base.AbsVo;
import cn.lili.modules.lmk.domain.entity.KitchenCustomize;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.math.BigDecimal;
 
/**
 * 厨师定制模块展示
 *
 * @author peng
 * @since 2025-12-24
 */
@Data
@ApiModel(value = "厨师定制模块响应数据", description = "厨师定制模块响应数据")
public class KitchenCustomizeVO extends AbsVo {
 
    /** 商品id */
    @ApiModelProperty("商品id")
    private String goodsId;
 
    /** skuId */
    @ApiModelProperty("skuId")
    private String skuId;
 
    /** 套餐名字 */
    @ApiModelProperty("套餐名字")
    private String comboName;
 
    /** 备注 */
    @ApiModelProperty("备注")
    private String remark;
 
    /** 人数 */
    @ApiModelProperty("人数")
    private String num;
 
    /** 封面图片 */
    @ApiModelProperty("封面图片")
    private String coverImg;
 
    /** 原价 */
    @ApiModelProperty("原价")
    private BigDecimal orginPrice;
 
    /** 标签id */
    @ApiModelProperty("标签id")
    private String tagId;
 
    /** 启用状态 */
    @ApiModelProperty("启用状态")
    private String status;
 
    /** 排序 */
    @ApiModelProperty("排序")
    private Integer sort;
 
    /** 商品名称 */
    @ApiModelProperty("商品名称")
    private String goodsName;
 
    /** 价格 */
    @ApiModelProperty("价格")
    private BigDecimal price;
 
    /** 图片 */
    @ApiModelProperty("图片")
    private String thumbnail;
 
    public static KitchenCustomizeVO getVoByEntity(@NonNull KitchenCustomize entity, KitchenCustomizeVO vo) {
        if(vo == null) {
            vo = new KitchenCustomizeVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}