package org.dromara.inspection.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.inspection.domain.ArStepMedia;

import java.util.Date;

/**
 * 步骤媒体文件业务对象 ar_step_media
 *
 * @author Lion Li
 * @date 2025-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArStepMedia.class, reverseConvertGenerate = false)
public class ArStepMediaBo extends BaseEntity {

    /**
     * 媒体ID
     */
    @NotNull(message = "媒体ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 步骤记录ID
     */
    @NotNull(message = "步骤记录ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long stepRecordId;

    /**
     * 媒体类型
     */
    @NotBlank(message = "媒体类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mediaType;

    /**
     * 文件URL
     */
    @NotBlank(message = "文件URL不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileUrl;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileName;

    /**
     * 文件大小(字节)
     */
    private Long fileSize;

    /**
     * 上传时间
     */
    private Date uploadTime;

}
