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

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

import javax.validation.constraints.NotNull;

@Data
@ApiModel("项目工作项评论筛选对象")
public class PmsProjectIssueJournalSearchVo {

    @ApiModelProperty(value = "项目id")
    @NotNull
    private Long pmProjectId;

    @ApiModelProperty(value = "工作项关联的仓库id,如已关联仓库，必填")
    private Long pmProjectRepositoryId;

    @ApiModelProperty(value = "类型，all 所有 comment 评论 operate 操作记录")
    private String category;

    @ApiModelProperty(value = "搜索关键词")
    private String keyword;

    @ApiModelProperty(value = "排序字段，created_on 创建时间 updated_on 更新时间")
    private String sortBy;

    @ApiModelProperty(value = "排序类型，asc 正序 desc 倒序")
    private String sortDirection;

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

    @ApiModelProperty(value = "页数")
    private Integer limit;
}
