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.SysAppletIndexCategories;

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

/**
 * 小程序首页精选分类 VO
 *
 * @Author: Trae
 */
@Data
@AutoMapper(target = SysAppletIndexCategories.class)
public class SysAppletIndexCategoriesVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    private String title;

    private String remark;

    private Long background;

    /**
     * 背景图URL（通过OSS ID翻译）
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "background")
    private String backgroundUrl;

    private Date createTime;

    private Date updateTime;

}
