package com.microservices.pms.document.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.microservices.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 项目管理-文档库对象 pms_document
 * 
 * @author wanjia
 * @date 2024-01-08
 */
@Data
@ApiModel("文档搜索对象")
public class PmsDocumentSearchVo extends BaseEntity
{

    /** 文档名称 */
    @ApiModelProperty(value = "文档名称")
    private String name;

    /** 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 */
    @ApiModelProperty(value = "文件类型 1-文档目录 2-文档 3-附件 4-wiki库")
    private Integer docType;

    /** 父级id */
    @ApiModelProperty(value = "父级id", required = true)
    @NotNull
    private Long parentId;

    /** 项目ID */
    @ApiModelProperty(value = "项目ID")
    private Long pmsProjectId;

    /** 企业ID */
    @ApiModelProperty(value = "企业ID", required = true)
    @NotNull
    private Long pmsEnterpriseId;

    @ApiModelProperty(value = "是否仅筛选我创建的文档 true是 false否")
    private Boolean isCreatedOnly;

    @ApiModelProperty(value = "是否不包含wiki")
    private Boolean notIncludeWiki;

    /** 是否为企业管理员 */
    @JsonIgnore
    @ApiModelProperty(value = "是否为企业管理员", hidden = true)
    private Boolean enterpriseAdmin;

    /** 当前用户名 */
    @JsonIgnore
    @ApiModelProperty(value = "当前用户名", hidden = true)
    private String currentUserName;
}
