@freelog/tools-lib 0.1.71 → 0.1.72

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.71",
3
+ "version": "0.1.72",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -440,12 +440,24 @@ interface RelationTreeAuthParamsType {
440
440
  }
441
441
 
442
442
  export function relationTreeAuth({resourceId, ...params}: RelationTreeAuthParamsType) {
443
- // return FUtil.Axios.get(`/v2/auths/resources/${resourceId}/relationTreeAuth`, {
444
- // params,
445
- // });
446
443
  return FUtil.Request({
447
444
  method: 'GET',
448
445
  url: `/v2/auths/resources/${resourceId}/relationTreeAuth`,
449
446
  params: params,
450
447
  });
451
448
  }
449
+
450
+ // 批量查询资源授权结果
451
+ interface BatchAuthParamsType {
452
+ resourceIds: string;
453
+ versions?: string;
454
+ versionRanges?: string;
455
+ }
456
+
457
+ export function batchAuth({...params}: BatchAuthParamsType) {
458
+ return FUtil.Request({
459
+ method: 'GET',
460
+ url: `/v2/auths/resources/batchAuth/results`,
461
+ params: params,
462
+ });
463
+ }