TASK:模块化;
This commit is contained in:
@@ -1879,10 +1879,13 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
}
|
||||
|
||||
@Override
|
||||
public String brandLogoUpload(MultipartFile file) {
|
||||
public BrandLogoUploadVO brandLogoUpload(MultipartFile file) {
|
||||
BrandLogoUploadVO vo = new BrandLogoUploadVO();
|
||||
AuthPrincipalVo userHolder = UserContext.getUserHolder();
|
||||
String path = userHolder.getId().toString() + "/brandLogo";
|
||||
return minioUtil.upload("aida-users",path,file);
|
||||
vo.setBrandLogo(minioUtil.upload("aida-users",path,file));
|
||||
vo.setMinioUrl(minioUtil.getPreSignedUrl(vo.getBrandLogo(), 24 * 60));
|
||||
return vo;
|
||||
// return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user