@freelog/tools-lib 0.1.177 → 0.1.179
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 +9 -1
- package/dist/tools-lib.cjs.development.js +24 -13
- 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 +24 -13
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +22 -2
package/package.json
CHANGED
|
@@ -148,6 +148,7 @@ interface PresentablesParamsType {
|
|
|
148
148
|
isLoadPolicyInfo?: 0 | 1;
|
|
149
149
|
isLoadResourceDetailInfo?: 0 | 1;
|
|
150
150
|
isLoadVersionUpdateTip?: 0 | 1;
|
|
151
|
+
subjectType?: 1 | 4 | 5;
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
export function presentables(params: PresentablesParamsType) {
|
|
@@ -423,7 +424,8 @@ export function addItemsToPresentableCollection({
|
|
|
423
424
|
// 批量从展品合集中移除单品
|
|
424
425
|
interface RemoveItemsFromPresentableCollectionParamsType {
|
|
425
426
|
presentableId: string;
|
|
426
|
-
|
|
427
|
+
removeIds: string;
|
|
428
|
+
idType?: 'resourceId' | 'presentableId' | 'itemId';
|
|
427
429
|
}
|
|
428
430
|
|
|
429
431
|
export function removeItemsFromPresentableCollection({
|
|
@@ -459,6 +461,24 @@ export function getItemsFromPresentableCollection({
|
|
|
459
461
|
});
|
|
460
462
|
}
|
|
461
463
|
|
|
464
|
+
// 查询展品合集中的是否存在指定单品
|
|
465
|
+
interface GetItemsFromPresentableCollectionIsExistParamsType {
|
|
466
|
+
presentableId: string;
|
|
467
|
+
mountIds: string;
|
|
468
|
+
idType?: 'resourceId' | 'presentableId';
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export function getItemsFromPresentableCollectionIsExist({
|
|
472
|
+
presentableId,
|
|
473
|
+
...params
|
|
474
|
+
}: GetItemsFromPresentableCollectionIsExistParamsType) {
|
|
475
|
+
return FUtil.Request({
|
|
476
|
+
method: 'GET',
|
|
477
|
+
url: `/v2/presentables/catalogues/${presentableId}/items/checkExists`,
|
|
478
|
+
params: params,
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
|
|
462
482
|
// 设置展品合集中的单品排序-手动排序
|
|
463
483
|
interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
464
484
|
presentableId: string;
|
|
@@ -535,7 +555,7 @@ export function setItemsAutoCollectRule({
|
|
|
535
555
|
}: SetItemsAutoCollectRuleParamsType) {
|
|
536
556
|
return FUtil.Request({
|
|
537
557
|
method: 'POST',
|
|
538
|
-
url: `/v2/presentables/catalogues/${presentableId}/items`,
|
|
558
|
+
url: `/v2/presentables/catalogues/${presentableId}/items/collectRules`,
|
|
539
559
|
data: params,
|
|
540
560
|
});
|
|
541
561
|
}
|