@freelog/tools-lib 0.1.122 → 0.1.125
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/resources.d.ts +5 -3
- package/dist/service-API/user.d.ts +5 -4
- package/dist/tools-lib.cjs.development.js +11 -3
- 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 +11 -3
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/resources.ts +6 -3
- package/src/service-API/testQualifications.ts +96 -96
- package/src/service-API/user.ts +15 -6
package/package.json
CHANGED
|
@@ -81,14 +81,17 @@ interface ListParamsType {
|
|
|
81
81
|
resourceType?: string;
|
|
82
82
|
omitResourceType?: string;
|
|
83
83
|
isSelf?: 0 | 1;
|
|
84
|
+
userId?: number;
|
|
84
85
|
status?: 0 | 1 | 2;
|
|
85
|
-
startResourceId?: string;
|
|
86
86
|
isLoadPolicyInfo?: 0 | 1;
|
|
87
87
|
isLoadLatestVersionInfo?: 0 | 1;
|
|
88
|
+
isLoadFreezeReason?: 0 | 1;
|
|
88
89
|
projection?: string;
|
|
90
|
+
startCreateDate?: string;
|
|
91
|
+
endCreateDate?: string;
|
|
92
|
+
tags?: string;
|
|
89
93
|
sort?: string;
|
|
90
|
-
|
|
91
|
-
isLoadFreezeReason?: 0 | 1;
|
|
94
|
+
// startResourceId?: string;
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
interface ListReturnType extends CommonReturn {
|
|
@@ -1,96 +1,96 @@
|
|
|
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: 'GET',
|
|
14
|
-
url: `/v2/testQualifications/beta/codes/${code}`,
|
|
15
|
-
// data: params,
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function codeDetails2({}: CodeDetails2ParamsType) {
|
|
20
|
-
return FUtil.Request({
|
|
21
|
-
method: 'GET',
|
|
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
|
-
}
|
|
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: 'GET',
|
|
14
|
+
url: `/v2/testQualifications/beta/codes/${code}`,
|
|
15
|
+
// data: params,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function codeDetails2({}: CodeDetails2ParamsType) {
|
|
20
|
+
return FUtil.Request({
|
|
21
|
+
method: 'GET',
|
|
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
|
+
}
|
package/src/service-API/user.ts
CHANGED
|
@@ -37,16 +37,12 @@ interface UsersParamsType {
|
|
|
37
37
|
skip?: number;
|
|
38
38
|
limit?: number;
|
|
39
39
|
keywords?: string;
|
|
40
|
-
userId?: number;
|
|
41
|
-
tagIds?: string;
|
|
42
|
-
startRegisteredDate?: string;
|
|
43
|
-
endRegisteredDate?: string;
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
export function users(params: UsersParamsType) {
|
|
47
43
|
return FUtil.Request({
|
|
48
44
|
method: 'GET',
|
|
49
|
-
url: `/v2/users`,
|
|
45
|
+
url: `/v2/users/search`,
|
|
50
46
|
params: params,
|
|
51
47
|
});
|
|
52
48
|
}
|
|
@@ -255,7 +251,20 @@ export function thirdPartyList(params: ThirdPartyListParamsType = {}) {
|
|
|
255
251
|
return FUtil.Request({
|
|
256
252
|
method: 'GET',
|
|
257
253
|
url: `/v2/thirdParty/list`,
|
|
258
|
-
|
|
254
|
+
params: params,
|
|
259
255
|
});
|
|
260
256
|
}
|
|
261
257
|
|
|
258
|
+
// 查询用户名称是否绑定了微信号
|
|
259
|
+
interface ThirdPartyIsBindParamsType {
|
|
260
|
+
username: string;
|
|
261
|
+
thirdPartyType: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export function thirdPartyIsBind(params: ThirdPartyIsBindParamsType) {
|
|
265
|
+
return FUtil.Request({
|
|
266
|
+
method: 'GET',
|
|
267
|
+
url: `/v2/thirdParty/isBind`,
|
|
268
|
+
params: params,
|
|
269
|
+
});
|
|
270
|
+
}
|