@freelog/tools-lib 0.1.94 → 0.1.97
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/testQualifications.d.ts +7 -0
- package/dist/tools-lib.cjs.development.js +50 -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 +50 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/index.ts +2 -0
- package/src/service-API/testQualifications.ts +56 -31
package/src/service-API/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import * as Transaction from './transactions';
|
|
|
10
10
|
import * as Captcha from './captcha';
|
|
11
11
|
import * as Event from './events';
|
|
12
12
|
import * as Activity from './activities';
|
|
13
|
+
import * as TestQualification from './testQualifications';
|
|
13
14
|
|
|
14
15
|
const FServiceAPI = {
|
|
15
16
|
Node,
|
|
@@ -24,6 +25,7 @@ const FServiceAPI = {
|
|
|
24
25
|
Captcha,
|
|
25
26
|
Event,
|
|
26
27
|
Activity,
|
|
28
|
+
TestQualification,
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
export default FServiceAPI;
|
|
@@ -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:
|
|
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:
|
|
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
|
+
}
|
|
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
|
+
}
|