This commit is contained in:
wangchuxiao
2023-05-12 10:50:59 +08:00
parent 8aff2e86a8
commit 9abff13008
7 changed files with 483 additions and 163 deletions
+4
View File
@@ -57,3 +57,7 @@ func (o *Conversation) SetRecvMsgOpt(c *gin.Context) {
func (o *Conversation) ModifyConversationField(c *gin.Context) {
a2r.Call(conversation.ConversationClient.ModifyConversationField, o.client, c)
}
func (o *Conversation) GetConversationsHasReadAndMaxSeq(c *gin.Context) {
a2r.Call(conversation.ConversationClient.GetConversationsHasReadAndMaxSeq, o.client, c)
}
+1
View File
@@ -163,6 +163,7 @@ func NewGinRouter(zk discoveryregistry.SvcDiscoveryRegistry, rdb redis.Universal
conversationGroup.POST("/batch_set_conversation", c.BatchSetConversations)
conversationGroup.POST("/set_recv_msg_opt", c.SetRecvMsgOpt)
conversationGroup.POST("/modify_conversation_field", c.ModifyConversationField)
conversationGroup.POST("/get_conversations_has_read_and_max_seq", c.GetConversationsHasReadAndMaxSeq)
}
return r
}