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
1a29ae07
Commit
1a29ae07
authored
Jul 12, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品接口修改
parent
0413dd68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
ZhiboListResp.java
...com/tanpu/community/api/beans/vo/feign/ZhiboListResp.java
+3
-3
FeignbackForZhibo.java
...va/com/tanpu/community/feign/zhibo/FeignbackForZhibo.java
+3
-3
ProductService.java
...main/java/com/tanpu/community/service/ProductService.java
+2
-2
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/vo/feign/ZhiboListResp.java
View file @
1a29ae07
...
...
@@ -2,14 +2,14 @@ package com.tanpu.community.api.beans.vo.feign;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.ToString
;
import
lombok.*
;
@ApiModel
(
"直播列表返回结果集合"
)
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public
class
ZhiboListResp
{
@ApiModelProperty
(
value
=
"直播间ID"
)
private
String
id
;
...
...
community-service/src/main/java/com/tanpu/community/feign/zhibo/FeignbackForZhibo.java
View file @
1a29ae07
...
...
@@ -21,21 +21,21 @@ public class FeignbackForZhibo implements FallbackFactory<FeignClientForZhibo> {
public
CommonResp
queryZhiboDetail
(
String
roomId
)
{
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"FeignClientForZhiboTheme.queryZhiboDetail探普学堂-查询直播id:{}"
,
roomId
);
return
null
;
return
CommonResp
.
error
()
;
}
@Override
public
CommonResp
<
List
<
ZhiboDetailVO
>>
getZhiBoByIds
(
List
<
String
>
ids
)
{
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"FeignClientForZhiboTheme.queryZhiboDetail探普学堂-查询直播ids:{}"
,
ids
);
return
null
;
return
CommonResp
.
error
()
;
}
@Override
public
CommonResp
<
List
<
ZhiboListResp
>>
simpleList
(
List
<
String
>
idList
)
{
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"FeignClientForZhiboTheme.simpleList探普学堂-查询直播ids:{}"
,
idList
);
return
null
;
return
CommonResp
.
error
()
;
}
...
...
community-service/src/main/java/com/tanpu/community/service/ProductService.java
View file @
1a29ae07
...
...
@@ -112,7 +112,7 @@ public class ProductService {
if
(
themeQos
!=
null
)
{
themeQos
.
stream
().
forEach
(
o
->
o
.
getContent
().
stream
().
forEach
(
c
->
{
if
(
c
.
getType
().
equals
(
RelTypeEnum
.
LIVE
.
type
))
{
zhiboIds
.
add
(
c
.
get
Remark
());
zhiboIds
.
add
(
c
.
get
Value
());
}
else
if
(
c
.
getType
().
equals
(
RelTypeEnum
.
SHORT_VIDEO
.
type
))
{
shortVideoIds
.
add
(
c
.
getValue
());
}
else
if
(
c
.
getType
().
equals
(
RelTypeEnum
.
FUND
.
type
))
{
...
...
@@ -289,7 +289,7 @@ public class ProductService {
for
(
ThemeContentQo
themeContent
:
themeQo
.
getContent
())
{
if
(
themeContent
.
getType
().
equals
(
RelTypeEnum
.
LIVE
.
type
))
{
if
(
zhiboMap
.
containsKey
(
themeContent
.
getValue
()))
{
ZhiboListResp
zhibo
=
zhiboMap
.
get
(
themeContent
.
get
Remark
());
ZhiboListResp
zhibo
=
zhiboMap
.
get
(
themeContent
.
get
Value
());
themeContent
.
setDetail
(
AttachmentDetailVo
.
builder
().
zhibo
(
zhibo
).
build
());
}
}
else
if
(
themeContent
.
getType
().
equals
(
RelTypeEnum
.
SHORT_VIDEO
.
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