Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
afanti-open-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-ms
afanti-open-api
Commits
ce6383e2
Commit
ce6383e2
authored
Sep 24, 2024
by
许润龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:活动视频、直播数据详情数据接口
parent
6e6dd378
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
FawActivityDTO.java
...com/afanticar/afantiopenapi/model/dto/FawActivityDTO.java
+5
-3
HongqiActivityBaseVO.java
...fanticar/afantiopenapi/model/vo/HongqiActivityBaseVO.java
+2
-0
FawOpenService.java
...a/com/afanticar/afantiopenapi/service/FawOpenService.java
+8
-8
No files found.
src/main/java/com/afanticar/afantiopenapi/model/dto/FawActivityDTO.java
View file @
ce6383e2
...
...
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.annotation.JsonNaming;
import
lombok.Data
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.Min
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -18,10 +19,11 @@ import java.util.List;
@JSONType
(
naming
=
com
.
alibaba
.
fastjson
.
PropertyNamingStrategy
.
SnakeCase
)
public
class
FawActivityDTO
{
@M
ax
(
value
=
500
,
message
=
"单页数据page_size过大
"
)
private
Integer
pageSize
;
@M
in
(
value
=
1
,
message
=
"当前页最小1
"
)
private
Integer
current
;
private
Integer
pageNum
;
@Max
(
value
=
500
,
message
=
"分页大小最大500"
)
private
Integer
size
;
private
String
publishDateStart
;
...
...
src/main/java/com/afanticar/afantiopenapi/model/vo/HongqiActivityBaseVO.java
View file @
ce6383e2
package
com
.
afanticar
.
afantiopenapi
.
model
.
vo
;
import
com.alibaba.fastjson.annotation.JSONType
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.databind.annotation.JsonNaming
;
import
lombok.Data
;
import
java.util.List
;
...
...
@@ -12,6 +13,7 @@ public class HongqiActivityBaseVO {
private
List
<
ActivityVO
>
activityList
;
@JsonIgnore
private
String
activityInfo
;
}
src/main/java/com/afanticar/afantiopenapi/service/FawOpenService.java
View file @
ce6383e2
...
...
@@ -105,35 +105,35 @@ public class FawOpenService {
public
BasePageVO
<
HongqiActivityAwemeVO
>
douyinActivityAwemes
(
FawActivityDTO
dto
)
{
PageHelper
.
orderBy
(
" publish_time DESC "
);
IPage
<
HongqiActivityAwemeVO
>
page
=
new
Page
<>(
dto
.
get
PageNum
(),
dto
.
getPage
Size
());
IPage
<
HongqiActivityAwemeVO
>
page
=
new
Page
<>(
dto
.
get
Current
(),
dto
.
get
Size
());
IPage
<
HongqiActivityAwemeVO
>
awemePage
=
dwdKuaishouAuthorInfoMapper
.
douyinActivityAwemes
(
page
,
dto
);
BaseUtils
.
parseSeries
(
awemePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
PageNum
(),
(
int
)
awemePage
.
getSize
(),
(
int
)
awemePage
.
getTotal
(),
(
int
)
awemePage
.
getPages
(),
awemePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
Current
(),
(
int
)
awemePage
.
getSize
(),
(
int
)
awemePage
.
getTotal
(),
(
int
)
awemePage
.
getPages
(),
awemePage
.
getRecords
());
}
public
BasePageVO
<
HongqiActivityLiveVO
>
douyinActivityLives
(
FawActivityDTO
dto
)
{
PageHelper
.
orderBy
(
" publish_time DESC "
);
IPage
<
HongqiActivityLiveVO
>
page
=
new
Page
<>(
dto
.
get
PageNum
(),
dto
.
getPage
Size
());
IPage
<
HongqiActivityLiveVO
>
page
=
new
Page
<>(
dto
.
get
Current
(),
dto
.
get
Size
());
IPage
<
HongqiActivityLiveVO
>
livePage
=
dwdKuaishouAuthorInfoMapper
.
douyinActivityLives
(
page
,
dto
);
BaseUtils
.
parseSeries
(
livePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
PageNum
(),
(
int
)
livePage
.
getSize
(),
(
int
)
livePage
.
getTotal
(),
(
int
)
livePage
.
getPages
(),
livePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
Current
(),
(
int
)
livePage
.
getSize
(),
(
int
)
livePage
.
getTotal
(),
(
int
)
livePage
.
getPages
(),
livePage
.
getRecords
());
}
public
BasePageVO
<
HongqiActivityAwemeVO
>
kuaishouActivityAwemes
(
FawActivityDTO
dto
)
{
PageHelper
.
orderBy
(
" publish_time DESC "
);
IPage
<
HongqiActivityAwemeVO
>
page
=
new
Page
<>(
dto
.
get
PageNum
(),
dto
.
getPage
Size
());
IPage
<
HongqiActivityAwemeVO
>
page
=
new
Page
<>(
dto
.
get
Current
(),
dto
.
get
Size
());
IPage
<
HongqiActivityAwemeVO
>
awemePage
=
dwdKuaishouAuthorInfoMapper
.
kuaishouActivityAwemes
(
page
,
dto
);
BaseUtils
.
parseSeries
(
awemePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
PageNum
(),
(
int
)
awemePage
.
getSize
(),
(
int
)
awemePage
.
getTotal
(),
(
int
)
awemePage
.
getPages
(),
awemePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
Current
(),
(
int
)
awemePage
.
getSize
(),
(
int
)
awemePage
.
getTotal
(),
(
int
)
awemePage
.
getPages
(),
awemePage
.
getRecords
());
}
public
BasePageVO
<
HongqiActivityLiveVO
>
kuaishouActivityLives
(
FawActivityDTO
dto
)
{
PageHelper
.
orderBy
(
" publish_time DESC "
);
IPage
<
HongqiActivityLiveVO
>
page
=
new
Page
<>(
dto
.
get
PageNum
(),
dto
.
getPage
Size
());
IPage
<
HongqiActivityLiveVO
>
page
=
new
Page
<>(
dto
.
get
Current
(),
dto
.
get
Size
());
IPage
<
HongqiActivityLiveVO
>
livePage
=
dwdKuaishouAuthorInfoMapper
.
kuaishouActivityLives
(
page
,
dto
);
BaseUtils
.
parseSeries
(
livePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
PageNum
(),
(
int
)
livePage
.
getSize
(),
(
int
)
livePage
.
getTotal
(),
(
int
)
livePage
.
getPages
(),
livePage
.
getRecords
());
return
BasePageVO
.
restPage
(
dto
.
get
Current
(),
(
int
)
livePage
.
getSize
(),
(
int
)
livePage
.
getTotal
(),
(
int
)
livePage
.
getPages
(),
livePage
.
getRecords
());
}
}
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