update 优化 用户头像 改为存储 ossId 使用转换模块转为 url 展示

This commit is contained in:
疯狂的狮子li
2023-02-05 12:15:43 +08:00
parent 08565363a9
commit 07590f30f6
9 changed files with 21 additions and 16 deletions

View File

@ -22,6 +22,8 @@ public class OssUrlTranslationImpl implements TranslationInterface {
public String translation(Object key, String other) {
if (key instanceof String ids) {
return ossService.selectUrlByIds(ids);
} else if (key instanceof Long id) {
return ossService.selectUrlByIds(id.toString());
}
return null;
}