package com.bonus.canteen.core.menu.domain;

import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 订单评价菜品对象 menu_evalua_picture
 * 
 * @author xsheng
 * @date 2025-04-20
 */


@Data
@ToString
public class MenuEvaluaPicture extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 评价id */
    @Excel(name = "评价id")
    @ApiModelProperty(value = "评价id")
    private Long evaluaId;

    /** 图片路径 */
    @Excel(name = "图片路径")
    @ApiModelProperty(value = "图片路径")
    private String pictureUrl;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    @ApiModelProperty(value = "乐观锁")
    private Long revision;


    public String getPictureUrl() {
        return FileUrlUtil.getFileUrl(pictureUrl);
    }
}
