@freelog/tools-lib 0.1.95 → 0.1.96
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/src/service-API/index.ts
CHANGED
|
@@ -1,31 +1,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
|
-
|
|
15
|
-
const FServiceAPI = {
|
|
16
|
-
Node,
|
|
17
|
-
Exhibit,
|
|
18
|
-
Storage,
|
|
19
|
-
Collection,
|
|
20
|
-
Resource,
|
|
21
|
-
User,
|
|
22
|
-
InformalNode,
|
|
23
|
-
Contract,
|
|
24
|
-
Transaction,
|
|
25
|
-
Captcha,
|
|
26
|
-
Event,
|
|
27
|
-
Activity,
|
|
28
|
-
TestQualification,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default FServiceAPI;
|
|
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
|
+
const FServiceAPI = {
|
|
16
|
+
Node,
|
|
17
|
+
Exhibit,
|
|
18
|
+
Storage,
|
|
19
|
+
Collection,
|
|
20
|
+
Resource,
|
|
21
|
+
User,
|
|
22
|
+
InformalNode,
|
|
23
|
+
Contract,
|
|
24
|
+
Transaction,
|
|
25
|
+
Captcha,
|
|
26
|
+
Event,
|
|
27
|
+
Activity,
|
|
28
|
+
TestQualification,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default FServiceAPI;
|
|
@@ -1,31 +1,31 @@
|
|
|
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
|
+
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
|
+
}
|