package org.dromara.main.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;
import org.dromara.main.domain.vo.BannerVo;

import java.io.Serial;

/**
 * 首页轮播图对象 main_banner
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BannerVo.class)
@TableName("main_banner")
public class Banner extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    private String title;

    private String imageUrl;

    private String linkUrl;

    private Long sortOrder;

    private Long isEnabled;

    private String remark;
}
