@freelog/tools-lib 0.1.182 → 0.1.184
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/presentables.d.ts +7 -0
- package/dist/service-API/resources.d.ts +4 -0
- package/dist/tools-lib.cjs.development.js +118 -100
- 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 +118 -100
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +7 -0
- package/package.json +1 -1
- package/src/service-API/presentables.ts +19 -0
- package/src/service-API/resources.ts +4 -0
- package/src/utils/linkTo.ts +11 -0
package/dist/utils/linkTo.d.ts
CHANGED
|
@@ -10,6 +10,13 @@ interface ActivitiesParamsType {
|
|
|
10
10
|
activityID: string;
|
|
11
11
|
}
|
|
12
12
|
export declare function activity({ activityID }: ActivitiesParamsType): string;
|
|
13
|
+
interface WXShareParamsType {
|
|
14
|
+
link: string;
|
|
15
|
+
title: string;
|
|
16
|
+
desc: string;
|
|
17
|
+
imgUrl: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function wxShare({ link, title, desc, imgUrl }: WXShareParamsType): string;
|
|
13
20
|
/************** www End ******************************************************/
|
|
14
21
|
/************** console Start ******************************************************/
|
|
15
22
|
interface DashboardParamsType {
|
package/package.json
CHANGED
|
@@ -584,3 +584,22 @@ export function setItemsAutoCollectRule({
|
|
|
584
584
|
data: params,
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
+
|
|
588
|
+
// 批量查询展品合集下的单品
|
|
589
|
+
interface GetItemsFromPresentableCollectionsParamsType {
|
|
590
|
+
presentableIds: string;
|
|
591
|
+
sortType?: 1 | -1;
|
|
592
|
+
sortField?: 'createDate';
|
|
593
|
+
limit?: number;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export function getItemsFromPresentableCollections({
|
|
597
|
+
...params
|
|
598
|
+
}: GetItemsFromPresentableCollectionsParamsType) {
|
|
599
|
+
return FUtil.Request({
|
|
600
|
+
method: 'GET',
|
|
601
|
+
// url: `/v2/presentables/catalogues/items/batch/list?presentableIds=685cf423e1502e002fe3053b&limit=1&sortType=-1&sortField=createDate`,
|
|
602
|
+
url: `/v2/presentables/catalogues/items/batch/list`,
|
|
603
|
+
params: params,
|
|
604
|
+
});
|
|
605
|
+
}
|
|
@@ -764,6 +764,7 @@ interface ResourceTypesParamsType {
|
|
|
764
764
|
isMine?: boolean;
|
|
765
765
|
status?: 0 | 1;
|
|
766
766
|
supportCreateBatch?: 1 | 2;
|
|
767
|
+
subjectType?: 1 | 4 | 5;
|
|
767
768
|
}
|
|
768
769
|
|
|
769
770
|
export function resourceTypes({ ...params }: ResourceTypesParamsType = {}) {
|
|
@@ -782,6 +783,9 @@ interface ListSimpleByParentCodeParamsType {
|
|
|
782
783
|
excludeParentCode?: boolean;
|
|
783
784
|
isTerminate?: boolean;
|
|
784
785
|
nameChain?: string;
|
|
786
|
+
subjectType?: 1 | 4 | 5;
|
|
787
|
+
supportCreateBatch?: 1 | 2;
|
|
788
|
+
status?: 0 | 1;
|
|
785
789
|
}
|
|
786
790
|
|
|
787
791
|
export function ListSimpleByParentCode({
|
package/src/utils/linkTo.ts
CHANGED
|
@@ -26,6 +26,17 @@ export function activity({ activityID }: ActivitiesParamsType) {
|
|
|
26
26
|
return `/activity/${activityID}`;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
interface WXShareParamsType {
|
|
30
|
+
link: string;
|
|
31
|
+
title: string;
|
|
32
|
+
desc: string;
|
|
33
|
+
imgUrl: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function wxShare({ link, title, desc, imgUrl }: WXShareParamsType) {
|
|
37
|
+
return `/wx-share/index.html#title=${title}&desc=${desc}&link=${link}&imgUrl=${imgUrl}`;
|
|
38
|
+
}
|
|
39
|
+
|
|
29
40
|
/************** www End ******************************************************/
|
|
30
41
|
|
|
31
42
|
/************** console Start ******************************************************/
|