import request from "@/utils/request"
import type { CycleProgressResponse } from "../types/response";

/**
 * 
 * @param sn 循环题组sn
 * @param params 可选的页数信息
 */
export function cycleProgress (sn: string, params?: ParticalParams) {
    return request<CycleProgressResponse>({
        url: `console/survey_publishes/${sn}/cycle_progress_h5`,
        params
    });
}
/**
 * 随机题组列表查询
 * @param sn 随机题组sn
 * @param params 可选的页数信息
 */
export function randomProgress (sn: string, params?: ParticalParams) {
    return request<CycleProgressResponse>({
        url: `console/survey_publishes/${sn}/random_progress_h5`,
        params
    });
}
/**
 * 逻辑配额列表查询
 * @param sn 逻辑配额sn
 * @param params 可选的页数信息
 */
export function quotaProgress (sn: string, params?: ParticalParams) {
    return request<CycleProgressResponse>({
        url: `console/survey_publishes/${sn}/publish_statistics_h5/quota_progress`,
        params
    });
}

