package com.yingpaipay.business.domain.bo;

import com.yingpaipay.business.domain.Document;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 文档业务对象 document
 *
 * @author Huanyi
 * @date 2025-12-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Document.class, reverseConvertGenerate = false)
public class DocumentBo extends BaseEntity {

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

    /**
     * 所属文件夹
     */
    @NotNull(message = "所属文件夹不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long folderId;

    /**
     * 文档标识
     */
    @NotBlank(message = "文档标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileSpecification;

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

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 计划上传时间
     */
    @NotNull(message = "递交截止时间", groups = { AddGroup.class, EditGroup.class })
    private Date submissionDeadline;

    /**
     * 文档本体
     */
    private Long ossId;

    /**
     * 备注
     */
    private String note;


}
