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
f1ee377a
Commit
f1ee377a
authored
Jul 08, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口调整
parent
5f86daad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
ThemeQo.java
...c/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
+2
-1
CreateThemeReq.java
...m/tanpu/community/api/beans/req/theme/CreateThemeReq.java
+5
-4
ThemeContentReq.java
.../tanpu/community/api/beans/req/theme/ThemeContentReq.java
+0
-2
ThemeListReq.java
...com/tanpu/community/api/beans/req/theme/ThemeListReq.java
+2
-0
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
View file @
f1ee377a
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@Data
@Data
@ApiModel
(
"主题信息流对象"
)
@ApiModel
(
"主题信息流对象"
)
...
@@ -26,7 +27,7 @@ public class ThemeQo {
...
@@ -26,7 +27,7 @@ public class ThemeQo {
private
ThemeContentQo
content
;
private
ThemeContentQo
content
;
@ApiModelProperty
(
value
=
"转发内容"
)
@ApiModelProperty
(
value
=
"转发内容"
)
private
ThemeContentQo
forwardContent
;
private
List
<
ThemeContentQo
>
forwardContent
;
@ApiModelProperty
(
value
=
"作者id"
)
@ApiModelProperty
(
value
=
"作者id"
)
private
String
authorId
;
private
String
authorId
;
...
...
community-api/src/main/java/com/tanpu/community/api/beans/req/theme/CreateThemeReq.java
View file @
f1ee377a
package
com
.
tanpu
.
community
.
api
.
beans
.
req
.
theme
;
package
com
.
tanpu
.
community
.
api
.
beans
.
req
.
theme
;
import
com.tanpu.community.api.beans.ImagesDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotEmpty
;
import
java.util.
Map
;
import
java.util.
List
;
@Data
@Data
public
class
CreateThemeReq
{
public
class
CreateThemeReq
{
...
@@ -22,7 +23,7 @@ public class CreateThemeReq {
...
@@ -22,7 +23,7 @@ public class CreateThemeReq {
@NotEmpty
(
message
=
"内容不能为空"
)
@NotEmpty
(
message
=
"内容不能为空"
)
@ApiModelProperty
(
value
=
"文本内容"
)
@ApiModelProperty
(
value
=
"文本内容"
)
private
ThemeContentReq
content
;
private
List
<
ThemeContentReq
>
content
;
@ApiModelProperty
(
value
=
"所属的话题id"
)
@ApiModelProperty
(
value
=
"所属的话题id"
)
private
String
topicId
;
private
String
topicId
;
...
@@ -30,7 +31,7 @@ public class CreateThemeReq {
...
@@ -30,7 +31,7 @@ public class CreateThemeReq {
@ApiModelProperty
(
value
=
"被转发的主题,不是转发则为空"
)
@ApiModelProperty
(
value
=
"被转发的主题,不是转发则为空"
)
private
String
formerThemeId
;
private
String
formerThemeId
;
@ApiModelProperty
(
"附件,key是类型:1:产品 2:直播 3:短视频 4:课程,value是对应id,(注:course需要用逗号拼接‘courseId,package_id’)"
)
private
Map
<
String
,
String
>
attachment
;
@ApiModelProperty
(
value
=
"讨论中的图片列表"
)
private
List
<
ImagesDTO
>
fileList
;
}
}
community-api/src/main/java/com/tanpu/community/api/beans/req/theme/ThemeContentReq.java
View file @
f1ee377a
...
@@ -17,6 +17,4 @@ public class ThemeContentReq {
...
@@ -17,6 +17,4 @@ public class ThemeContentReq {
@ApiModelProperty
(
value
=
"文本的值是内容,附件的值为id"
)
@ApiModelProperty
(
value
=
"文本的值是内容,附件的值为id"
)
private
String
value
;
private
String
value
;
@ApiModelProperty
(
value
=
"图片列表,类型为6时此项有值"
)
private
List
<
ImagesDTO
>
images
;
}
}
community-api/src/main/java/com/tanpu/community/api/beans/req/theme/ThemeListReq.java
View file @
f1ee377a
...
@@ -10,9 +10,11 @@ import javax.validation.constraints.NotEmpty;
...
@@ -10,9 +10,11 @@ import javax.validation.constraints.NotEmpty;
public
class
ThemeListReq
{
public
class
ThemeListReq
{
@ApiModelProperty
(
value
=
"当前浏览的最后一个themeId,可以为空"
)
@ApiModelProperty
(
value
=
"当前浏览的最后一个themeId,可以为空"
)
private
String
lastId
;
private
String
lastId
;
@NotEmpty
(
message
=
"PageSize不能为空"
)
@NotEmpty
(
message
=
"PageSize不能为空"
)
@ApiModelProperty
(
value
=
"页面大小"
)
@ApiModelProperty
(
value
=
"页面大小"
)
private
Integer
PageSize
;
private
Integer
PageSize
;
@NotEmpty
(
message
=
"主题类型不能为空"
)
@NotEmpty
(
message
=
"主题类型不能为空"
)
@ApiModelProperty
(
value
=
"类型,1:推荐 2:关注"
)
@ApiModelProperty
(
value
=
"类型,1:推荐 2:关注"
)
private
Integer
type
;
private
Integer
type
;
...
...
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