💥 feat(模块): 添加了个很棒的功能
This commit is contained in:
@ -11,3 +11,13 @@ export async function uploadFile(options: { file: File; type: 'VIDEO' | 'IMAGE'
|
||||
data: options,
|
||||
});
|
||||
}
|
||||
|
||||
export async function uploadFileWx(options: { file: File; id?: number }): Promise<string> {
|
||||
return request<string>(AdminAPI.UPLOAD_FILE_WX, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
data: options,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user