// @ts-ignore
/* eslint-disable */

// 该文件自动生成，请勿手动修改！

// --------------------------------------------------------------------------
// 反馈结果管理服务
// --------------------------------------------------------------------------

import { request } from '@umijs/max';

/** 上传统一反馈文件 POST /api/exam/result/upload */
export async function upload(data: FormData, options?: { [key: string]: any }) {
    const url = '/api/exam/result/upload';
    const config = { method: 'POST', data, ...(options || {}) };
    const res = await request<API.ResponseType<any>>(url, config);
    return res?.data;
}

/** 根据发布内容ID获取文件列表 GET /api/exam/result/get-list-by-publish-id */
export async function getListByPublishId(
    params: {
        /**  */
        publishid: number;
    },
    options?: { [key: string]: any },
) {
    const url = '/api/exam/result/get-list-by-publish-id';
    const config = { method: 'GET', params, ...(options || {}) };
    const res = await request<API.ResponseType<API.ExamResultOutput[]>>(url, config);
    return res?.data;
}

export default {
    /** 上传统一反馈文件 POST /api/exam/result/upload */
    upload,
    /** 根据发布内容ID获取文件列表 GET /api/exam/result/get-list-by-publish-id */
    getListByPublishId,
};
