mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-22 15:18:11 +00:00
增加了断点续传插件版 保留原始版本供学习原理使用
This commit is contained in:
36
web/src/api/simpleUploader.js
Normal file
36
web/src/api/simpleUploader.js
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
import service from '@/utils/request'
|
||||
|
||||
// @Tags SimpleUploader
|
||||
// @Summary 断点续传插件版示例
|
||||
// @Security ApiKeyAuth
|
||||
|
||||
// @Produce application/json
|
||||
// @Param params md5 get "测试文件是否已经存在和判断已经上传过的切片"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
|
||||
// @Router /simpleUploader/checkFileMd5 [get]
|
||||
export const checkFileMd5 = (params) => {
|
||||
return service({
|
||||
url: "/simpleUploader/checkFileMd5",
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// @Tags SimpleUploader
|
||||
// @Summary 合并文件
|
||||
// @Security ApiKeyAuth
|
||||
// @Produce application/json
|
||||
// @Param params md5 get "合并文件"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"合并成功"}"
|
||||
// @Router /simpleUploader/mergeFileMd5 [get]
|
||||
export const mergeFileMd5 = (params) => {
|
||||
return service({
|
||||
url: "/simpleUploader/mergeFileMd5",
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user