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_carousel_image
 * 
 * @author xsheng
 * @date 2025-05-25
 */


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

    /** $column.columnComment */
    private Long id;

    /** 图片名称 */
    @Excel(name = "图片名称")
    @ApiModelProperty(value = "图片名称")
    private String imgName;

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

    /** 外链接地址 */
    @Excel(name = "外链接地址")
    @ApiModelProperty(value = "外链接地址")
    private String externalUrl;

    /** 是否启用(1是;2否) */
    @Excel(name = "是否启用(1是;2否)")
    @ApiModelProperty(value = "是否启用(1是;2否)")
    private String ifEnabled;

    /** 用途类型(1-后台;2-APP;3-双屏消费机) */
    @Excel(name = "用途类型(1-后台;2-APP;3-双屏消费机)")
    @ApiModelProperty(value = "用途类型(1-后台;2-APP;3-双屏消费机)")
    private String usageType;

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

}
