Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-cloud-core
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-cloud-core
Commits
e771de33
Commit
e771de33
authored
Sep 18, 2025
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共枚举-排序字段
parent
09341f44
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
yd-common/pom.xml
+6
-0
yd-common/src/main/java/com/yd/common/constant/CommonConstant.java
+19
-0
yd-common/src/main/java/com/yd/common/dto/PageDto.java
+14
-0
No files found.
yd-common/pom.xml
View file @
e771de33
...
@@ -14,6 +14,12 @@
...
@@ -14,6 +14,12 @@
<description>
公共组件模块
</description>
<description>
公共组件模块
</description>
<dependencies>
<dependencies>
<!-- knife4j -->
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
knife4j-openapi3-spring-boot-starter
</artifactId>
<version>
4.3.0
</version>
</dependency>
<!-- 测试 -->
<!-- 测试 -->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
yd-common/src/main/java/com/yd/common/constant/CommonConstant.java
0 → 100644
View file @
e771de33
package
com
.
yd
.
common
.
constant
;
/**
* 通用常量
*
*/
public
interface
CommonConstant
{
/**
* 升序
*/
String
SORT_ORDER_ASC
=
"ascend"
;
/**
* 降序
*/
String
SORT_ORDER_DESC
=
" descend"
;
}
yd-common/src/main/java/com/yd/common/dto/PageDto.java
View file @
e771de33
package
com
.
yd
.
common
.
dto
;
package
com
.
yd
.
common
.
dto
;
import
com.yd.common.constant.CommonConstant
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
@Data
@Data
...
@@ -8,4 +10,16 @@ public class PageDto {
...
@@ -8,4 +10,16 @@ public class PageDto {
private
Integer
pageNo
=
1
;
private
Integer
pageNo
=
1
;
private
Integer
pageSize
=
10
;
private
Integer
pageSize
=
10
;
/**
* 排序字段
*/
@Schema
(
description
=
"排序字段"
)
private
String
sortField
;
/**
* 排序顺序(默认降序)
*/
@Schema
(
description
=
"排序顺序(默认降序, ascend-升序/descend-降序)"
)
private
String
sortOrder
=
CommonConstant
.
SORT_ORDER_DESC
;
}
}
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