@freelog/tools-lib 0.1.181 → 0.1.183
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 +8 -1
- package/dist/service-API/resources.d.ts +4 -0
- package/dist/service-API/user.d.ts +5 -1
- package/dist/tools-lib.cjs.development.js +21 -2
- 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 +21 -2
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +20 -1
- package/src/service-API/resources.ts +4 -0
- package/src/service-API/user.ts +324 -300
package/package.json
CHANGED
|
@@ -503,7 +503,7 @@ export function getItemsFromPresentableCollectionIsExist({
|
|
|
503
503
|
// 设置展品合集中的单品排序-手动排序
|
|
504
504
|
interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
505
505
|
presentableId: string;
|
|
506
|
-
|
|
506
|
+
itemIds: string[];
|
|
507
507
|
targetSortId: number;
|
|
508
508
|
}
|
|
509
509
|
|
|
@@ -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({
|