Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
99a46b20
Commit
99a46b20
authored
Jul 09, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
话题接口修改
parent
0bf55beb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ThemeContentReq.java
.../tanpu/community/api/beans/req/theme/ThemeContentReq.java
+1
-1
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+9
-1
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/req/theme/ThemeContentReq.java
View file @
99a46b20
...
...
@@ -8,7 +8,7 @@ import lombok.Data;
@ApiModel
(
value
=
"主题内容"
)
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
;
@ApiModelProperty
(
value
=
"文本的值是内容,附件的值为id"
)
...
...
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
99a46b20
...
...
@@ -91,15 +91,23 @@ public class ThemeManager {
public
void
publishTheme
(
CreateThemeReq
req
,
String
userId
)
{
//TODO 敏感词过滤
ThemeEntity
themeEntity
=
new
ThemeEntity
();
BeanUtils
.
copyProperties
(
req
,
themeEntity
);
themeEntity
.
setAuthorId
(
userId
);
themeService
.
insertTheme
(
themeEntity
);
List
<
ThemeAttachmentEntity
>
themeAttachments
=
ConvertUtil
.
themeReqToAttachmentList
(
req
,
themeEntity
.
getThemeId
());
//TODO 敏感词过滤
themeAttachmentService
.
insertList
(
themeAttachments
);
}
// 返回推荐主题文章
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment