feat(image): add image upload functionality
- Created FileUploadResponse DTO for image upload responses - Implemented ImageController with upload endpoint - Defined ImageService interface for image operations - Added ImageServiceImpl with placeholder upload logic - Updated pom.xml to include chaos_api_domain dependency
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
<artifactId>chaos_api_domain</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package cn.nopj.chaos_api.service;
|
||||
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
public interface ImageService {
|
||||
|
||||
/**
|
||||
* 上传图片
|
||||
* @param fileName 文件名
|
||||
* @param content 文件内容
|
||||
* @return 文件路径
|
||||
*/
|
||||
String uploadImage(String fileName, InputStream content);
|
||||
}
|
||||
Reference in New Issue
Block a user