fundUsage.ts
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* 资金使用额度 —— 源 src/api/usedCarManagement.js 的同名接口,路径 / method 逐字保留。
*
* 请求统一经 ../core/client 的 @uj/api-core 装配后由主壳 props.request 代发;
* 源系统没有 DTO 定义,这里不臆造结构:参数是一层平铺对象,返回类型由调用方泛型指定。
*/
import { usedcarClient } from '../core/client';
import type { UsedcarParams } from '../core/types';
/**
* 查询资金使用额度列表
*/
export function getFundUsageLimitList<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.postRop<T>('dj.smartcarlife.api.fund.usage.limit.page', data);
}
/**
* 查询资金使用额度关联审批列表
*/
export function getFundUsageLimitOaList<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.postRop<T>('dj.smartcarlife.api.fund.usage.limit.oa.page', data);
}
/**
* 查询资金使用额度详情
*/
export function getFundUsageLimitDetail<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.postRop<T>('dj.smartcarlife.api.fund.usage.limit.detail', data);
}
/**
*新增资金使用额度
*/
export function addFundUsageLimit<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.postRop<T>('dj.smartcarlife.api.fund.usage.limit.add', data);
}
/** 模块单例出口,与 dashboardApi 同一调用面;实现与上方具名函数完全同源。 */
export const fundUsageApi = {
getFundUsageLimitList,
getFundUsageLimitOaList,
getFundUsageLimitDetail,
addFundUsageLimit,
};