xiangpei
8 天以前 8065107726ad1fc13591c9bc47819207948bc45c
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
package cn.lili.modules.lmk.domain.vo;
 
import cn.lili.base.AbsVo;
import cn.lili.modules.lmk.domain.entity.KitchenType;
import java.util.List;
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.util.Date;
 
/**
 * 厨神类型展示
 *
 * @author wp
 * @since 2025-06-13
 */
@Data
@ApiModel(value = "厨神类型响应数据", description = "厨神类型响应数据")
public class KitchenTypeVO extends AbsVo {
 
    /** 厨神类型 */
    @ApiModelProperty("厨神类型")
    private String typeName;
 
    /** 使用次数 */
    @ApiModelProperty("使用次数")
    private Long useNum;
 
    /** 排序字段 */
    @ApiModelProperty("排序字段")
    private Long sortNum;
 
    public static KitchenTypeVO getVoByEntity(@NonNull KitchenType entity, KitchenTypeVO vo) {
        if(vo == null) {
            vo = new KitchenTypeVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}