This commit is contained in:
2025-11-20 00:21:22 +08:00
parent c9c2493671
commit d22b29f45d
3 changed files with 96 additions and 9 deletions

View File

@@ -2,40 +2,44 @@
* @Author: Kane Wang <wangkane@qq.com>
* @Date: 2025-10-31 17:33:13
* @LastEditors: Kane Wang
* @LastModified: 2025-10-31 17:36:03
* @FilePath: src/main/java/com/cpic/xim/web/controllers/fileupload/UploadedFile.java
* @LastModified: 2025-11-19 21:16:07
* @FilePath: src/main/java/com/cpic/xim/utils/files/UploadedFile.java
* @Description:
*
* Copyright (c) 2025 by Kane All rights reserved
*/
package com.cpic.xim.utils.files;
import com.fasterxml.jackson.annotation.JsonProperty;
public class UploadedFile
{
@JsonProperty( "fileName" )
private String fileName;
@JsonProperty( "localFilePath" )
private String localFilePath;
public String getFileName()
{
return fileName;
}
public void setFileName( String fileName )
{
this.fileName = fileName;
}
public String getLocalFilePath()
{
return localFilePath;
}
public void setLocalFilePath( String localFilePath )
{
this.localFilePath = localFilePath;
}
public UploadedFile( String fileName, String localFilePath )
{
this.fileName = fileName;

View File

@@ -0,0 +1,20 @@
/**
* @author Kane Wang <wangkane@qq.com>
* @date 2025-11-19 21:08:58
* Copyright © CPIC All rights reserved
*/
interface UploadFileResponse
{
success: boolean;
message: string;
fileList: UploadedFile[] | null;
}
interface UploadedFile
{
fileName: string;
localFilePath: string;
}
export { type UploadFileResponse, type UploadedFile };