package com.lesingle.edu.dto.response;

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

/**
 * 套餐使用情况响应
 */
@Data
@Builder
@Schema(description = "套餐使用情况响应")
public class PackageUsageResponse {

    @Schema(description = "教师使用情况")
    private UsageInfo teacher;

    @Schema(description = "学生使用情况")
    private UsageInfo student;

    /**
     * 使用情况详情
     */
    @Data
    @Builder
    @Schema(description = "使用情况详情")
    public static class UsageInfo {

        @Schema(description = "已使用数量")
        private Integer used;

        @Schema(description = "配额")
        private Integer quota;

        @Schema(description = "使用百分比")
        private Integer percentage;

    }

}