|
|
package com.yau.digitalrmb.progress.application;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
|
@Schema(description = "实验进度统计")
|
|
|
public class ExperimentProgressResult {
|
|
|
|
|
|
@Schema(description = "总进度百分比", example = "75.00")
|
|
|
private Double totalProgress;
|
|
|
|
|
|
@Schema(description = "已完成百分比", example = "75.00")
|
|
|
private Double completedRate;
|
|
|
|
|
|
@Schema(description = "进行中百分比", example = "15.00")
|
|
|
private Double inProgressRate;
|
|
|
|
|
|
@Schema(description = "未开始百分比", example = "10.00")
|
|
|
private Double notStartedRate;
|
|
|
|
|
|
@Schema(description = "模块完成情况列表")
|
|
|
private List<ModuleProgressItem> modules;
|
|
|
|
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
|
@Schema(description = "单个模块进度")
|
|
|
public static class ModuleProgressItem {
|
|
|
@Schema(description = "模块编码", example = "1")
|
|
|
private String moduleCode;
|
|
|
|
|
|
@Schema(description = "模块名称", example = "中国人民银行生成数字货币")
|
|
|
private String moduleName;
|
|
|
|
|
|
@Schema(description = "模块状态:COMPLETED-已完成, IN_PROGRESS-进行中, NOT_STARTED-未开始", example = "COMPLETED")
|
|
|
private String status;
|
|
|
|
|
|
@Schema(description = "完成进度百分比", example = "100.00")
|
|
|
private Double progress;
|
|
|
}
|
|
|
}
|