13 changed files with 225 additions and 57 deletions
@ -1,19 +0,0 @@ |
|||
package com.elink.esua.epdc.dto.topic; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
@Data |
|||
public class TopicListDTO implements Serializable { |
|||
|
|||
|
|||
private Integer pageIndex; |
|||
|
|||
private Integer pageSize; |
|||
|
|||
private String timestamp; |
|||
|
|||
private String id; |
|||
|
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.elink.esua.epdc.dto.topic.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class TopicListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 2286962006082337344L; |
|||
|
|||
/** |
|||
* 社群ID |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private Long gridId; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
@Min(value = 1, message = "页码必须大于0") |
|||
private Integer pageIndex; |
|||
|
|||
/** |
|||
* 页容量,默认20页 |
|||
*/ |
|||
@Min(value = 1, message = "每页条数必须大于必须大于0") |
|||
private Integer pageSize; |
|||
|
|||
/** |
|||
* 第一页查询发起时的时间 |
|||
*/ |
|||
private String timestamp; |
|||
|
|||
/** |
|||
* 只查询半年内的数据 |
|||
*/ |
|||
private Date someMonthsAgo; |
|||
|
|||
} |
Loading…
Reference in new issue