package com.reading.platform.dto.response;

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

/**
 * 按类型统计的任务响应
 */
@Data
@Schema(description = "按类型统计的任务响应")
public class TaskStatsByTypeResponse {

    @Schema(description = "任务类型", example = "homework")
    private String type;

    @Schema(description = "总任务数", example = "50")
    private Integer total;

    @Schema(description = "已完成任务数", example = "40")
    private Integer completed;

    @Schema(description = "完成率", example = "80")
    private Integer rate;
}
