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:
Chaos
2025-11-14 23:22:11 +08:00
parent 2f946ec596
commit da1bdafbb2
9 changed files with 148 additions and 8 deletions

View File

@@ -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 "";
}
}