Commit 3c8f46e0 authored by 刘基明's avatar 刘基明

同步专栏 rename

parent e5626607
...@@ -206,7 +206,7 @@ public class ThemeManager { ...@@ -206,7 +206,7 @@ public class ThemeManager {
themeService.insertTheme(themeEntity); themeService.insertTheme(themeEntity);
// 同步到专栏 // 同步到专栏
if (1 == req.getSyncToNewComm()) { if (1 == req.getSyncToNewComm()) {
convertToNewsFeed(req, themeEntity.getThemeId(), userId); synchronizeToNewsFeed(req, themeEntity.getThemeId(), userId);
} }
} else { } else {
...@@ -234,7 +234,7 @@ public class ThemeManager { ...@@ -234,7 +234,7 @@ public class ThemeManager {
return CreateThemeResp.builder().themeId(themeEntity.getThemeId()).build(); return CreateThemeResp.builder().themeId(themeEntity.getThemeId()).build();
} }
private void convertToNewsFeed(CreateThemeReq req, String themeId, String userId) { private void synchronizeToNewsFeed(CreateThemeReq req, String themeId, String userId) {
if (!ThemeTypeEnum.DISCUSSION.getCode().equals(req.getThemeType())) { if (!ThemeTypeEnum.DISCUSSION.getCode().equals(req.getThemeType())) {
// 只有讨论类型才能同步专栏 // 只有讨论类型才能同步专栏
throw new BizException("长文类型无法同步专栏"); throw new BizException("长文类型无法同步专栏");
...@@ -263,10 +263,9 @@ public class ThemeManager { ...@@ -263,10 +263,9 @@ public class ThemeManager {
} }
} }
newsFeedReq.setNewsFeedResList(feedList); newsFeedReq.setNewsFeedResList(feedList);
CommonResp restResponse = feignClientForCommunity.saveNewsFeed4NewComm(newsFeedReq); CommonResp response = feignClientForCommunity.saveNewsFeed4NewComm(newsFeedReq);
if (restResponse.isNotSuccess() || !ObjectUtils.anyNotNull(restResponse.getData())) { if (response.isNotSuccess() || !ObjectUtils.anyNotNull(response.getData())) {
throw new BizException("同步圈子调用失败"); throw new BizException("同步圈子调用失败");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment