From 7bedd903b10c125660d25373ffea23201bed22cc Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 14 十一月 2019 14:10:19 +0800 Subject: [PATCH] 邀请成功新版消息 --- fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgInviteDetailFactory.java | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgInviteDetailFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgInviteDetailFactory.java index f35c8e7..bfc6dae 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgInviteDetailFactory.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgInviteDetailFactory.java @@ -37,7 +37,35 @@ return detail; } + /** + * 閭�璇锋垚鍔� + * + * @param threeSale + * @param uid + * @return + */ + public static MsgInviteDetail createInviteSuccess2_0_2(Long uid, ThreeSale threeSale) { + if (threeSale == null || uid == null) + return null; + MsgInviteContentDTO content = new MsgInviteContentDTO(); + content.setMode("蹇呰鏉′欢+閫夋嫨鏉′欢锛堜笁閫変竴锛� "); + content.setCode("闃熷憳缁戝畾鐢佃瘽鍙风爜+鎺堟潈娣樺疂 "); + content.setState("鎴愬姛閭�璇蜂竴涓槦鍛橈紝闃熷憳鐔熺粌浣跨敤App杩樺彲鑾峰緱绾㈠寘 "); + content.setInviter("1.浜х敓绱鈮�200閲戝竵/2.浠绘剰璁㈠崟/3.鎴愬姛閭�璇蜂竴涓槦鍛�"); + + MsgInviteDetail detail = new MsgInviteDetail(); + detail.setBeiZhu("婊¤冻鑾峰緱绾㈠寘鏉′欢鍚庣郴缁熷皢鑷姩涓嬪彂鍒扳�滄垜鐨�-绾㈠寘鈥濅腑"); + detail.setInviteUser(threeSale); + detail.setCreateTime(new Date()); + detail.setUpdateTime(new Date()); + detail.setDesc(new Gson().toJson(content)); + detail.setMsgType(MsgTypeInviteTypeEnum.inviteNew); + detail.setRead(false); + detail.setUser(new UserInfo(uid)); + return detail; + } + /** * 鎵弿閭�璇蜂簩缁寸爜鎴愬姛锛屼絾鏄湭鐧诲綍 * @@ -62,6 +90,9 @@ detail.setUser(new UserInfo(uid)); return detail; } + + + /** * 閭�璇峰け璐� -- Gitblit v1.8.0