@ -57,9 +57,9 @@ func KickGroupMember(c *gin.Context) {
log . NewInfo ( req . OperationID , "KickGroupMember args " , req . String ( ) )
log . NewInfo ( req . OperationID , "KickGroupMember args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -120,9 +120,9 @@ func GetGroupMembersInfo(c *gin.Context) {
log . NewInfo ( req . OperationID , "GetGroupMembersInfo args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetGroupMembersInfo args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -164,9 +164,9 @@ func GetGroupMemberList(c *gin.Context) {
log . NewInfo ( req . OperationID , "GetGroupMemberList args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetGroupMemberList args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -221,9 +221,9 @@ func GetGroupAllMemberList(c *gin.Context) {
log . NewInfo ( req . OperationID , "GetGroupAllMember args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetGroupAllMember args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -277,9 +277,9 @@ func GetJoinedGroupList(c *gin.Context) {
log . NewInfo ( req . OperationID , "GetJoinedGroupList args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetJoinedGroupList args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -337,9 +337,9 @@ func InviteUserToGroup(c *gin.Context) {
log . NewInfo ( req . OperationID , "InviteUserToGroup args " , req . String ( ) )
log . NewInfo ( req . OperationID , "InviteUserToGroup args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -407,9 +407,9 @@ func CreateGroup(c *gin.Context) {
log . NewInfo ( req . OperationID , "CreateGroup args " , req . String ( ) )
log . NewInfo ( req . OperationID , "CreateGroup args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -463,9 +463,9 @@ func GetRecvGroupApplicationList(c *gin.Context) {
}
}
log . NewInfo ( req . OperationID , "GetGroupApplicationList args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetGroupApplicationList args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -515,9 +515,9 @@ func GetUserReqGroupApplicationList(c *gin.Context) {
return
return
}
}
log . NewInfo ( req . OperationID , "GetGroupsInfo args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetGroupsInfo args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -569,9 +569,9 @@ func GetGroupsInfo(c *gin.Context) {
}
}
log . NewInfo ( req . OperationID , "GetGroupsInfo args " , req . String ( ) )
log . NewInfo ( req . OperationID , "GetGroupsInfo args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -639,9 +639,9 @@ func ApplicationGroupResponse(c *gin.Context) {
log . NewInfo ( req . OperationID , "ApplicationGroupResponse args " , req . String ( ) )
log . NewInfo ( req . OperationID , "ApplicationGroupResponse args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -692,9 +692,9 @@ func JoinGroup(c *gin.Context) {
}
}
log . NewInfo ( req . OperationID , "JoinGroup args " , req . String ( ) )
log . NewInfo ( req . OperationID , "JoinGroup args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -746,9 +746,9 @@ func QuitGroup(c *gin.Context) {
log . NewInfo ( req . OperationID , "QuitGroup args " , req . String ( ) )
log . NewInfo ( req . OperationID , "QuitGroup args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -800,9 +800,9 @@ func SetGroupInfo(c *gin.Context) {
log . NewInfo ( req . OperationID , "SetGroupInfo args " , req . String ( ) )
log . NewInfo ( req . OperationID , "SetGroupInfo args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -867,9 +867,9 @@ func TransferGroupOwner(c *gin.Context) {
log . NewInfo ( req . OperationID , "TransferGroupOwner args " , req . String ( ) )
log . NewInfo ( req . OperationID , "TransferGroupOwner args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -921,9 +921,9 @@ func DismissGroup(c *gin.Context) {
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " args " , req . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -975,9 +975,9 @@ func MuteGroupMember(c *gin.Context) {
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -1029,9 +1029,9 @@ func CancelMuteGroupMember(c *gin.Context) {
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -1083,9 +1083,9 @@ func MuteGroup(c *gin.Context) {
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -1137,9 +1137,9 @@ func CancelMuteGroup(c *gin.Context) {
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -1181,9 +1181,9 @@ func SetGroupMemberNickname(c *gin.Context) {
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , req . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -1252,9 +1252,9 @@ func SetGroupMemberInfo(c *gin.Context) {
reqPb . RoleLevel = & wrappers . Int32Value { Value : * req . RoleLevel }
reqPb . RoleLevel = & wrappers . Int32Value { Value : * req . RoleLevel }
}
}
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , reqPb . String ( ) )
log . NewInfo ( req . OperationID , utils . GetSelfFuncName ( ) , " api args " , reqPb . String ( ) )
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return
@ -1291,9 +1291,9 @@ func GetGroupAbstractInfo(c *gin.Context) {
return
return
}
}
etcdConn := getcdv3 . Get Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
etcdConn := getcdv3 . Get Default Conn( config . Config . Etcd . EtcdSchema , strings . Join ( config . Config . Etcd . EtcdAddr , "," ) , config . Config . RpcRegisterName . OpenImGroupName , req . OperationID )
if etcdConn == nil {
if etcdConn == nil {
errMsg := req . OperationID + "getcdv3.Get Conn == nil"
errMsg := req . OperationID + "getcdv3.Get Default Conn == nil"
log . NewError ( req . OperationID , errMsg )
log . NewError ( req . OperationID , errMsg )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
c . JSON ( http . StatusInternalServerError , gin . H { "errCode" : 500 , "errMsg" : errMsg } )
return
return