package org.dromara.system.domain.vo;

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.system.domain.SysAppletIndexSlideshow;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 小程序首页轮播图 VO
 *
 * @Author: Trae
 */
@Data
@AutoMapper(target = SysAppletIndexSlideshow.class)
public class SysAppletIndexSlideshowVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    private Long ossId;

    /**
     * 轮播图URL（通过OSS ID翻译）
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "ossId")
    private String ossUrl;

    /**
     * 创建者
     */
    private Long createBy;

    /**
     * 创建人名称
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
    private String createByName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private Long updateBy;

    /**
     * 更新人名称
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "updateBy")
    private String updateByName;

    /**
     * 更新时间
     */
    private Date updateTime;

}
