@freelog/tools-lib 0.1.97 → 0.1.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service-API/index.d.ts +2 -0
- package/dist/service-API/statistics.d.ts +9 -0
- package/dist/service-API/testQualifications.d.ts +1 -1
- package/dist/tools-lib.cjs.development.js +15 -1
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +15 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/index.ts +33 -31
- package/src/service-API/statistics.ts +20 -0
- package/src/service-API/testQualifications.ts +1 -1
package/package.json
CHANGED
package/src/service-API/index.ts
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import * as Node from './nodes';
|
|
2
|
-
import * as Exhibit from './presentables';
|
|
3
|
-
import * as Storage from './storages';
|
|
4
|
-
import * as Collection from './collections';
|
|
5
|
-
import * as Resource from './resources';
|
|
6
|
-
import * as User from './user';
|
|
7
|
-
import * as InformalNode from './informalNodes';
|
|
8
|
-
import * as Contract from './contracts';
|
|
9
|
-
import * as Transaction from './transactions';
|
|
10
|
-
import * as Captcha from './captcha';
|
|
11
|
-
import * as Event from './events';
|
|
12
|
-
import * as Activity from './activities';
|
|
13
|
-
import * as TestQualification from './testQualifications';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import * as Node from './nodes';
|
|
2
|
+
import * as Exhibit from './presentables';
|
|
3
|
+
import * as Storage from './storages';
|
|
4
|
+
import * as Collection from './collections';
|
|
5
|
+
import * as Resource from './resources';
|
|
6
|
+
import * as User from './user';
|
|
7
|
+
import * as InformalNode from './informalNodes';
|
|
8
|
+
import * as Contract from './contracts';
|
|
9
|
+
import * as Transaction from './transactions';
|
|
10
|
+
import * as Captcha from './captcha';
|
|
11
|
+
import * as Event from './events';
|
|
12
|
+
import * as Activity from './activities';
|
|
13
|
+
import * as TestQualification from './testQualifications';
|
|
14
|
+
import * as Statistic from './statistics';
|
|
15
|
+
|
|
16
|
+
const FServiceAPI = {
|
|
17
|
+
Node,
|
|
18
|
+
Exhibit,
|
|
19
|
+
Storage,
|
|
20
|
+
Collection,
|
|
21
|
+
Resource,
|
|
22
|
+
User,
|
|
23
|
+
InformalNode,
|
|
24
|
+
Contract,
|
|
25
|
+
Transaction,
|
|
26
|
+
Captcha,
|
|
27
|
+
Event,
|
|
28
|
+
Activity,
|
|
29
|
+
TestQualification,
|
|
30
|
+
Statistic,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default FServiceAPI;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import FUtil from '../utils';
|
|
2
|
+
// import {AxiosRequestConfig, Canceler} from 'axios';
|
|
3
|
+
|
|
4
|
+
// 查询通用交易统计信息
|
|
5
|
+
export interface TransactionsCommonParamsType {
|
|
6
|
+
ownerId: string | number;
|
|
7
|
+
ownerType?: 1 | 2;
|
|
8
|
+
objectId?: string;
|
|
9
|
+
objectType?: 2 | 3;
|
|
10
|
+
beginDate?: string;
|
|
11
|
+
endDate?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function transactionsCommon(params: TransactionsCommonParamsType) {
|
|
15
|
+
return FUtil.Request({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: `/v2/statistics/transactions/common`,
|
|
18
|
+
params: params,
|
|
19
|
+
});
|
|
20
|
+
}
|