@freelog/tools-lib 0.1.114 → 0.1.115
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/resources.d.ts +5 -0
- package/dist/tools-lib.cjs.development.js +13 -3
- 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 +13 -3
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/resources.ts +14 -0
package/package.json
CHANGED
|
@@ -482,6 +482,20 @@ export function relationTreeAuth({resourceId, ...params}: RelationTreeAuthParams
|
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
+
// 查看资源创建数量
|
|
486
|
+
interface ResourcesCountParamsType {
|
|
487
|
+
userIds: string;
|
|
488
|
+
status?: 0 | 1 | 2 | 3; // 0:下架 1:上架 2:冻结(冻结时处于下架状态) 3:冻结(冻结时处于上架状态)
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export function resourcesCount({...params}: ResourcesCountParamsType) {
|
|
492
|
+
return FUtil.Request({
|
|
493
|
+
method: 'GET',
|
|
494
|
+
url: `/v2/resources/count`,
|
|
495
|
+
params: params,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
|
|
485
499
|
// 批量查询资源授权结果
|
|
486
500
|
interface BatchAuthParamsType {
|
|
487
501
|
resourceIds: string;
|