|
1 | 1 | package cn.wildfirechat.app; |
2 | 2 |
|
3 | 3 | import cn.wildfirechat.pojos.*; |
| 4 | +import cn.wildfirechat.pojos.moments.CommentPojo; |
| 5 | +import cn.wildfirechat.pojos.moments.FeedPojo; |
| 6 | +import cn.wildfirechat.pojos.moments.IdPojo; |
4 | 7 | import com.google.gson.Gson; |
5 | 8 | import org.springframework.web.bind.annotation.PostMapping; |
6 | 9 | import org.springframework.web.bind.annotation.RequestBody; |
@@ -174,4 +177,28 @@ public Object onConferenceMemberUnpublished(@RequestBody ConferenceUnpublishEven |
174 | 177 | System.out.println("conference member unpublished:" + event); |
175 | 178 | return "ok"; |
176 | 179 | } |
| 180 | + |
| 181 | + @PostMapping(value = "/im_event/moments_feed") |
| 182 | + public Object onMomentsFeed(@RequestBody FeedPojo event) { |
| 183 | + System.out.println("feed posted:" + event.sender + ", " + event.feedId + ", " + event.text); |
| 184 | + return "ok"; |
| 185 | + } |
| 186 | + |
| 187 | + @PostMapping(value = "/im_event/moments_feed_recall") |
| 188 | + public Object onMomentsFeedRecall(@RequestBody IdPojo event) { |
| 189 | + System.out.println("recall feed:" + event.id); |
| 190 | + return "ok"; |
| 191 | + } |
| 192 | + |
| 193 | + @PostMapping(value = "/im_event/moments_comment") |
| 194 | + public Object onMomentsComment(@RequestBody CommentPojo event) { |
| 195 | + System.out.println("feed posted:" + event.sender + ", " + event.commentId + ", " + event.feedId + ", " + event.text); |
| 196 | + return "ok"; |
| 197 | + } |
| 198 | + |
| 199 | + @PostMapping(value = "/im_event/moments_comment_recall") |
| 200 | + public Object onMomentsCommentRecall(@RequestBody IdPojo event) { |
| 201 | + System.out.println("recall comment:" + event.id + "," + event.id2); |
| 202 | + return "ok"; |
| 203 | + } |
177 | 204 | } |
0 commit comments