6 changed files with 210 additions and 0 deletions
			
			
		@ -0,0 +1,24 @@ | 
				
			|||
package com.epmet.resi.group.dto.topic.form; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2021/4/20 下午2:23 | 
				
			|||
 * @DESC | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class GetLatestV2FormDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -5212709032157867124L; | 
				
			|||
 | 
				
			|||
    public interface GetLatestV2Form{} | 
				
			|||
 | 
				
			|||
    @NotBlank(message = "小组ID不能为空",groups = GetLatestV2Form.class) | 
				
			|||
    private String groupId; | 
				
			|||
 | 
				
			|||
    private String userId; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,47 @@ | 
				
			|||
package com.epmet.resi.group.dto.topic.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2021/4/20 下午2:34 | 
				
			|||
 * @DESC | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class GetLatestV2ResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1386600583326358070L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 当前人员组内角色(member成员,leader群主) | 
				
			|||
     */ | 
				
			|||
    private String userRole; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 小组类型(ordinary:楼院小组  branch:支部小组) | 
				
			|||
     */ | 
				
			|||
    private String groupType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否显示通知按钮 | 
				
			|||
     */ | 
				
			|||
    private String noticeBut; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否显示活动按钮 | 
				
			|||
     */ | 
				
			|||
    private String actBut; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否存在未读消息 | 
				
			|||
     */ | 
				
			|||
    private Boolean unReadNews; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 近十条数据 | 
				
			|||
     */ | 
				
			|||
    private List<LatestTenResultDTO> list; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,104 @@ | 
				
			|||
package com.epmet.resi.group.dto.topic.result; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.constant.NumConstant; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2021/4/20 下午2:45 | 
				
			|||
 * @DESC | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class LatestTenResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -8447212650446365613L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 话题、通知、活动Id | 
				
			|||
     */ | 
				
			|||
    private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 话题、通知、活动Id发布人的id | 
				
			|||
     */ | 
				
			|||
    private String userId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 发布者的全称(街道-姓氏先生/女士)【专项组显示真实名】 | 
				
			|||
     */ | 
				
			|||
    private String releaseUserName; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 话题发布者的头像Url | 
				
			|||
     */ | 
				
			|||
    private String releaseUserHeadPhoto; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 发布时间yyyy-MM-dd HH:mm | 
				
			|||
     */ | 
				
			|||
    private String releaseTimed; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 内容 | 
				
			|||
     */ | 
				
			|||
    private String content; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 话题状态(discussing进行中、closed已关闭) | 
				
			|||
     */ | 
				
			|||
    private String status; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否本人 | 
				
			|||
     */ | 
				
			|||
    private String releaseUserFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 如果有图片,后台只返回第一张,没有图片此列为空 | 
				
			|||
     */ | 
				
			|||
    private String firstPhoto; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 议题id | 
				
			|||
     */ | 
				
			|||
    private String issueId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否被转为议题true,false | 
				
			|||
     */ | 
				
			|||
    private Boolean shiftIssueFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 数据类型(topic:话题 notice:通知 act:活动) | 
				
			|||
     */ | 
				
			|||
    private String contentType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 本人已读未读状态(read已读 unread未读) | 
				
			|||
     */ | 
				
			|||
    private String readOrUnRead; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 通知或活动未读人员数 | 
				
			|||
     */ | 
				
			|||
    private Integer unReadCount; | 
				
			|||
 | 
				
			|||
    public LatestTenResultDTO() { | 
				
			|||
        this.id = ""; | 
				
			|||
        this.userId = ""; | 
				
			|||
        this.releaseUserName = ""; | 
				
			|||
        this.releaseUserHeadPhoto = ""; | 
				
			|||
        this.releaseTimed = ""; | 
				
			|||
        this.content = ""; | 
				
			|||
        this.status = ""; | 
				
			|||
        this.releaseUserFlag = ""; | 
				
			|||
        this.firstPhoto = ""; | 
				
			|||
        this.issueId = ""; | 
				
			|||
        this.shiftIssueFlag = false; | 
				
			|||
        this.contentType = ""; | 
				
			|||
        this.readOrUnRead = ""; | 
				
			|||
        this.unReadCount = NumConstant.ZERO; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue