You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
556 B
20 lines
556 B
package api
|
|
|
|
import (
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/a2r"
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/user"
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type StatisticsApi rpcclient.User
|
|
|
|
func NewStatisticsApi(discov discoveryregistry.SvcDiscoveryRegistry) StatisticsApi {
|
|
return StatisticsApi(*rpcclient.NewUser(discov))
|
|
}
|
|
|
|
func (s *StatisticsApi) UserRegister(c *gin.Context) {
|
|
a2r.Call(user.UserClient.UserRegisterCount, s.Client, c)
|
|
}
|