@freelog/tools-lib 0.1.91 → 0.1.92
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 +12 -0
- package/dist/tools-lib.cjs.development.js +281 -675
- 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 +281 -675
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/activities.ts +60 -28
package/package.json
CHANGED
|
@@ -1,28 +1,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
|
-
}
|
|
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
|
+
export function adsDetails(params: AdsDetailsParamsType) {
|
|
55
|
+
return FUtil.Request({
|
|
56
|
+
method: 'GET',
|
|
57
|
+
url: `/v2/activities/ads/find4Client`,
|
|
58
|
+
params: params,
|
|
59
|
+
});
|
|
60
|
+
}
|