giime 0.7.6 → 0.7.8
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/index.css +101 -101
- package/es/api/resource/controller/ZiYuanGuanLi/index.d.ts +0 -2
- package/es/api/resource/controller/ZiYuanGuanLi/index.mjs +0 -2
- package/es/api/resource/controller/ZiYuanGuanLi/index.mjs.map +1 -1
- package/es/api/resource/controller/ZiYuanGuanLi/postResourceV1ResourcesUrl.d.ts +5 -1
- package/es/api/resource/controller/ZiYuanGuanLi/postResourceV1ResourcesUrl.mjs.map +1 -1
- package/es/api/resource/controller/ZiYuanGuanLi/usePostResourceV1ResourcesUrl.d.ts +81 -1
- package/es/api/resource/controller/ZiYuanGuanLi/usePostResourceV1ResourcesUrl.mjs.map +1 -1
- package/es/api/resource/controller/index.mjs +0 -2
- package/es/api/resource/controller/index.mjs.map +1 -1
- package/es/api/resource/interface/apiTypes/GenerateUploadUrlRequest.d.ts +1 -1
- package/es/api/resource/interface/apiTypes/RMapStringObject.d.ts +13 -0
- package/es/api/resource/interface/apiTypes/RMapStringObject.mjs +2 -0
- package/es/api/resource/interface/apiTypes/RMapStringObject.mjs.map +1 -0
- package/es/api/resource/interface/apiTypes/ResourceUrlResponse.d.ts +8 -0
- package/es/api/resource/interface/apiTypes/Rurl.d.ts +10 -0
- package/es/api/resource/interface/apiTypes/Rurl.mjs +2 -0
- package/es/api/resource/interface/apiTypes/Rurl.mjs.map +1 -0
- package/es/api/resource/interface/index.d.ts +2 -0
- package/es/api/resource/interface/index.mjs +2 -0
- package/es/api/resource/interface/index.mjs.map +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue.d.ts +225 -225
- package/es/components/src/business/uploadPro/UploadPro.vue.mjs +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs.map +1 -1
- package/es/components/src/business/uploadPro/index.d.ts +16 -16
- package/es/components/src/business/uploadPro/uploadPro.d.ts +31 -31
- package/es/components/src/business/uploadPro/uploadPro.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +3 -3
- package/es/components/src/composite/uploadFile/UploadFile.vue.mjs +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue2.mjs +2 -2
- package/es/components/src/composite/uploadFile/UploadFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/index.d.ts +3 -3
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/hooks/base/useUploadFile/index.d.ts +15 -1
- package/es/hooks/base/useUploadFile/index.mjs +1 -0
- package/es/hooks/base/useUploadFile/index.mjs.map +1 -1
- package/es/hooks/store/useUploadTask/index.mjs +1 -1
- package/es/hooks/store/useUploadTask/index.mjs.map +1 -1
- package/es/index.css +101 -101
- package/lib/api/resource/controller/ZiYuanGuanLi/index.d.ts +0 -2
- package/lib/api/resource/controller/ZiYuanGuanLi/index.js +0 -4
- package/lib/api/resource/controller/ZiYuanGuanLi/index.js.map +1 -1
- package/lib/api/resource/controller/ZiYuanGuanLi/postResourceV1ResourcesUrl.d.ts +5 -1
- package/lib/api/resource/controller/ZiYuanGuanLi/postResourceV1ResourcesUrl.js.map +1 -1
- package/lib/api/resource/controller/ZiYuanGuanLi/usePostResourceV1ResourcesUrl.d.ts +81 -1
- package/lib/api/resource/controller/ZiYuanGuanLi/usePostResourceV1ResourcesUrl.js.map +1 -1
- package/lib/api/resource/controller/index.js +0 -4
- package/lib/api/resource/controller/index.js.map +1 -1
- package/lib/api/resource/interface/apiTypes/GenerateUploadUrlRequest.d.ts +1 -1
- package/lib/api/resource/interface/apiTypes/RMapStringObject.d.ts +13 -0
- package/lib/api/resource/interface/apiTypes/RMapStringObject.js +3 -0
- package/lib/api/resource/interface/apiTypes/RMapStringObject.js.map +1 -0
- package/lib/api/resource/interface/apiTypes/ResourceUrlResponse.d.ts +8 -0
- package/lib/api/resource/interface/apiTypes/Rurl.d.ts +10 -0
- package/lib/api/resource/interface/apiTypes/Rurl.js +3 -0
- package/lib/api/resource/interface/apiTypes/Rurl.js.map +1 -0
- package/lib/api/resource/interface/index.d.ts +2 -0
- package/lib/api/resource/interface/index.js +2 -0
- package/lib/api/resource/interface/index.js.map +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue.d.ts +225 -225
- package/lib/components/src/business/uploadPro/UploadPro.vue.js +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js.map +1 -1
- package/lib/components/src/business/uploadPro/index.d.ts +16 -16
- package/lib/components/src/business/uploadPro/uploadPro.d.ts +31 -31
- package/lib/components/src/business/uploadPro/uploadPro.js.map +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +3 -3
- package/lib/components/src/composite/uploadFile/UploadFile.vue.js +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue2.js +2 -2
- package/lib/components/src/composite/uploadFile/UploadFile.vue2.js.map +1 -1
- package/lib/components/src/composite/uploadFile/index.d.ts +3 -3
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/hooks/base/useUploadFile/index.d.ts +15 -1
- package/lib/hooks/base/useUploadFile/index.js +1 -0
- package/lib/hooks/base/useUploadFile/index.js.map +1 -1
- package/lib/hooks/store/useUploadTask/index.js +1 -1
- package/lib/hooks/store/useUploadTask/index.js.map +1 -1
- package/lib/index.css +101 -101
- package/package.json +1 -1
- package/es/api/resource/controller/ZiYuanGuanLi/getResourceV1ResourcesUrl.d.ts +0 -46
- package/es/api/resource/controller/ZiYuanGuanLi/getResourceV1ResourcesUrl.mjs +0 -24
- package/es/api/resource/controller/ZiYuanGuanLi/getResourceV1ResourcesUrl.mjs.map +0 -1
- package/es/api/resource/controller/ZiYuanGuanLi/useGetResourceV1ResourcesUrl.d.ts +0 -225
- package/es/api/resource/controller/ZiYuanGuanLi/useGetResourceV1ResourcesUrl.mjs +0 -34
- package/es/api/resource/controller/ZiYuanGuanLi/useGetResourceV1ResourcesUrl.mjs.map +0 -1
- package/lib/api/resource/controller/ZiYuanGuanLi/getResourceV1ResourcesUrl.d.ts +0 -46
- package/lib/api/resource/controller/ZiYuanGuanLi/getResourceV1ResourcesUrl.js +0 -26
- package/lib/api/resource/controller/ZiYuanGuanLi/getResourceV1ResourcesUrl.js.map +0 -1
- package/lib/api/resource/controller/ZiYuanGuanLi/useGetResourceV1ResourcesUrl.d.ts +0 -225
- package/lib/api/resource/controller/ZiYuanGuanLi/useGetResourceV1ResourcesUrl.js +0 -36
- package/lib/api/resource/controller/ZiYuanGuanLi/useGetResourceV1ResourcesUrl.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/base/useUploadFile/index.ts"],"sourcesContent":["import axios from 'axios';\nimport { ref } from 'vue';\nimport { postResourceV1ResourcesUrl } from '@giime/api/resource/controller';\nimport { fileMd5, fileValidType, genFileId } from '@giime/utils/src/file';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/base/useUploadFile/index.ts"],"sourcesContent":["import axios from 'axios';\nimport { ref } from 'vue';\nimport { postResourceV1ResourcesUrl } from '@giime/api/resource/controller';\nimport { fileMd5, fileValidType, genFileId } from '@giime/utils/src/file';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\nimport type {\n UploadProgressEvent,\n UploadRawFile as ElUploadRawFile,\n UploadFile as ElUploadFile,\n UploadUserFile as ElUploadUserFile,\n UploadRequestOptions,\n} from 'element-plus';\n\nexport interface UploadRawFile extends ElUploadRawFile {\n md5?: string;\n}\n\nexport type UploadFile = Omit<ElUploadFile, 'raw'> & { raw?: UploadRawFile };\nexport type UploadFiles = UploadFile[];\n\nexport type UploadUserFile = Omit<ElUploadUserFile, 'raw'> & { raw?: UploadRawFile };\n\nexport interface UseUploadFileOptions {\n /**领域编码 */\n domainCode?: string;\n /**场景编码 */\n sceneCode?: string;\n /**接受上传的文件类型 */\n accept?: string;\n /**文件权限,默认继承桶 */\n acl?: string;\n /**是否禁止上传文件到存储桶 */\n disablePutFile?: boolean;\n /** */\n elOptions?: UploadRequestOptions;\n}\n\nexport const useUploadFile = () => {\n const isLoading = ref(false);\n const domainCode = useGlobalConfig('domainCode');\n const sceneCode = useGlobalConfig('sceneCode');\n // 存储每个文件的取消控制器\n const abortControllers = ref<Map<number, AbortController>>(new Map());\n\n const uploadFile = async (file: UploadRawFile, options?: UseUploadFileOptions) => {\n // 领域编码\n const uploadDomainCode = options?.domainCode ?? domainCode.value;\n const uploadSceneCode = (options?.sceneCode ?? sceneCode.value) || 'internal_oss';\n if (!uploadDomainCode) {\n GmMessage.error('领域编码不能为空');\n throw new Error('领域编码不能为空');\n }\n\n // 创建取消控制器\n const abortController = new AbortController();\n const fileKey = file.uid ?? genFileId();\n abortControllers.value.set(fileKey, abortController);\n\n try {\n isLoading.value = true;\n // 验证文件类型\n if (options?.accept && options?.accept !== '*') {\n const isValidType = fileValidType(file, options.accept);\n if (!isValidType) {\n GmMessage.error(`文件类型不支持,请上传 ${options.accept} 格式的文件`);\n throw new Error(`文件类型不支持,请上传 ${options.accept} 格式的文件`);\n }\n }\n const md5 = await fileMd5(file);\n file.md5 = md5;\n const acl = options?.acl || 'default';\n const contentType = file.type || 'application/octet-stream';\n const { data } = await postResourceV1ResourcesUrl({\n domainCode: uploadDomainCode, // 领域编码\n sceneCode: uploadSceneCode, // 场景编码\n fileName: file.name,\n contentType,\n md5,\n size: file.size,\n acl, // 文件权限\n });\n\n if (data.data.uploadUrl) {\n try {\n await axios.put(data.data.uploadUrl, file, {\n headers: {\n 'Content-Type': contentType,\n 'x-oss-object-acl ': acl,\n 'Cache-Control': 'max-age=2592000',\n },\n signal: abortController.signal,\n onUploadProgress: progressEvent => {\n const progressEvt = progressEvent.event as UploadProgressEvent;\n progressEvt.percent = progressEvt.total > 0 ? (progressEvt.loaded / progressEvt.total) * 100 : 0;\n options?.elOptions?.onProgress(progressEvent.event);\n },\n });\n } catch (error: any) {\n // 如果是取消请求,不显示错误信息\n if (axios.isCancel(error) || error?.name === 'AbortError') {\n console.log('上传请求已取消');\n throw error;\n }\n GmMessage.error('推送至存储桶失败,请重试');\n throw error;\n }\n }\n\n return data.data;\n } finally {\n // 清理取消控制器\n abortControllers.value.delete(fileKey);\n isLoading.value = false;\n }\n };\n // 取消上传请求\n const cancelUpload = (fileUid: number) => {\n const abortController = abortControllers.value.get(fileUid);\n if (abortController) {\n abortController.abort();\n abortControllers.value.delete(fileUid);\n }\n };\n\n // 取消所有上传请求\n const cancelAllUploads = () => {\n abortControllers.value.forEach(controller => {\n controller.abort();\n });\n abortControllers.value.clear();\n };\n\n return {\n isLoading,\n uploadFile,\n cancelUpload,\n cancelAllUploads,\n };\n};\n"],"names":[],"mappings":"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"}
|
|
@@ -9,7 +9,7 @@ const useUploadTaskStore = defineStore("uploadTaskS", () => {
|
|
|
9
9
|
const uploadFileTask = async (file, options) => {
|
|
10
10
|
try {
|
|
11
11
|
const data = await uploadFile(file, options);
|
|
12
|
-
uploadResult.trigger(data);
|
|
12
|
+
uploadResult.trigger({ ...data, file });
|
|
13
13
|
return data;
|
|
14
14
|
} catch (error) {
|
|
15
15
|
uploadError.trigger(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/store/useUploadTask/index.ts"],"sourcesContent":["import { defineStore } from 'pinia';\nimport { createEventHook } from '@vueuse/core';\nimport { useUploadFile } from '../../base/useUploadFile';\nimport type { UseUploadFileOptions } from '../../base/useUploadFile';\nimport type { UploadRawFile } from 'element-plus';\n\n/**\n * 文件上传Hook\n */\nexport const useUploadTaskStore = defineStore('uploadTaskS', () => {\n const { isLoading, uploadFile, cancelUpload, cancelAllUploads } = useUploadFile();\n\n // 创建事件钩子\n const uploadResult = createEventHook();\n const uploadError = createEventHook();\n\n const uploadFileTask = async (file: UploadRawFile, options?: UseUploadFileOptions) => {\n try {\n const data = await uploadFile(file, options);\n\n uploadResult.trigger(data);\n return data;\n } catch (error) {\n uploadError.trigger(error);\n return error;\n }\n };\n\n return {\n // 事件监听器\n uploadResult: uploadResult.on,\n uploadError: uploadError.on,\n\n // 主要方法\n uploadFileTask,\n cancelUpload,\n cancelAllUploads,\n isLoading,\n };\n});\n"],"names":[],"mappings":";;;;AASa,MAAA,kBAAA,GAAqB,WAAY,CAAA,aAAA,EAAe,MAAM;AACjE,EAAA,MAAM,EAAE,SAAW,EAAA,UAAA,EAAY,YAAc,EAAA,gBAAA,KAAqB,aAAc,EAAA,CAAA;AAGhF,EAAA,MAAM,eAAe,eAAgB,EAAA,CAAA;AACrC,EAAA,MAAM,cAAc,eAAgB,EAAA,CAAA;AAEpC,EAAM,MAAA,cAAA,GAAiB,OAAO,IAAA,EAAqB,OAAmC,KAAA;AACpF,IAAI,IAAA;AACF,MAAA,MAAM,IAAO,GAAA,MAAM,UAAW,CAAA,IAAA,EAAM,OAAO,CAAA,CAAA;AAE3C,MAAA,YAAA,CAAa,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/store/useUploadTask/index.ts"],"sourcesContent":["import { defineStore } from 'pinia';\nimport { createEventHook } from '@vueuse/core';\nimport { useUploadFile } from '../../base/useUploadFile';\nimport type { UseUploadFileOptions } from '../../base/useUploadFile';\nimport type { UploadRawFile } from 'element-plus';\n\n/**\n * 文件上传Hook\n */\nexport const useUploadTaskStore = defineStore('uploadTaskS', () => {\n const { isLoading, uploadFile, cancelUpload, cancelAllUploads } = useUploadFile();\n\n // 创建事件钩子\n const uploadResult = createEventHook();\n const uploadError = createEventHook();\n\n const uploadFileTask = async (file: UploadRawFile, options?: UseUploadFileOptions) => {\n try {\n const data = await uploadFile(file, options);\n\n uploadResult.trigger({ ...data, file });\n return data;\n } catch (error) {\n uploadError.trigger(error);\n return error;\n }\n };\n\n return {\n // 事件监听器\n uploadResult: uploadResult.on,\n uploadError: uploadError.on,\n\n // 主要方法\n uploadFileTask,\n cancelUpload,\n cancelAllUploads,\n isLoading,\n };\n});\n"],"names":[],"mappings":";;;;AASa,MAAA,kBAAA,GAAqB,WAAY,CAAA,aAAA,EAAe,MAAM;AACjE,EAAA,MAAM,EAAE,SAAW,EAAA,UAAA,EAAY,YAAc,EAAA,gBAAA,KAAqB,aAAc,EAAA,CAAA;AAGhF,EAAA,MAAM,eAAe,eAAgB,EAAA,CAAA;AACrC,EAAA,MAAM,cAAc,eAAgB,EAAA,CAAA;AAEpC,EAAM,MAAA,cAAA,GAAiB,OAAO,IAAA,EAAqB,OAAmC,KAAA;AACpF,IAAI,IAAA;AACF,MAAA,MAAM,IAAO,GAAA,MAAM,UAAW,CAAA,IAAA,EAAM,OAAO,CAAA,CAAA;AAE3C,MAAA,YAAA,CAAa,OAAQ,CAAA,EAAE,GAAG,IAAA,EAAM,MAAM,CAAA,CAAA;AACtC,MAAO,OAAA,IAAA,CAAA;AAAA,aACA,KAAO,EAAA;AACd,MAAA,WAAA,CAAY,QAAQ,KAAK,CAAA,CAAA;AACzB,MAAO,OAAA,KAAA,CAAA;AAAA,KACT;AAAA,GACF,CAAA;AAEA,EAAO,OAAA;AAAA;AAAA,IAEL,cAAc,YAAa,CAAA,EAAA;AAAA,IAC3B,aAAa,WAAY,CAAA,EAAA;AAAA;AAAA,IAGzB,cAAA;AAAA,IACA,YAAA;AAAA,IACA,gBAAA;AAAA,IACA,SAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
package/es/index.css
CHANGED
|
@@ -873,12 +873,18 @@ video {
|
|
|
873
873
|
.gm-group:hover .group-hover\:gm-block {
|
|
874
874
|
display: block;
|
|
875
875
|
}
|
|
876
|
-
|
|
877
|
-
|
|
876
|
+
|
|
877
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
878
|
+
margin: 0;
|
|
878
879
|
}
|
|
879
880
|
|
|
880
|
-
.gm-
|
|
881
|
-
|
|
881
|
+
.gm-upload-pro-preview-dialog[data-v-40d129e4] [data-v-40d129e4] .el-dialog__body {
|
|
882
|
+
padding: 0;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.gm-upload-pro-file-picture-card[data-v-40d129e4] [data-v-40d129e4] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-40d129e4] [data-v-40d129e4] .el-upload--picture-card {
|
|
886
|
+
width: auto;
|
|
887
|
+
height: auto;
|
|
882
888
|
}
|
|
883
889
|
.circular[data-v-d7b04fae] {
|
|
884
890
|
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
@@ -911,19 +917,6 @@ video {
|
|
|
911
917
|
stroke-dashoffset: -120px;
|
|
912
918
|
}
|
|
913
919
|
}
|
|
914
|
-
|
|
915
|
-
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
916
|
-
margin: 0;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
.gm-upload-pro-preview-dialog[data-v-e2251a0c] [data-v-e2251a0c] .el-dialog__body {
|
|
920
|
-
padding: 0;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.gm-upload-pro-file-picture-card[data-v-e2251a0c] [data-v-e2251a0c] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-e2251a0c] [data-v-e2251a0c] .el-upload--picture-card {
|
|
924
|
-
width: auto;
|
|
925
|
-
height: auto;
|
|
926
|
-
}
|
|
927
920
|
.gm-upload-pro-file {
|
|
928
921
|
line-height: normal;
|
|
929
922
|
}
|
|
@@ -962,10 +955,66 @@ video {
|
|
|
962
955
|
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
963
956
|
display: none;
|
|
964
957
|
}
|
|
958
|
+
.gm-flex-center[data-v-c17deec9] {
|
|
959
|
+
align-items: center;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
963
|
+
justify-content: space-between;
|
|
964
|
+
}
|
|
965
965
|
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
966
966
|
margin-right: 0;
|
|
967
967
|
margin-bottom: 4px;
|
|
968
968
|
}
|
|
969
|
+
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
970
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
971
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
972
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
973
|
+
}
|
|
974
|
+
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
975
|
+
box-shadow: none;
|
|
976
|
+
background: none;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
980
|
+
display: none;
|
|
981
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
985
|
+
display: flex;
|
|
986
|
+
}
|
|
987
|
+
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
988
|
+
padding: 0;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
|
|
992
|
+
width: auto;
|
|
993
|
+
height: auto;
|
|
994
|
+
}
|
|
995
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
996
|
+
border-right: none;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1000
|
+
height: 0;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1004
|
+
height: 0;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1008
|
+
height: 0;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1012
|
+
height: 0;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1016
|
+
height: 0;
|
|
1017
|
+
}
|
|
969
1018
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
970
1019
|
border-right: none;
|
|
971
1020
|
}
|
|
@@ -989,33 +1038,50 @@ video {
|
|
|
989
1038
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
990
1039
|
height: 0;
|
|
991
1040
|
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
background: #fff;
|
|
995
|
-
padding-top: 12px;
|
|
1041
|
+
.gm-upload-file {
|
|
1042
|
+
line-height: normal;
|
|
996
1043
|
}
|
|
997
|
-
.
|
|
998
|
-
|
|
1044
|
+
.gm-upload-file .el-checkbox {
|
|
1045
|
+
position: absolute;
|
|
1046
|
+
left: 10px;
|
|
1047
|
+
top: 0;
|
|
1048
|
+
z-index: 9;
|
|
999
1049
|
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1003
|
-
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
1004
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
1050
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
1051
|
+
gap: 10px;
|
|
1005
1052
|
}
|
|
1006
|
-
.gm-
|
|
1007
|
-
|
|
1008
|
-
|
|
1053
|
+
.gm-upload-file .el-upload-list__item {
|
|
1054
|
+
margin: 0;
|
|
1055
|
+
}
|
|
1056
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
1057
|
+
line-height: normal;
|
|
1058
|
+
}
|
|
1059
|
+
.gm-upload-file .el-upload-dragger {
|
|
1060
|
+
padding: 0;
|
|
1061
|
+
border: none;
|
|
1062
|
+
width: 100%;
|
|
1063
|
+
height: 100%;
|
|
1064
|
+
display: flex;
|
|
1065
|
+
}
|
|
1066
|
+
.gm-upload-file .el-upload--picture-card {
|
|
1067
|
+
border: none;
|
|
1009
1068
|
}
|
|
1010
1069
|
|
|
1011
|
-
.gm-
|
|
1070
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1071
|
+
display: none;
|
|
1072
|
+
}
|
|
1073
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1012
1074
|
display: none;
|
|
1013
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
1014
1075
|
}
|
|
1015
1076
|
|
|
1016
|
-
.
|
|
1017
|
-
|
|
1077
|
+
.pagination-container[data-v-47d35e7b] {
|
|
1078
|
+
background: #fff;
|
|
1079
|
+
padding-top: 12px;
|
|
1080
|
+
}
|
|
1081
|
+
.pagination-container.hidden[data-v-47d35e7b] {
|
|
1082
|
+
display: none;
|
|
1018
1083
|
}
|
|
1084
|
+
|
|
1019
1085
|
@charset "UTF-8";
|
|
1020
1086
|
.custom-operate-drawer .el-drawer__header {
|
|
1021
1087
|
padding: 10px 15px;
|
|
@@ -1072,29 +1138,6 @@ video {
|
|
|
1072
1138
|
border-radius: 10px;
|
|
1073
1139
|
background: #eee;
|
|
1074
1140
|
}
|
|
1075
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1076
|
-
border-right: none;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1080
|
-
height: 0;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1084
|
-
height: 0;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1088
|
-
height: 0;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1092
|
-
height: 0;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1096
|
-
height: 0;
|
|
1097
|
-
}
|
|
1098
1141
|
@charset "UTF-8";
|
|
1099
1142
|
.table-custom-header-drawer .el-drawer__header {
|
|
1100
1143
|
padding: 10px 15px;
|
|
@@ -1150,47 +1193,4 @@ video {
|
|
|
1150
1193
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1151
1194
|
border-radius: 10px;
|
|
1152
1195
|
background: #eee;
|
|
1153
|
-
}
|
|
1154
|
-
.gm-upload-preview-dialog[data-v-12e65ac7] [data-v-12e65ac7] .el-dialog__body {
|
|
1155
|
-
padding: 0;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
.gm-upload-file-picture-card[data-v-12e65ac7] [data-v-12e65ac7] .el-upload-list__item, .gm-upload-file-picture-card[data-v-12e65ac7] [data-v-12e65ac7] .el-upload--picture-card {
|
|
1159
|
-
width: auto;
|
|
1160
|
-
height: auto;
|
|
1161
|
-
}
|
|
1162
|
-
.gm-upload-file {
|
|
1163
|
-
line-height: normal;
|
|
1164
|
-
}
|
|
1165
|
-
.gm-upload-file .el-checkbox {
|
|
1166
|
-
position: absolute;
|
|
1167
|
-
left: 10px;
|
|
1168
|
-
top: 0;
|
|
1169
|
-
z-index: 9;
|
|
1170
|
-
}
|
|
1171
|
-
.gm-upload-file .el-upload-list--picture-card {
|
|
1172
|
-
gap: 10px;
|
|
1173
|
-
}
|
|
1174
|
-
.gm-upload-file .el-upload-list__item {
|
|
1175
|
-
margin: 0;
|
|
1176
|
-
}
|
|
1177
|
-
.gm-upload-file .el-upload-list__item-file-name {
|
|
1178
|
-
line-height: normal;
|
|
1179
|
-
}
|
|
1180
|
-
.gm-upload-file .el-upload-dragger {
|
|
1181
|
-
padding: 0;
|
|
1182
|
-
border: none;
|
|
1183
|
-
width: 100%;
|
|
1184
|
-
height: 100%;
|
|
1185
|
-
display: flex;
|
|
1186
|
-
}
|
|
1187
|
-
.gm-upload-file .el-upload--picture-card {
|
|
1188
|
-
border: none;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1192
|
-
display: none;
|
|
1193
|
-
}
|
|
1194
|
-
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1195
|
-
display: none;
|
|
1196
1196
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var getResourceV1ResourcesUrl = require('./getResourceV1ResourcesUrl.js');
|
|
4
|
-
var useGetResourceV1ResourcesUrl = require('./useGetResourceV1ResourcesUrl.js');
|
|
5
3
|
var postResourceV1ResourcesUrl = require('./postResourceV1ResourcesUrl.js');
|
|
6
4
|
var usePostResourceV1ResourcesUrl = require('./usePostResourceV1ResourcesUrl.js');
|
|
7
5
|
|
|
8
6
|
|
|
9
7
|
|
|
10
|
-
exports.getResourceV1ResourcesUrl = getResourceV1ResourcesUrl.getResourceV1ResourcesUrl;
|
|
11
|
-
exports.useGetResourceV1ResourcesUrl = useGetResourceV1ResourcesUrl.useGetResourceV1ResourcesUrl;
|
|
12
8
|
exports.postResourceV1ResourcesUrl = postResourceV1ResourcesUrl.postResourceV1ResourcesUrl;
|
|
13
9
|
exports.usePostResourceV1ResourcesUrl = usePostResourceV1ResourcesUrl.usePostResourceV1ResourcesUrl;
|
|
14
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ import { type AxiosRequestConfig } from "axios";
|
|
|
4
4
|
* 查询资源上传链接
|
|
5
5
|
* /resource/v1/resources/url
|
|
6
6
|
*/
|
|
7
|
-
export declare function postResourceV1ResourcesUrl(input
|
|
7
|
+
export declare function postResourceV1ResourcesUrl(input: GenerateUploadUrlRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
8
8
|
code: number;
|
|
9
9
|
bizCode: number;
|
|
10
10
|
data: {
|
|
@@ -12,6 +12,10 @@ export declare function postResourceV1ResourcesUrl(input?: GenerateUploadUrlRequ
|
|
|
12
12
|
exists: boolean;
|
|
13
13
|
uploadUrl: string;
|
|
14
14
|
key: string;
|
|
15
|
+
fileName: string;
|
|
16
|
+
md5: string;
|
|
17
|
+
contentType: string;
|
|
18
|
+
size: number;
|
|
15
19
|
};
|
|
16
20
|
msg: string;
|
|
17
21
|
}, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postResourceV1ResourcesUrl.js","sources":["../../../../../../../packages/api/resource/controller/ZiYuanGuanLi/postResourceV1ResourcesUrl.ts"],"sourcesContent":["import request from \"@giime/api/resource/request\";\nimport { type RResourceUrlResponse, type DeepRequired, type GenerateUploadUrlRequest } from \"../../interface\";\nimport { type AxiosRequestConfig } from \"axios\";\n\n/**\n * 查询资源上传链接\n * /resource/v1/resources/url\n */\nexport function postResourceV1ResourcesUrl(input
|
|
1
|
+
{"version":3,"file":"postResourceV1ResourcesUrl.js","sources":["../../../../../../../packages/api/resource/controller/ZiYuanGuanLi/postResourceV1ResourcesUrl.ts"],"sourcesContent":["import request from \"@giime/api/resource/request\";\nimport { type RResourceUrlResponse, type DeepRequired, type GenerateUploadUrlRequest } from \"../../interface\";\nimport { type AxiosRequestConfig } from \"axios\";\n\n/**\n * 查询资源上传链接\n * /resource/v1/resources/url\n */\nexport function postResourceV1ResourcesUrl(input: GenerateUploadUrlRequest, config?: AxiosRequestConfig) {\n return request.post<DeepRequired<RResourceUrlResponse>>(`/resource/v1/resources/url`, input, config);\n}\n"],"names":["request"],"mappings":";;;;AAQgB,SAAA,0BAAA,CAA2B,OAAiC,MAA6B,EAAA;AACrG,EAAA,OAAOA,eAAQ,CAAA,IAAA,CAAyC,CAA8B,0BAAA,CAAA,EAAA,KAAA,EAAO,MAAM,CAAA,CAAA;AACvG;;;;"}
|
|
@@ -6,7 +6,7 @@ import { type DeepRequired, type RResourceUrlResponse, type GenerateUploadUrlReq
|
|
|
6
6
|
* /resource/v1/resources/url
|
|
7
7
|
*/
|
|
8
8
|
export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<RResourceUrlResponse>>): {
|
|
9
|
-
exec: (input
|
|
9
|
+
exec: (input: GenerateUploadUrlRequest, axiosConfig?: AxiosRequestConfig) => Promise<import("../../../../hooks/base/useAxios").StrictUseAxiosReturn<{
|
|
10
10
|
code: number;
|
|
11
11
|
bizCode: number;
|
|
12
12
|
data: {
|
|
@@ -14,6 +14,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
14
14
|
exists: boolean;
|
|
15
15
|
uploadUrl: string;
|
|
16
16
|
key: string;
|
|
17
|
+
fileName: string;
|
|
18
|
+
md5: string;
|
|
19
|
+
contentType: string;
|
|
20
|
+
size: number;
|
|
17
21
|
};
|
|
18
22
|
msg: string;
|
|
19
23
|
}, import("axios").AxiosResponse<{
|
|
@@ -24,6 +28,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
24
28
|
exists: boolean;
|
|
25
29
|
uploadUrl: string;
|
|
26
30
|
key: string;
|
|
31
|
+
fileName: string;
|
|
32
|
+
md5: string;
|
|
33
|
+
contentType: string;
|
|
34
|
+
size: number;
|
|
27
35
|
};
|
|
28
36
|
msg: string;
|
|
29
37
|
}, any>, any, import("../../../../hooks/base/useAxios").UseAxiosOptionsBase<{
|
|
@@ -34,6 +42,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
34
42
|
exists: boolean;
|
|
35
43
|
uploadUrl: string;
|
|
36
44
|
key: string;
|
|
45
|
+
fileName: string;
|
|
46
|
+
md5: string;
|
|
47
|
+
contentType: string;
|
|
48
|
+
size: number;
|
|
37
49
|
};
|
|
38
50
|
msg: string;
|
|
39
51
|
}>>>;
|
|
@@ -45,6 +57,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
45
57
|
exists: boolean;
|
|
46
58
|
uploadUrl: string;
|
|
47
59
|
key: string;
|
|
60
|
+
fileName: string;
|
|
61
|
+
md5: string;
|
|
62
|
+
contentType: string;
|
|
63
|
+
size: number;
|
|
48
64
|
};
|
|
49
65
|
msg: string;
|
|
50
66
|
}, import("axios").AxiosResponse<{
|
|
@@ -55,6 +71,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
55
71
|
exists: boolean;
|
|
56
72
|
uploadUrl: string;
|
|
57
73
|
key: string;
|
|
74
|
+
fileName: string;
|
|
75
|
+
md5: string;
|
|
76
|
+
contentType: string;
|
|
77
|
+
size: number;
|
|
58
78
|
};
|
|
59
79
|
msg: string;
|
|
60
80
|
}, any>, any, import("../../../../hooks/base/useAxios").UseAxiosOptionsBase<{
|
|
@@ -65,6 +85,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
65
85
|
exists: boolean;
|
|
66
86
|
uploadUrl: string;
|
|
67
87
|
key: string;
|
|
88
|
+
fileName: string;
|
|
89
|
+
md5: string;
|
|
90
|
+
contentType: string;
|
|
91
|
+
size: number;
|
|
68
92
|
};
|
|
69
93
|
msg: string;
|
|
70
94
|
}>>>;
|
|
@@ -76,6 +100,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
76
100
|
exists: boolean;
|
|
77
101
|
uploadUrl: string;
|
|
78
102
|
key: string;
|
|
103
|
+
fileName: string;
|
|
104
|
+
md5: string;
|
|
105
|
+
contentType: string;
|
|
106
|
+
size: number;
|
|
79
107
|
};
|
|
80
108
|
msg: string;
|
|
81
109
|
}, any> | undefined>;
|
|
@@ -87,6 +115,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
87
115
|
exists: boolean;
|
|
88
116
|
uploadUrl: string;
|
|
89
117
|
key: string;
|
|
118
|
+
fileName: string;
|
|
119
|
+
md5: string;
|
|
120
|
+
contentType: string;
|
|
121
|
+
size: number;
|
|
90
122
|
};
|
|
91
123
|
msg: string;
|
|
92
124
|
} | undefined>;
|
|
@@ -105,6 +137,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
105
137
|
exists: boolean;
|
|
106
138
|
uploadUrl: string;
|
|
107
139
|
key: string;
|
|
140
|
+
fileName: string;
|
|
141
|
+
md5: string;
|
|
142
|
+
contentType: string;
|
|
143
|
+
size: number;
|
|
108
144
|
};
|
|
109
145
|
msg: string;
|
|
110
146
|
}, import("axios").AxiosResponse<{
|
|
@@ -115,6 +151,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
115
151
|
exists: boolean;
|
|
116
152
|
uploadUrl: string;
|
|
117
153
|
key: string;
|
|
154
|
+
fileName: string;
|
|
155
|
+
md5: string;
|
|
156
|
+
contentType: string;
|
|
157
|
+
size: number;
|
|
118
158
|
};
|
|
119
159
|
msg: string;
|
|
120
160
|
}, any>, any, import("../../../../hooks/base/useAxios").UseAxiosOptionsBase<{
|
|
@@ -125,6 +165,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
125
165
|
exists: boolean;
|
|
126
166
|
uploadUrl: string;
|
|
127
167
|
key: string;
|
|
168
|
+
fileName: string;
|
|
169
|
+
md5: string;
|
|
170
|
+
contentType: string;
|
|
171
|
+
size: number;
|
|
128
172
|
};
|
|
129
173
|
msg: string;
|
|
130
174
|
}>>, TResult2 = never>(onfulfilled?: ((value: import("../../../../hooks/base/useAxios").StrictUseAxiosReturn<{
|
|
@@ -135,6 +179,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
135
179
|
exists: boolean;
|
|
136
180
|
uploadUrl: string;
|
|
137
181
|
key: string;
|
|
182
|
+
fileName: string;
|
|
183
|
+
md5: string;
|
|
184
|
+
contentType: string;
|
|
185
|
+
size: number;
|
|
138
186
|
};
|
|
139
187
|
msg: string;
|
|
140
188
|
}, import("axios").AxiosResponse<{
|
|
@@ -145,6 +193,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
145
193
|
exists: boolean;
|
|
146
194
|
uploadUrl: string;
|
|
147
195
|
key: string;
|
|
196
|
+
fileName: string;
|
|
197
|
+
md5: string;
|
|
198
|
+
contentType: string;
|
|
199
|
+
size: number;
|
|
148
200
|
};
|
|
149
201
|
msg: string;
|
|
150
202
|
}, any>, any, import("../../../../hooks/base/useAxios").UseAxiosOptionsBase<{
|
|
@@ -155,6 +207,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
155
207
|
exists: boolean;
|
|
156
208
|
uploadUrl: string;
|
|
157
209
|
key: string;
|
|
210
|
+
fileName: string;
|
|
211
|
+
md5: string;
|
|
212
|
+
contentType: string;
|
|
213
|
+
size: number;
|
|
158
214
|
};
|
|
159
215
|
msg: string;
|
|
160
216
|
}>>) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
@@ -166,6 +222,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
166
222
|
exists: boolean;
|
|
167
223
|
uploadUrl: string;
|
|
168
224
|
key: string;
|
|
225
|
+
fileName: string;
|
|
226
|
+
md5: string;
|
|
227
|
+
contentType: string;
|
|
228
|
+
size: number;
|
|
169
229
|
};
|
|
170
230
|
msg: string;
|
|
171
231
|
}, import("axios").AxiosResponse<{
|
|
@@ -176,6 +236,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
176
236
|
exists: boolean;
|
|
177
237
|
uploadUrl: string;
|
|
178
238
|
key: string;
|
|
239
|
+
fileName: string;
|
|
240
|
+
md5: string;
|
|
241
|
+
contentType: string;
|
|
242
|
+
size: number;
|
|
179
243
|
};
|
|
180
244
|
msg: string;
|
|
181
245
|
}, any>, any, import("../../../../hooks/base/useAxios").UseAxiosOptionsBase<{
|
|
@@ -186,6 +250,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
186
250
|
exists: boolean;
|
|
187
251
|
uploadUrl: string;
|
|
188
252
|
key: string;
|
|
253
|
+
fileName: string;
|
|
254
|
+
md5: string;
|
|
255
|
+
contentType: string;
|
|
256
|
+
size: number;
|
|
189
257
|
};
|
|
190
258
|
msg: string;
|
|
191
259
|
}>> | TResult>;
|
|
@@ -197,6 +265,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
197
265
|
exists: boolean;
|
|
198
266
|
uploadUrl: string;
|
|
199
267
|
key: string;
|
|
268
|
+
fileName: string;
|
|
269
|
+
md5: string;
|
|
270
|
+
contentType: string;
|
|
271
|
+
size: number;
|
|
200
272
|
};
|
|
201
273
|
msg: string;
|
|
202
274
|
}, import("axios").AxiosResponse<{
|
|
@@ -207,6 +279,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
207
279
|
exists: boolean;
|
|
208
280
|
uploadUrl: string;
|
|
209
281
|
key: string;
|
|
282
|
+
fileName: string;
|
|
283
|
+
md5: string;
|
|
284
|
+
contentType: string;
|
|
285
|
+
size: number;
|
|
210
286
|
};
|
|
211
287
|
msg: string;
|
|
212
288
|
}, any>, any, import("../../../../hooks/base/useAxios").UseAxiosOptionsBase<{
|
|
@@ -217,6 +293,10 @@ export declare function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfi
|
|
|
217
293
|
exists: boolean;
|
|
218
294
|
uploadUrl: string;
|
|
219
295
|
key: string;
|
|
296
|
+
fileName: string;
|
|
297
|
+
md5: string;
|
|
298
|
+
contentType: string;
|
|
299
|
+
size: number;
|
|
220
300
|
};
|
|
221
301
|
msg: string;
|
|
222
302
|
}>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePostResourceV1ResourcesUrl.js","sources":["../../../../../../../packages/api/resource/controller/ZiYuanGuanLi/usePostResourceV1ResourcesUrl.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@giime/hooks/base/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired, type RResourceUrlResponse, type GenerateUploadUrlRequest } from \"../../interface\";\nimport request from \"@giime/api/resource/request\";\n\n/**\n * 查询资源上传链接\n * /resource/v1/resources/url\n */\nexport function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<RResourceUrlResponse>>) {\n const useAxiosReturn = useAxios<DeepRequired<RResourceUrlResponse>>(\n '/resource/v1/resources/url',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input
|
|
1
|
+
{"version":3,"file":"usePostResourceV1ResourcesUrl.js","sources":["../../../../../../../packages/api/resource/controller/ZiYuanGuanLi/usePostResourceV1ResourcesUrl.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@giime/hooks/base/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired, type RResourceUrlResponse, type GenerateUploadUrlRequest } from \"../../interface\";\nimport request from \"@giime/api/resource/request\";\n\n/**\n * 查询资源上传链接\n * /resource/v1/resources/url\n */\nexport function usePostResourceV1ResourcesUrl(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<RResourceUrlResponse>>) {\n const useAxiosReturn = useAxios<DeepRequired<RResourceUrlResponse>>(\n '/resource/v1/resources/url',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input: GenerateUploadUrlRequest, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AASgB,SAAA,6BAAA,CAA8B,QAA6B,OAA+D,EAAA;AACtI,EAAA,MAAM,cAAiB,GAAAA,cAAA;AAAA,IACnB,4BAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAiC,WAAkC,EAAA;AAC7E,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./ZiYuanGuanLi/index.js');
|
|
4
|
-
var getResourceV1ResourcesUrl = require('./ZiYuanGuanLi/getResourceV1ResourcesUrl.js');
|
|
5
|
-
var useGetResourceV1ResourcesUrl = require('./ZiYuanGuanLi/useGetResourceV1ResourcesUrl.js');
|
|
6
4
|
var postResourceV1ResourcesUrl = require('./ZiYuanGuanLi/postResourceV1ResourcesUrl.js');
|
|
7
5
|
var usePostResourceV1ResourcesUrl = require('./ZiYuanGuanLi/usePostResourceV1ResourcesUrl.js');
|
|
8
6
|
|
|
9
7
|
|
|
10
8
|
|
|
11
|
-
exports.getResourceV1ResourcesUrl = getResourceV1ResourcesUrl.getResourceV1ResourcesUrl;
|
|
12
|
-
exports.useGetResourceV1ResourcesUrl = useGetResourceV1ResourcesUrl.useGetResourceV1ResourcesUrl;
|
|
13
9
|
exports.postResourceV1ResourcesUrl = postResourceV1ResourcesUrl.postResourceV1ResourcesUrl;
|
|
14
10
|
exports.usePostResourceV1ResourcesUrl = usePostResourceV1ResourcesUrl.usePostResourceV1ResourcesUrl;
|
|
15
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RMapStringObject.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|