@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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;