package org.dromara.main.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.main.domain.Banner;

import java.io.Serial;
import java.io.Serializable;

/**
 * 首页轮播图视图对象
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Banner.class)
public class BannerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    private String title;

    private String imageUrl;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "imageUrl")
    private String imageUrlUrl;

    private String linkUrl;

    private Long sortOrder;

    private Long isEnabled;
}
