|
|
@ -423,8 +423,8 @@ func GetUserReqGroupApplicationList(c *gin.Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.NewInfo(req.OperationID, RpcResp)
|
|
|
|
log.NewInfo(req.OperationID, RpcResp)
|
|
|
|
resp := api.GetGroupApplicationListResp{CommResp: api.CommResp{ErrCode: RpcResp.CommonResp.ErrCode, ErrMsg: RpcResp.CommonResp.ErrMsg}, GroupRequestList: RpcResp.GroupRequestList}
|
|
|
|
resp := api.GetGroupApplicationListResp{CommResp: api.CommResp{ErrCode: RpcResp.CommonResp.ErrCode, ErrMsg: RpcResp.CommonResp.ErrMsg}, GroupRequestList: RpcResp.GroupRequestList}
|
|
|
|
log.NewInfo(req.OperationID, "GetGroupApplicationList api return ", resp)
|
|
|
|
|
|
|
|
resp.Data = jsonData.JsonDataList(resp.GroupRequestList)
|
|
|
|
resp.Data = jsonData.JsonDataList(resp.GroupRequestList)
|
|
|
|
|
|
|
|
log.NewInfo(req.OperationID, "GetGroupApplicationList api return ", resp)
|
|
|
|
c.JSON(http.StatusOK, resp)
|
|
|
|
c.JSON(http.StatusOK, resp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -464,12 +464,25 @@ func GetGroupsInfo(c *gin.Context) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resp := api.GetGroupInfoResp{CommResp: api.CommResp{ErrCode: RpcResp.ErrCode, ErrMsg: RpcResp.ErrMsg}, GroupInfoList: RpcResp.GroupInfoList}
|
|
|
|
resp := api.GetGroupInfoResp{CommResp: api.CommResp{ErrCode: RpcResp.ErrCode, ErrMsg: RpcResp.ErrMsg}, GroupInfoList: transferGroupInfo(RpcResp.GroupInfoList)}
|
|
|
|
resp.Data = jsonData.JsonDataList(resp.GroupInfoList)
|
|
|
|
resp.Data = jsonData.JsonDataList(resp.GroupInfoList)
|
|
|
|
log.NewInfo(req.OperationID, "GetGroupsInfo api return ", resp)
|
|
|
|
log.NewInfo(req.OperationID, "GetGroupsInfo api return ", resp)
|
|
|
|
c.JSON(http.StatusOK, resp)
|
|
|
|
c.JSON(http.StatusOK, resp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func transferGroupInfo(input []*open_im_sdk.GroupInfo) []*api.GroupInfoAlias {
|
|
|
|
|
|
|
|
var result []*api.GroupInfoAlias
|
|
|
|
|
|
|
|
for _, v := range input {
|
|
|
|
|
|
|
|
t := &api.GroupInfoAlias{}
|
|
|
|
|
|
|
|
utils.CopyStructFields(t, &v)
|
|
|
|
|
|
|
|
if v.NeedVerification != nil {
|
|
|
|
|
|
|
|
t.NeedVerification = v.NeedVerification.Value
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
result = append(result, t)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return result
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//process application
|
|
|
|
//process application
|
|
|
|
func ApplicationGroupResponse(c *gin.Context) {
|
|
|
|
func ApplicationGroupResponse(c *gin.Context) {
|
|
|
|
params := api.ApplicationGroupResponseReq{}
|
|
|
|
params := api.ApplicationGroupResponseReq{}
|
|
|
@ -608,6 +621,7 @@ func SetGroupInfo(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
|
|
if params.NeedVerification != nil {
|
|
|
|
if params.NeedVerification != nil {
|
|
|
|
req.GroupInfo.NeedVerification = &wrappers.Int32Value{Value: *params.NeedVerification}
|
|
|
|
req.GroupInfo.NeedVerification = &wrappers.Int32Value{Value: *params.NeedVerification}
|
|
|
|
|
|
|
|
log.NewInfo(req.OperationID, "NeedVerification ", req.GroupInfo.NeedVerification)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var ok bool
|
|
|
|
var ok bool
|
|
|
|