From 740c2620f4ecfb2362b785138fd2a3745f0c452e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E6=9C=9D=E4=BC=9F?= <2211960668@qq.com> Date: Tue, 21 Nov 2023 16:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/service/ctyun/CTYun.d.ts | 2 +- es/types/CTYun.d.ts | 6 ++++++ es/types/CTYun.js | 1 + es/types/index.d.ts | 2 +- es/types/index.js | 2 +- lib/service/ctyun/CTYun.d.ts | 2 +- lib/types/index.d.ts | 2 +- lib/types/index.js | 2 +- src/service/ctyun/CTYun.ts | 2 +- src/types/{CTGun.ts => CTYun.ts} | 0 src/types/index.ts | 2 +- 11 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 es/types/CTYun.d.ts create mode 100644 es/types/CTYun.js rename src/types/{CTGun.ts => CTYun.ts} (100%) diff --git a/es/service/ctyun/CTYun.d.ts b/es/service/ctyun/CTYun.d.ts index 59fcffd..a8e1283 100644 --- a/es/service/ctyun/CTYun.d.ts +++ b/es/service/ctyun/CTYun.d.ts @@ -1,4 +1,4 @@ -import { Action, CTYunZone } from '../../types/CTGun'; +import { Action, CTYunZone } from '../../types/CTYun'; export declare class CTYunInstance { private accessKey; private secretKey; diff --git a/es/types/CTYun.d.ts b/es/types/CTYun.d.ts new file mode 100644 index 0000000..f131fab --- /dev/null +++ b/es/types/CTYun.d.ts @@ -0,0 +1,6 @@ +/** + * 此处记录ctyun操作权限名称,更多操作权限参考下方链接 + * https://www.ctyun.cn/document/10306929/10136179 + */ +export type Action = '*' | 'PutObject' | 'GetObject' | 'DeleteObject' | 'ListBucket'; +export type CTYunZone = 'hazz' | 'lnsy' | 'sccd' | 'xjwlmq' | 'gslz' | 'sdqd' | 'gzgy' | 'hbwh' | 'xzls' | 'ahwh' | 'gdsz' | 'jssz' | 'sh2'; diff --git a/es/types/CTYun.js b/es/types/CTYun.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/es/types/CTYun.js @@ -0,0 +1 @@ +export {}; diff --git a/es/types/index.d.ts b/es/types/index.d.ts index ea2fb94..0763376 100644 --- a/es/types/index.d.ts +++ b/es/types/index.d.ts @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; +export * from './CTYun'; diff --git a/es/types/index.js b/es/types/index.js index ea2fb94..0763376 100644 --- a/es/types/index.js +++ b/es/types/index.js @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; +export * from './CTYun'; diff --git a/lib/service/ctyun/CTYun.d.ts b/lib/service/ctyun/CTYun.d.ts index 59fcffd..a8e1283 100644 --- a/lib/service/ctyun/CTYun.d.ts +++ b/lib/service/ctyun/CTYun.d.ts @@ -1,4 +1,4 @@ -import { Action, CTYunZone } from '../../types/CTGun'; +import { Action, CTYunZone } from '../../types/CTYun'; export declare class CTYunInstance { private accessKey; private secretKey; diff --git a/lib/types/index.d.ts b/lib/types/index.d.ts index ea2fb94..0763376 100644 --- a/lib/types/index.d.ts +++ b/lib/types/index.d.ts @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; +export * from './CTYun'; diff --git a/lib/types/index.js b/lib/types/index.js index eee97a9..51d4322 100644 --- a/lib/types/index.js +++ b/lib/types/index.js @@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("./Wechat"), exports); tslib_1.__exportStar(require("./Qiniu"), exports); -tslib_1.__exportStar(require("./CTGun"), exports); +tslib_1.__exportStar(require("./CTYun"), exports); diff --git a/src/service/ctyun/CTYun.ts b/src/service/ctyun/CTYun.ts index 335c6cd..329e6e3 100644 --- a/src/service/ctyun/CTYun.ts +++ b/src/service/ctyun/CTYun.ts @@ -1,6 +1,6 @@ // import AWS from 'aws-sdk'; import crypto from 'crypto'; -import { Action, CTYunZone } from '../../types/CTGun'; +import { Action, CTYunZone } from '../../types/CTYun'; const CTYun_ENDPOINT_LIST = { hazz: { diff --git a/src/types/CTGun.ts b/src/types/CTYun.ts similarity index 100% rename from src/types/CTGun.ts rename to src/types/CTYun.ts diff --git a/src/types/index.ts b/src/types/index.ts index 23adc40..09d60f9 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; \ No newline at end of file +export * from './CTYun'; \ No newline at end of file