mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-12-30 12:05:57 +08:00
发布v2.13.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
13
web/src/api/addons/hgexample/comp/index.ts
Normal file
13
web/src/api/addons/hgexample/comp/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
import type { UploadFileParams } from '@/utils/http/axios/types';
|
||||
|
||||
// 导入Excel
|
||||
export function ImportExcel(params: UploadFileParams) {
|
||||
return http.uploadFile(
|
||||
{
|
||||
url: '/hgexample/comp/importExcel',
|
||||
method: 'post',
|
||||
},
|
||||
params
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
import { useUserStoreWidthOut } from '@/store/modules/user';
|
||||
import type { UploadFileParams } from '@/utils/http/axios/types';
|
||||
|
||||
// 获取验证码
|
||||
export function GetCaptcha() {
|
||||
@@ -23,3 +24,23 @@ export function UploadImage(params) {
|
||||
headers,
|
||||
});
|
||||
}
|
||||
|
||||
// 检查文件分片
|
||||
export function CheckMultipart(params) {
|
||||
return http.request({
|
||||
url: '/upload/checkMultipart',
|
||||
method: 'post',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 分片上传
|
||||
export function UploadPart(params: UploadFileParams) {
|
||||
return http.uploadFile(
|
||||
{
|
||||
url: '/upload/uploadPart',
|
||||
method: 'post',
|
||||
},
|
||||
params
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,13 +23,6 @@ export function Status(params) {
|
||||
params,
|
||||
});
|
||||
}
|
||||
export function Selects(params) {
|
||||
return http.request({
|
||||
url: '/addons/selects',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
export function Build(params) {
|
||||
return http.request({
|
||||
|
||||
Reference in New Issue
Block a user