@freelog/tools-lib 0.1.96 → 0.1.99

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.
@@ -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
+ }
@@ -1,31 +1,56 @@
1
- import FUtil from '../utils';
2
-
3
- // 使用邀请码激活内测资格
4
- interface BetaCodesActivateParamsType {
5
- codes: string;
6
- }
7
-
8
- export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {
9
- return FUtil.Request({
10
- method: 'POST',
11
- url: '/v2/testQualifications/beta/codes/activate',
12
- data: params,
13
- });
14
- }
15
-
16
- // 用户申请内测资格
17
- interface BetaApplyParamsType {
18
- // province: string;
19
- // city: string;
20
- areaCode: string;
21
- occupation: string;
22
- description: string;
23
- }
24
-
25
- export function betaApply({...params}: BetaApplyParamsType) {
26
- return FUtil.Request({
27
- method: 'POST',
28
- url: '/v2/testQualifications/beta/apply',
29
- data: params,
30
- });
31
- }
1
+ import FUtil from '../utils';
2
+
3
+ // 使用邀请码激活内测资格
4
+ interface BetaCodesActivateParamsType {
5
+ code: string;
6
+ }
7
+
8
+ export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {
9
+ return FUtil.Request({
10
+ method: 'POST',
11
+ url: `/v2/testQualifications/beta/codes/activate`,
12
+ data: params,
13
+ });
14
+ }
15
+
16
+ // 用户申请内测资格
17
+ interface BetaApplyParamsType {
18
+ // province: string;
19
+ // city: string;
20
+ areaCode: string;
21
+ occupation: string;
22
+ description: string;
23
+ }
24
+
25
+ export function betaApply({...params}: BetaApplyParamsType) {
26
+ return FUtil.Request({
27
+ method: 'POST',
28
+ url: `/v2/testQualifications/beta/apply`,
29
+ data: params,
30
+ });
31
+ }
32
+
33
+ // 查看内测资格申请详情
34
+ interface GetBetaApply1ParamsType {
35
+
36
+ }
37
+
38
+ export function getBetaApply1({...params}: GetBetaApply1ParamsType = {}) {
39
+ return FUtil.Request({
40
+ method: 'GET',
41
+ url: `/v2/testQualifications/beta/apply/current`,
42
+ params: params,
43
+ });
44
+ }
45
+
46
+ interface GetBetaApply2ParamsType {
47
+ recordId: string;
48
+ }
49
+
50
+ export function getBetaApply2({recordId, ...params}: GetBetaApply2ParamsType) {
51
+ return FUtil.Request({
52
+ method: 'GET',
53
+ url: `/v2/testQualifications/beta/apply/${recordId}`,
54
+ data: params,
55
+ });
56
+ }