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

import com.microservices.common.core.utils.ServletUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@ApiModel("个人周报工作项搜索对象")
public class PmsPersonalWeeklyIssuesSearchVo {

    @ApiModelProperty(value = "用户gitlink用户id")
    private Long userId;

    @ApiModelProperty(value = "企业标识", hidden = true)
    private String enterpriseIdentifier;

    @ApiModelProperty(value = "工作项名称搜索关键词")
    private String keyword;

    @ApiModelProperty(value = "状态值，可多个状态逗号隔开")
    private String statusIds;

    @ApiModelProperty(value = "排序方式: issues.updated_on 更新时间 issues.created_on 创建时间 issue_priorities.position 优先级")
    private String sortBy;

    @ApiModelProperty(value = "排序方向:asc 正序 desc 倒序")
    private String sortDirection;

    @ApiModelProperty(value = "本周工作项页码")
    private String thisWeekPage;

    @ApiModelProperty(value = "分页数")
    private String thisWeekLimit;

    @ApiModelProperty(value = "本周工作项页码")
    private String nextWeekPage;

    @ApiModelProperty(value = "分页数")
    private String nextWeekLimit;

    @ApiModelProperty(value = "周工作项统计开始时间")
    private String weeklyBeginDate;

    @ApiModelProperty(value = "周工作项统计结束时间")
    private String weeklyEndDate;

    public void setKeyword(String keyword) {
        this.keyword = ServletUtils.urlDecode(keyword);
    }
}
