Commit 99a46b20 authored by 刘基明's avatar 刘基明

话题接口修改

parent 0bf55beb
...@@ -8,7 +8,7 @@ import lombok.Data; ...@@ -8,7 +8,7 @@ import lombok.Data;
@ApiModel(value = "主题内容") @ApiModel(value = "主题内容")
public class ThemeContentReq { public class ThemeContentReq {
@ApiModelProperty(value = "类型,0:文本,1:产品 2:直播 3:短视频 4:课程,5:图片 6:图片列表(讨论)") @ApiModelProperty(value = "RelTypeEnum类型,8:文本,88:产品 3:直播 3:短视频 4:课程,5:图片 6:图片列表(讨论)")
private Integer type; private Integer type;
@ApiModelProperty(value = "文本的值是内容,附件的值为id") @ApiModelProperty(value = "文本的值是内容,附件的值为id")
......
...@@ -91,15 +91,23 @@ public class ThemeManager { ...@@ -91,15 +91,23 @@ public class ThemeManager {
public void publishTheme(CreateThemeReq req, String userId) { public void publishTheme(CreateThemeReq req, String userId) {
//TODO 敏感词过滤
ThemeEntity themeEntity = new ThemeEntity(); ThemeEntity themeEntity = new ThemeEntity();
BeanUtils.copyProperties(req, themeEntity); BeanUtils.copyProperties(req, themeEntity);
themeEntity.setAuthorId(userId); themeEntity.setAuthorId(userId);
themeService.insertTheme(themeEntity); themeService.insertTheme(themeEntity);
List<ThemeAttachmentEntity> themeAttachments = ConvertUtil.themeReqToAttachmentList(req, themeEntity.getThemeId()); List<ThemeAttachmentEntity> themeAttachments = ConvertUtil.themeReqToAttachmentList(req, themeEntity.getThemeId());
//TODO 敏感词过滤
themeAttachmentService.insertList(themeAttachments); themeAttachmentService.insertList(themeAttachments);
} }
// 返回推荐主题文章 // 返回推荐主题文章
......
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