/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-12-28 20:33:26
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2023-12-29 15:56:44
 * @FilePath: /CostAccountingSys/src/components/ProgressModal/service.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { request } from '@@/plugin-request';

export const getPercentData = (type: string) => {
  return request('/costAccount/public/getPercent', {
    method: 'GET',
    params: {
      type,
    },
  });
};

export const stopGetPercentData = (type: string) => {
  return request('/costAccount/public/endProgress', {
    method: 'POST',
    params: {
      type,
    },
  });
};
