package com.bonus.canteen.core.basic.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;

/**
 * 订单评价菜品对象 basic_canteen_suggestion_picture
 * 
 * @author xsheng
 * @date 2025-05-25
 */


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

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

    /** 建议id */
    @Excel(name = "建议id")
    @ApiModelProperty(value = "建议id")
    private Long suggestionId;

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

    public String getImgUrl() {
        return FileUrlUtil.getFileUrl(this.imgUrl);
    }
}
