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:
@@ -0,0 +1,17 @@
|
||||
package cn.nopj.chaos_api.service.impl;
|
||||
|
||||
import cn.nopj.chaos_api.service.ImageService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class ImageServiceImpl implements ImageService {
|
||||
@Override
|
||||
public String uploadImage(String fileName, InputStream content) {
|
||||
//todo 完成上传图片功能
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user