10 changed files with 305 additions and 33 deletions
@ -0,0 +1,36 @@ |
|||
package com.epmet.dataaggre.dto.message.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 通用dto |
|||
* @Author yinzuomei |
|||
* @Date 2021/8/20 7:48 下午 |
|||
*/ |
|||
@Data |
|||
public class InfoIdDTO implements Serializable { |
|||
private static final long serialVersionUID = -3852837936492128925L; |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "消息id不能为空",groups = AddUserInternalGroup.class) |
|||
private String infoId; |
|||
|
|||
|
|||
//以下参数从token中获取
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "userId不能为空",groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
|
|||
/** |
|||
* 当前客户id |
|||
*/ |
|||
@NotBlank(message = "customerId不能为空",groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
|||
|
@ -0,0 +1,97 @@ |
|||
package com.epmet.dataaggre.dto.message.result; |
|||
|
|||
import com.epmet.commons.tools.dto.form.FileCommonDTO; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 消息详情 |
|||
* @Author yinzuomei |
|||
* @Date 2021/8/20 7:49 下午 |
|||
*/ |
|||
@Data |
|||
public class InfoDetailResDTO implements Serializable { |
|||
private String infoId; |
|||
|
|||
/** |
|||
* 发布人头像 |
|||
*/ |
|||
private String headPhoto; |
|||
|
|||
/** |
|||
* 发布人id |
|||
*/ |
|||
private String publishStaffId; |
|||
|
|||
/** |
|||
* 发布人姓名 |
|||
*/ |
|||
private String publishStaffName; |
|||
|
|||
/** |
|||
* 发布人2级组织名 |
|||
*/ |
|||
private String publishOrgName; |
|||
|
|||
/** |
|||
* 发布人性别 |
|||
*/ |
|||
private String publishStaffGender; |
|||
|
|||
/** |
|||
* 是否本人发布,true:是当前用户发布 |
|||
*/ |
|||
private Boolean isMine; |
|||
|
|||
/** |
|||
* 消息内容完整版 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 发送时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date publishTime; |
|||
|
|||
/** |
|||
* 共XX个接收人 |
|||
*/ |
|||
private Integer totalReceiver; |
|||
|
|||
/** |
|||
* 已读的数量 |
|||
*/ |
|||
private Integer readTotal; |
|||
|
|||
/** |
|||
* 未读的数量 |
|||
*/ |
|||
private Integer unReadCount; |
|||
|
|||
/** |
|||
* 第一个接受人的id |
|||
*/ |
|||
//@JsonIgnore
|
|||
private String firstReceiverStaffId; |
|||
|
|||
/** |
|||
* 第一个接受人的姓名 |
|||
*/ |
|||
private String firstReceiverName; |
|||
|
|||
/** |
|||
* 未读的回复数量 |
|||
*/ |
|||
private Integer unReadReplyNum; |
|||
|
|||
/** |
|||
* 附件列表 |
|||
*/ |
|||
private List<FileCommonDTO> attachmentList; |
|||
} |
|||
|
Loading…
Reference in new issue