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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("导入wiki时可选的仓库搜索对象")
public class OptionalWikiReposSearchVo{

    @ApiModelProperty(value = "企业id")
    @NotNull
    private Long enterpriseId;

    @ApiModelProperty(value = "项目id")
    private Long projectId = 0L;

    @ApiModelProperty(value = "项目排序（下拉列表请使用字典：GitLink项目排序规则（gitlink_project_sort_rule））")
    private String sortBy;

    @ApiModelProperty(value = "搜索关键字")
    private String search;

    @ApiModelProperty(value = "页码")
    @NotNull
    private Long page;

    @ApiModelProperty(value = "每页数量")
    @NotNull
    @Max(value = 15)
    private Long limit;
}
