import { request } from '@/utils/request'

// 成本管理
export const costApi = {
  // 分项费用
  getItemExpenseList: (params: any) => request.get('/cost/item-expense/list', params),
  exportItemExpense: (params: any) => request.get('/cost/item-expense/export', params, { responseType: 'blob' }),

  // 额度控制
  getQuotaInfo: () => request.get('/cost/quota/info'),
  getQuotaRecordList: (params: any) => request.get('/cost/quota/record/list', params),
  applyQuota: (data: any) => request.post('/cost/quota/apply', data)
}
