package com.yingpaipay.business.domain.bo;

import com.yingpaipay.business.domain.Folder;
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.*;

/**
 * 文件夹管理业务对象 folder
 *
 * @author Huanyi
 * @date 2025-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Folder.class, reverseConvertGenerate = false)
public class FolderBo extends BaseEntity {

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

    /**
     * 所属项目
     */
//    @NotNull(message = "所属项目不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 父级
     */
//    @NotNull(message = "父级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 类型
     */
//    @NotNull(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

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

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

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

    private Integer restrictionLevel;

}
