@freelog/tools-lib 0.1.119 → 0.1.120

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.119",
3
+ "version": "0.1.120",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,56 +1,96 @@
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
- }
1
+ import FUtil from '../utils';
2
+
3
+ // 查看邀请码详情
4
+ interface CodeDetails1ParamsType {
5
+ code: string;
6
+ }
7
+
8
+ interface CodeDetails2ParamsType {
9
+ }
10
+
11
+ export function codeDetails1({code}: CodeDetails1ParamsType) {
12
+ return FUtil.Request({
13
+ method: 'POST',
14
+ url: `/v2/testQualifications/beta/codes/${code}`,
15
+ // data: params,
16
+ });
17
+ }
18
+
19
+ export function codeDetails2({}: CodeDetails2ParamsType) {
20
+ return FUtil.Request({
21
+ method: 'POST',
22
+ url: `/v2/testQualifications/beta/codes/userActivateCode`,
23
+ // data: params,
24
+ });
25
+ }
26
+
27
+ // 使用邀请码激活内测资格
28
+ interface BetaCodesActivateParamsType {
29
+ code: string;
30
+ }
31
+
32
+ export function betaCodesActivate({...params}: BetaCodesActivateParamsType) {
33
+ return FUtil.Request({
34
+ method: 'POST',
35
+ url: `/v2/testQualifications/beta/codes/activate`,
36
+ data: params,
37
+ });
38
+ }
39
+
40
+ // 分页查看邀请码使用记录
41
+ interface UsedRecordsParamsType {
42
+ skip?: number;
43
+ limit?: number;
44
+ code?: string;
45
+ keywords?: string;
46
+ }
47
+
48
+ export function usedRecords({...params}: UsedRecordsParamsType) {
49
+ return FUtil.Request({
50
+ method: 'GET',
51
+ url: `/v2/testQualifications/beta/codes/usedRecords`,
52
+ params: params,
53
+ });
54
+ }
55
+
56
+ // 用户申请内测资格
57
+ interface BetaApplyParamsType {
58
+ // province: string;
59
+ // city: string;
60
+ areaCode: string;
61
+ occupation: string;
62
+ description: string;
63
+ }
64
+
65
+ export function betaApply({...params}: BetaApplyParamsType) {
66
+ return FUtil.Request({
67
+ method: 'POST',
68
+ url: `/v2/testQualifications/beta/apply`,
69
+ data: params,
70
+ });
71
+ }
72
+
73
+ // 查看内测资格申请详情
74
+ interface GetBetaApply1ParamsType {
75
+
76
+ }
77
+
78
+ export function getBetaApply1({...params}: GetBetaApply1ParamsType = {}) {
79
+ return FUtil.Request({
80
+ method: 'GET',
81
+ url: `/v2/testQualifications/beta/apply/current`,
82
+ params: params,
83
+ });
84
+ }
85
+
86
+ interface GetBetaApply2ParamsType {
87
+ recordId: string;
88
+ }
89
+
90
+ export function getBetaApply2({recordId, ...params}: GetBetaApply2ParamsType) {
91
+ return FUtil.Request({
92
+ method: 'GET',
93
+ url: `/v2/testQualifications/beta/apply/${recordId}`,
94
+ data: params,
95
+ });
96
+ }