This commit is contained in:
wangchuxiao
2022-08-30 01:38:23 +08:00
parent da9918b655
commit 8d4e5ad3f1
23 changed files with 548 additions and 2351 deletions
+1 -4
View File
@@ -11,6 +11,7 @@ import (
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
"Open_IM/pkg/utils"
"context"
"github.com/golang/protobuf/ptypes/wrappers"
"google.golang.org/grpc"
@@ -1318,7 +1319,3 @@ func GetGroupAbstractInfo(c *gin.Context) {
c.JSON(http.StatusOK, resp)
return
}
func GetGroups(c *gin.Context) {
}
+1 -1
View File
@@ -463,7 +463,7 @@ func GetUsers(c *gin.Context) {
resp api.GetUsersResp
reqPb rpc.GetUsersReq
)
if err := c.Bind(&req); err != nil {
if err := c.BindJSON(&req); err != nil {
log.NewError(req.OperationID, "Bind failed ", err.Error(), req)
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
return