You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
digital-rmb-backend/src/main/java/com/yau/digitalrmb/progress/application/ExperimentProgressResult.java

46 lines
1.4 KiB
Java

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;
}
}