提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.common.pojo; |
H |
2 |
|
|
3 |
import lombok.AllArgsConstructor; |
|
4 |
import lombok.Data; |
|
5 |
import lombok.NoArgsConstructor; |
|
6 |
|
|
7 |
import java.io.Serializable; |
|
8 |
|
|
9 |
/** |
|
10 |
* 排序字段 DTO |
|
11 |
* |
|
12 |
* 类名加了 ing 的原因是,避免和 ES SortField 重名。 |
|
13 |
*/ |
|
14 |
@Data |
|
15 |
@NoArgsConstructor |
|
16 |
@AllArgsConstructor |
|
17 |
public class SortingField implements Serializable { |
|
18 |
|
|
19 |
/** |
|
20 |
* 顺序 - 升序 |
|
21 |
*/ |
|
22 |
public static final String ORDER_ASC = "asc"; |
|
23 |
/** |
|
24 |
* 顺序 - 降序 |
|
25 |
*/ |
|
26 |
public static final String ORDER_DESC = "desc"; |
|
27 |
|
|
28 |
/** |
|
29 |
* 字段 |
|
30 |
*/ |
|
31 |
private String field; |
|
32 |
/** |
|
33 |
* 顺序 |
|
34 |
*/ |
|
35 |
private String order; |
|
36 |
|
|
37 |
} |