@freelog/tools-lib 0.1.115 → 0.1.118
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/activities.d.ts +9 -0
- package/dist/service-API/resources.d.ts +3 -0
- package/dist/service-API/user.d.ts +7 -1
- package/dist/tools-lib.cjs.development.js +101 -36
- 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 +101 -36
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +11 -0
- package/package.json +1 -1
- package/src/service-API/activities.ts +95 -60
- package/src/service-API/resources.ts +529 -526
- package/src/service-API/user.ts +261 -251
- package/src/utils/axios.ts +5 -2
- package/src/utils/linkTo.ts +29 -0
- package/src/service-API/recombinations/.gitkeep +0 -0
package/dist/utils/linkTo.d.ts
CHANGED
|
@@ -105,6 +105,14 @@ interface Exception403ParamsType {
|
|
|
105
105
|
from?: string;
|
|
106
106
|
}
|
|
107
107
|
export declare function exception403({ ...params }?: Exception403ParamsType): string;
|
|
108
|
+
interface NodeFreezeParamsType {
|
|
109
|
+
nodeID: number;
|
|
110
|
+
}
|
|
111
|
+
export declare function nodeFreeze({ nodeID }: NodeFreezeParamsType): string;
|
|
112
|
+
interface ResourceFreezeParamsType {
|
|
113
|
+
resourceID: string;
|
|
114
|
+
}
|
|
115
|
+
export declare function resourceFreeze({ resourceID }: ResourceFreezeParamsType): string;
|
|
108
116
|
/************** console End ******************************************************/
|
|
109
117
|
/************** user Start ******************************************************/
|
|
110
118
|
interface LoginParamsType {
|
|
@@ -123,6 +131,9 @@ interface RetrievePayPasswordParamsType {
|
|
|
123
131
|
goTo?: string;
|
|
124
132
|
}
|
|
125
133
|
export declare function retrievePayPassword({}?: RetrievePayPasswordParamsType): string;
|
|
134
|
+
interface UserFreezeParamsType {
|
|
135
|
+
}
|
|
136
|
+
export declare function userFreeze({}?: UserFreezeParamsType): string;
|
|
126
137
|
interface WalletParamsType {
|
|
127
138
|
}
|
|
128
139
|
export declare function wallet({}?: WalletParamsType): string;
|
package/package.json
CHANGED
|
@@ -1,60 +1,95 @@
|
|
|
1
|
-
import FUtil from '../utils';
|
|
2
|
-
|
|
3
|
-
// 列出活动
|
|
4
|
-
interface List4ClientParamsType {
|
|
5
|
-
skip?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function list4Client(params: List4ClientParamsType) {
|
|
10
|
-
return FUtil.Request({
|
|
11
|
-
method: 'GET',
|
|
12
|
-
url: `/v2/activities/list4Client`,
|
|
13
|
-
params: params,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// 查询活动
|
|
18
|
-
interface Find4ClientParamsType {
|
|
19
|
-
_id: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function find4Client(params: Find4ClientParamsType) {
|
|
23
|
-
return FUtil.Request({
|
|
24
|
-
method: 'GET',
|
|
25
|
-
url: `/v2/activities/find4Client`,
|
|
26
|
-
params: params,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// 列出广告
|
|
31
|
-
interface AdsListParamsType {
|
|
32
|
-
skip?: number;
|
|
33
|
-
limit?: number;
|
|
34
|
-
place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function adsList(params: AdsListParamsType) {
|
|
39
|
-
return FUtil.Request({
|
|
40
|
-
method: 'GET',
|
|
41
|
-
url: `/v2/activities/ads/list4Client`,
|
|
42
|
-
params: params,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// 查询广告
|
|
47
|
-
interface AdsDetailsParamsType {
|
|
48
|
-
skip?: number;
|
|
49
|
-
limit?: number;
|
|
50
|
-
place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
import FUtil from '../utils';
|
|
2
|
+
|
|
3
|
+
// 列出活动
|
|
4
|
+
interface List4ClientParamsType {
|
|
5
|
+
skip?: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function list4Client(params: List4ClientParamsType) {
|
|
10
|
+
return FUtil.Request({
|
|
11
|
+
method: 'GET',
|
|
12
|
+
url: `/v2/activities/list4Client`,
|
|
13
|
+
params: params,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// 查询活动
|
|
18
|
+
interface Find4ClientParamsType {
|
|
19
|
+
_id: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function find4Client(params: Find4ClientParamsType) {
|
|
23
|
+
return FUtil.Request({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: `/v2/activities/find4Client`,
|
|
26
|
+
params: params,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// 列出广告
|
|
31
|
+
interface AdsListParamsType {
|
|
32
|
+
skip?: number;
|
|
33
|
+
limit?: number;
|
|
34
|
+
place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function adsList(params: AdsListParamsType) {
|
|
39
|
+
return FUtil.Request({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: `/v2/activities/ads/list4Client`,
|
|
42
|
+
params: params,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 查询广告
|
|
47
|
+
interface AdsDetailsParamsType {
|
|
48
|
+
skip?: number;
|
|
49
|
+
limit?: number;
|
|
50
|
+
place: 1 | 2 | 3 | 4; // 投放位置 1:顶部公告栏 2:右侧浮窗 3:概览页 4:发现页
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function adsDetails(params: AdsDetailsParamsType) {
|
|
54
|
+
return FUtil.Request({
|
|
55
|
+
method: 'GET',
|
|
56
|
+
url: `/v2/activities/ads/find4Client`,
|
|
57
|
+
params: params,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// 获取基本任务详情
|
|
62
|
+
interface GetBaseTaskInfoParamsType {
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function getBaseTaskInfo(params: GetBaseTaskInfoParamsType = {}) {
|
|
66
|
+
return FUtil.Request({
|
|
67
|
+
method: 'GET',
|
|
68
|
+
url: `/v2/activities/facade/getBaseTaskInfo`,
|
|
69
|
+
params: params,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// 获取资源任务详情
|
|
74
|
+
interface GetResourceTaskInfoParamsType {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function getResourceTaskInfo(params: GetResourceTaskInfoParamsType = {}) {
|
|
78
|
+
return FUtil.Request({
|
|
79
|
+
method: 'GET',
|
|
80
|
+
url: `/v2/activities/facade/getResourceTaskInfo`,
|
|
81
|
+
params: params,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 获取节点任务详情
|
|
86
|
+
interface GetNodeTaskInfoParamsType {
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function getNodeTaskInfo(params: GetNodeTaskInfoParamsType = {}) {
|
|
90
|
+
return FUtil.Request({
|
|
91
|
+
method: 'GET',
|
|
92
|
+
url: `/v2/activities/facade/getNodeTaskInfo`,
|
|
93
|
+
params: params,
|
|
94
|
+
});
|
|
95
|
+
}
|