Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
safe-campus-bbs
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
万成波
safe-campus-bbs
Commits
8cdfe588
Commit
8cdfe588
authored
Sep 09, 2025
by
万成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页查询
parent
0da34a14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
safe-campus-moment/src/main/java/com/tangguo/controller/mobile/MBbsMomentController.java
...a/com/tangguo/controller/mobile/MBbsMomentController.java
+2
-2
safe-campus-moment/src/main/java/com/tangguo/controller/mobile/MBbsTopicController.java
...va/com/tangguo/controller/mobile/MBbsTopicController.java
+1
-1
safe-campus-moment/src/main/java/com/tangguo/controller/mobile/MBbsUserController.java
...ava/com/tangguo/controller/mobile/MBbsUserController.java
+1
-1
No files found.
safe-campus-moment/src/main/java/com/tangguo/controller/mobile/MBbsMomentController.java
View file @
8cdfe588
...
@@ -51,7 +51,7 @@ public class MBbsMomentController {
...
@@ -51,7 +51,7 @@ public class MBbsMomentController {
*/
*/
@GetMapping
(
"/moments"
)
@GetMapping
(
"/moments"
)
public
TableDataInfo
getMoments
(
QueryMomentBO
bo
)
{
public
TableDataInfo
getMoments
(
QueryMomentBO
bo
)
{
PageUtils
.
clear
Page
();
PageUtils
.
start
Page
();
List
<
BbsMomentListVO
>
moments
=
this
.
momentService
.
getMoments
(
bo
);
List
<
BbsMomentListVO
>
moments
=
this
.
momentService
.
getMoments
(
bo
);
return
TableDataInfo
.
getDataTable
(
moments
);
return
TableDataInfo
.
getDataTable
(
moments
);
}
}
...
@@ -166,7 +166,7 @@ public class MBbsMomentController {
...
@@ -166,7 +166,7 @@ public class MBbsMomentController {
@GetMapping
(
"/comments"
)
@GetMapping
(
"/comments"
)
public
TableDataInfo
getMomentComments
(
@RequestParam
Long
momentId
)
{
public
TableDataInfo
getMomentComments
(
@RequestParam
Long
momentId
)
{
String
username
=
SecurityUtils
.
getUsername
();
String
username
=
SecurityUtils
.
getUsername
();
PageUtils
.
clear
Page
();
PageUtils
.
start
Page
();
List
<
BbsCommentDetailVO
>
dbComments
=
this
.
momentCommentService
.
getMomentComments
(
momentId
,
username
);
List
<
BbsCommentDetailVO
>
dbComments
=
this
.
momentCommentService
.
getMomentComments
(
momentId
,
username
);
return
TableDataInfo
.
getDataTable
(
dbComments
);
return
TableDataInfo
.
getDataTable
(
dbComments
);
}
}
...
...
safe-campus-moment/src/main/java/com/tangguo/controller/mobile/MBbsTopicController.java
View file @
8cdfe588
...
@@ -80,7 +80,7 @@ public class MBbsTopicController {
...
@@ -80,7 +80,7 @@ public class MBbsTopicController {
*/
*/
@GetMapping
(
"/moments"
)
@GetMapping
(
"/moments"
)
public
TableDataInfo
getTopicMoments
(
QueryMomentBO
bo
)
{
public
TableDataInfo
getTopicMoments
(
QueryMomentBO
bo
)
{
PageUtils
.
clear
Page
();
PageUtils
.
start
Page
();
List
<
BbsMomentListVO
>
dbMoments
=
this
.
momentService
.
getMoments
(
bo
);
List
<
BbsMomentListVO
>
dbMoments
=
this
.
momentService
.
getMoments
(
bo
);
return
TableDataInfo
.
getDataTable
(
dbMoments
);
return
TableDataInfo
.
getDataTable
(
dbMoments
);
}
}
...
...
safe-campus-moment/src/main/java/com/tangguo/controller/mobile/MBbsUserController.java
View file @
8cdfe588
...
@@ -49,7 +49,7 @@ public class MBbsUserController {
...
@@ -49,7 +49,7 @@ public class MBbsUserController {
@GetMapping
(
"/moments"
)
@GetMapping
(
"/moments"
)
public
TableDataInfo
getUserMoments
(
String
content
)
{
public
TableDataInfo
getUserMoments
(
String
content
)
{
String
username
=
SecurityUtils
.
getUsername
();
String
username
=
SecurityUtils
.
getUsername
();
PageUtils
.
clear
Page
();
PageUtils
.
start
Page
();
List
<
BbsMomentListVO
>
moments
=
this
.
momentService
.
getUserMoments
(
username
,
content
);
List
<
BbsMomentListVO
>
moments
=
this
.
momentService
.
getUserMoments
(
username
,
content
);
return
TableDataInfo
.
getDataTable
(
moments
);
return
TableDataInfo
.
getDataTable
(
moments
);
}
}
...
...
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