package org.dromara.main.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.main.domain.MainStudentAppendix;

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

/**
 * 学员简历附件视图对象
 *
 * @author antigravity
 * @date 2026-04-08
 */
@Data
@AutoMapper(target = MainStudentAppendix.class)
public class MainStudentAppendixVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 学员ID
     */
    private Long studentId;

    /**
     * 附件OSS ID
     */
    private Long ossId;

    /**
     * 原始文件名
     */
    private String fileName;

    /**
     * 文件大小
     */
    private Long fileSize;

    /**
     * OSS地址URL
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "ossId")
    private String url;

}
