13 changed files with 286 additions and 10 deletions
@ -0,0 +1,18 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Description read已读、unread未读 |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 14:51 |
|||
*/ |
|||
public interface ReadFlagConstant { |
|||
/** |
|||
* 已读 |
|||
*/ |
|||
String READ="read"; |
|||
|
|||
/** |
|||
* 未读 |
|||
*/ |
|||
String UN_READ="unread"; |
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Builder; |
|||
import lombok.Data; |
|||
import net.bytebuddy.implementation.bind.annotation.Default; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 14:32 |
|||
*/ |
|||
@Data |
|||
public class UserMessageFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 2697079163476964749L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
@NotBlank(message = "客户id不能为空") |
|||
private String customerId; |
|||
|
|||
/** |
|||
* app=resi时,此列为gridId,其他情况暂定 * |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 对应用户id |
|||
*/ |
|||
@NotBlank(message = "通知用户id为空") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 消息通知对象:居民端用户resi、政府端工作人员gov、运营端工作人员oper |
|||
*/ |
|||
@NotBlank(message = "消息通知对象不能为空") |
|||
private String app; |
|||
|
|||
/** |
|||
* 消息标题 |
|||
*/ |
|||
@NotBlank(message = "消息标题不能为空") |
|||
private String title; |
|||
|
|||
/** |
|||
* 消息通知内容 |
|||
*/ |
|||
@NotBlank(message = "通知内容不能为空") |
|||
private String messageContent; |
|||
|
|||
/** |
|||
* read已读、unread未读 |
|||
*/ |
|||
@NotBlank(message = "readFlag不能为空") |
|||
private String readFlag; |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.modules.constant; |
|||
|
|||
/** |
|||
* @Description group模块消息通知模板 |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 15:55 |
|||
*/ |
|||
public interface UserMessageConstant { |
|||
/** |
|||
* 消息标题 |
|||
*/ |
|||
String GROUP_TITLE="您有一条小组消息"; |
|||
|
|||
/** |
|||
* 组长同意入群申请,用户会收到:您有一条小组消息。 您加入的【组名】已通过审核,请查看。 |
|||
*/ |
|||
String AGREE_APPLY="您加入的【%s】已通过审核,请查看"; |
|||
|
|||
/** |
|||
* 组长拒绝入群申请,用户会收到:您在【组名】的入组申请被拒绝。原因:【组长拒绝审核时输入的备注】 |
|||
*/ |
|||
String DISAGREE_APPLY="您在【%s】的入组申请被拒绝。原因:【%s】"; |
|||
|
|||
/** |
|||
* 成员通过链接同意进群后,组长会收到:您的好友-【认证的居民名字 xxx路-王先生】通过邀请链接,加入了【组名】 |
|||
*/ |
|||
String INVITED_JOIN_GROUP="您的好友-【%s】通过邀请连接,加入了【%s】"; |
|||
|
|||
} |
Loading…
Reference in new issue