8 changed files with 267 additions and 1 deletions
@ -0,0 +1,36 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/12/8 3:29 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class ResiBuzzFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 7477325476668438447L; |
|||
|
|||
public interface ResiBuzzForm{} |
|||
|
|||
private String orgId; |
|||
|
|||
private String orgType; |
|||
|
|||
/** |
|||
* 表决中:voting 已转项目:shift_project 已关闭:closed,全部:all |
|||
*/ |
|||
@NotBlank(message = "status不能为空",groups = ResiBuzzForm.class) |
|||
private String status; |
|||
|
|||
@NotNull(message = "pageSize不能为空",groups = ResiBuzzForm.class) |
|||
private Integer pageSize; |
|||
|
|||
@NotNull(message = "pageNo不能为空",groups = ResiBuzzForm.class) |
|||
private Integer pageNo; |
|||
} |
@ -0,0 +1,91 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/12/8 3:37 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class ResiBuzzDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1844581181580474374L; |
|||
|
|||
@JsonIgnore |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 议题标题 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 议题ID |
|||
*/ |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 建议 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 状态 |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private String createdTime; |
|||
|
|||
/** |
|||
* 支持个数 |
|||
*/ |
|||
private Integer supportCount; |
|||
|
|||
/** |
|||
* 反对个数 |
|||
*/ |
|||
private Integer oppositionCount; |
|||
|
|||
/** |
|||
* 表决占比 |
|||
*/ |
|||
private String voteAccount; |
|||
|
|||
/** |
|||
* 议题发起人 |
|||
*/ |
|||
private String issueOriginator; |
|||
|
|||
/** |
|||
* 分类名字 |
|||
*/ |
|||
private String categoryName; |
|||
|
|||
public ResiBuzzDTO() { |
|||
this.createdBy = ""; |
|||
this.sort = NumConstant.ZERO; |
|||
this.issueTitle = ""; |
|||
this.issueId = ""; |
|||
this.suggestion = ""; |
|||
this.status = ""; |
|||
this.createdTime = ""; |
|||
this.supportCount = NumConstant.ZERO; |
|||
this.oppositionCount = NumConstant.ZERO; |
|||
this.voteAccount = ""; |
|||
this.issueOriginator = ""; |
|||
this.categoryName = ""; |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/12/8 3:36 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class ResiBuzzResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 4914999826185811915L; |
|||
|
|||
private Integer total; |
|||
|
|||
private List<ResiBuzzDTO> list; |
|||
|
|||
public ResiBuzzResultDTO() { |
|||
this.total = NumConstant.ZERO; |
|||
this.list = new ArrayList<>(); |
|||
} |
|||
} |
Loading…
Reference in new issue