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
da0e6fa9
Commit
da0e6fa9
authored
Jun 18, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert
parent
28642621
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
68 deletions
+0
-68
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+0
-1
ThemeConvert.java
.../src/main/java/com/tanpu/community/util/ThemeConvert.java
+0
-45
TopicConverter.java
...rc/main/java/com/tanpu/community/util/TopicConverter.java
+0
-22
No files found.
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
da0e6fa9
...
...
@@ -5,7 +5,6 @@ import com.tanpu.community.api.constants.BlockTypeEnum;
import
com.tanpu.community.api.constants.CollectionTypeEnum
;
import
com.tanpu.community.api.constants.CommentTypeEnum
;
import
com.tanpu.community.util.ConvertUtil
;
import
com.tanpu.community.util.ThemeConvert
;
import
com.tanpu.community.dao.entity.community.BlackListEntity
;
import
com.tanpu.community.dao.entity.community.CommentEntity
;
import
com.tanpu.community.dao.entity.community.FansRelEntity
;
...
...
community-service/src/main/java/com/tanpu/community/util/ThemeConvert.java
deleted
100644 → 0
View file @
28642621
package
com
.
tanpu
.
community
.
util
;
import
com.tanpu.community.api.beans.ThemeDTO
;
import
com.tanpu.community.dao.entity.community.ThemeEntity
;
import
org.springframework.beans.BeanUtils
;
public
class
ThemeConvert
{
public
static
ThemeDTO
convertToDTO
(
ThemeEntity
themeEntity
){
ThemeDTO
themeDTO
=
new
ThemeDTO
();
BeanUtils
.
copyProperties
(
themeEntity
,
themeDTO
);
themeDTO
.
setId
(
themeEntity
.
getId
());
themeDTO
.
setTitle
(
themeEntity
.
getTitle
());
themeDTO
.
setTopicId
(
themeEntity
.
getTopicId
());
themeDTO
.
setContent
(
themeEntity
.
getContent
());
themeDTO
.
setThemeType
(
themeEntity
.
getThemeType
());
themeDTO
.
setAttachment
(
themeEntity
.
getAttachment
());
themeDTO
.
setAttachType
(
themeEntity
.
getAttachType
());
themeDTO
.
setFormerThemeId
(
themeEntity
.
getFormerThemeId
());
themeDTO
.
setAuthorId
(
themeEntity
.
getAuthorId
());
themeDTO
.
setCreateBy
(
themeEntity
.
getCreateBy
());
themeDTO
.
setUpdateBy
(
themeEntity
.
getUpdateBy
());
themeDTO
.
setCreateTime
(
themeEntity
.
getCreateTime
());
themeDTO
.
setUpdateBy
(
themeEntity
.
getUpdateBy
());
return
themeDTO
;
}
public
static
ThemeEntity
convertToEntity
(
ThemeDTO
themeDTO
){
ThemeEntity
themeEntity
=
new
ThemeEntity
();
themeEntity
.
setTitle
(
themeDTO
.
getTitle
());
themeEntity
.
setTopicId
(
themeDTO
.
getTopicId
());
themeEntity
.
setContent
(
themeDTO
.
getContent
());
themeEntity
.
setThemeType
(
themeDTO
.
getThemeType
());
themeEntity
.
setAttachment
(
themeDTO
.
getAttachment
());
themeEntity
.
setAttachType
(
themeDTO
.
getAttachType
());
themeEntity
.
setFormerThemeId
(
themeDTO
.
getFormerThemeId
());
themeEntity
.
setAuthorId
(
themeDTO
.
getAuthorId
());
themeEntity
.
setCreateBy
(
themeDTO
.
getCreateBy
());
themeEntity
.
setUpdateBy
(
themeDTO
.
getUpdateBy
());
themeEntity
.
setCreateTime
(
themeDTO
.
getCreateTime
());
themeEntity
.
setUpdateBy
(
themeDTO
.
getUpdateBy
());
return
themeEntity
;
}
}
community-service/src/main/java/com/tanpu/community/util/TopicConverter.java
deleted
100644 → 0
View file @
28642621
package
com
.
tanpu
.
community
.
util
;
import
com.tanpu.community.api.beans.TopicDTO
;
import
com.tanpu.community.dao.entity.community.TopicEntity
;
public
class
TopicConverter
{
public
static
TopicDTO
convertToDTO
(
TopicEntity
topicEntity
){
TopicDTO
topicDTO
=
new
TopicDTO
();
topicDTO
.
setTopicTitle
(
topicEntity
.
getTopicTitle
());
topicDTO
.
setId
(
topicEntity
.
getId
());
topicDTO
.
setIsTop
(
topicEntity
.
getIsTop
());
topicDTO
.
setIsConceal
(
topicEntity
.
getIsConceal
());
topicDTO
.
setCreateBy
(
topicEntity
.
getCreateBy
());
topicDTO
.
setCreateTime
(
topicEntity
.
getCreateTime
());
topicDTO
.
setUpdateTime
(
topicEntity
.
getUpdateTime
());
topicDTO
.
setUpdateBy
(
topicEntity
.
getUpdateBy
());
topicDTO
.
setDeleteTag
(
topicEntity
.
getDeleteTag
());
return
topicDTO
;
}
}
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