package com.njcn.rdms.module.project.controller.admin.project.execution.vo.execution;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 执行状态看板 Response VO")
@Data
public class ProjectExecutionStatusBoardRespVO {

    @Schema(description = "当前筛选条件下的执行总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "18")
    private Long total;

    @Schema(description = "状态项列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<ProjectStatusBoardItemVO> items;

    @Schema(description = "项目状态项")
    @Data
    public static class ProjectStatusBoardItemVO {

        @Schema(description = "状态编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "pending")
        private String statusCode;
        @Schema(description = "状态名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "待开始")
        private String statusName;
        @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "3")
        private Long count;
        @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
        private Integer sort;
        @Schema(description = "是否终态", example = "false")
        private Boolean terminal;

    }

}
