|
|
@ -100,8 +100,8 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
|
|
|
|
case BestSpeed:
|
|
|
|
case BestSpeed:
|
|
|
|
r.Use(gzip.Gzip(gzip.BestSpeed))
|
|
|
|
r.Use(gzip.Gzip(gzip.BestSpeed))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r.Use(prommetricsGin(), gin.RecoveryWithWriter(gin.DefaultErrorWriter, mw.GinPanicErr), mw.CorsHandler(), mw.GinParseOperationID(), GinParseToken(rpcli.NewAuthClient(authConn)))
|
|
|
|
r.Use(prommetricsGin(), gin.RecoveryWithWriter(gin.DefaultErrorWriter, mw.GinPanicErr), mw.CorsHandler(),
|
|
|
|
j := jssdk.NewJSSdkApi()
|
|
|
|
mw.GinParseOperationID(), GinParseToken(rpcli.NewAuthClient(authConn)))
|
|
|
|
|
|
|
|
|
|
|
|
u := NewUserApi(user.NewUserClient(userConn), client, cfg.Discovery.RpcService)
|
|
|
|
u := NewUserApi(user.NewUserClient(userConn), client, cfg.Discovery.RpcService)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -280,6 +280,8 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
j := jssdk.NewJSSdkApi(rpcli.NewUserClient(userConn), rpcli.NewRelationClient(friendConn),
|
|
|
|
|
|
|
|
rpcli.NewGroupClient(groupConn), rpcli.NewConversationClient(conversationConn), rpcli.NewMsgClient(msgConn))
|
|
|
|
jssdk := r.Group("/jssdk")
|
|
|
|
jssdk := r.Group("/jssdk")
|
|
|
|
jssdk.POST("/get_conversations", j.GetConversations)
|
|
|
|
jssdk.POST("/get_conversations", j.GetConversations)
|
|
|
|
jssdk.POST("/get_active_conversations", j.GetActiveConversations)
|
|
|
|
jssdk.POST("/get_active_conversations", j.GetActiveConversations)
|
|
|
|