客户照片上传功能
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
package com.rj.service;
|
||||
|
||||
import com.rj.entity.CustomerManagement;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.rj.dto.CustomerPhotoPreviewResult;
|
||||
import com.rj.dto.CustomerPhotoUploadResult;
|
||||
import com.rj.entity.CustomerManagement;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -13,4 +16,17 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
*/
|
||||
public interface ICustomerManagementService extends IService<CustomerManagement> {
|
||||
|
||||
/**
|
||||
* 校验客户存在后,将照片上传至 MinIO,返回访问 URL。
|
||||
*/
|
||||
CustomerPhotoUploadResult uploadCustomerPhoto(String id, MultipartFile file);
|
||||
|
||||
/**
|
||||
* 根据 MinIO URL 或客户 ID + 照片类型解析对象并打开输入流,供预览下载。
|
||||
*
|
||||
* @param url 与上传接口返回一致的 MinIO 访问 URL,可为空
|
||||
* @param id 客户 ID,与 photoType 联用时可空
|
||||
* @param photoType front / side / life,与 id 联用时可空
|
||||
*/
|
||||
CustomerPhotoPreviewResult openCustomerPhotoPreview(String url, String id, String photoType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user