fix callbackbeforesetgroupinfo

pull/1499/head
AndrewZuo01 2 years ago
parent 46f439fb1f
commit 69fff628b3

@ -246,17 +246,17 @@ func CallbackBeforeSetGroupInfo(ctx context.Context, req *group.SetGroupInfoReq)
} }
if req.GroupInfoForSet.Ex != nil { if req.GroupInfoForSet.Ex != nil {
callbackReq.Ex = &req.GroupInfoForSet.Ex.Value callbackReq.Ex = req.GroupInfoForSet.Ex.Value
} }
log.ZDebug(ctx, "debug!!!!!!", callbackReq.Ex) log.ZDebug(ctx, "debug CallbackBeforeSetGroupInfo", callbackReq.Ex)
if req.GroupInfoForSet.NeedVerification != nil { if req.GroupInfoForSet.NeedVerification != nil {
callbackReq.NeedVerification = &req.GroupInfoForSet.NeedVerification.Value callbackReq.NeedVerification = req.GroupInfoForSet.NeedVerification.Value
} }
if req.GroupInfoForSet.LookMemberInfo != nil { if req.GroupInfoForSet.LookMemberInfo != nil {
callbackReq.LookMemberInfo = &req.GroupInfoForSet.LookMemberInfo.Value callbackReq.LookMemberInfo = req.GroupInfoForSet.LookMemberInfo.Value
} }
if req.GroupInfoForSet.ApplyMemberFriend != nil { if req.GroupInfoForSet.ApplyMemberFriend != nil {
callbackReq.ApplyMemberFriend = &req.GroupInfoForSet.ApplyMemberFriend.Value callbackReq.ApplyMemberFriend = req.GroupInfoForSet.ApplyMemberFriend.Value
} }
resp := &callbackstruct.CallbackBeforeSetGroupInfoResp{} resp := &callbackstruct.CallbackBeforeSetGroupInfoResp{}

@ -135,10 +135,10 @@ type CallbackBeforeSetGroupInfoResp struct {
Notification string `json:"notification"` Notification string `json:"notification"`
Introduction string `json:"introduction"` Introduction string `json:"introduction"`
FaceURL string `json:"faceURL"` FaceURL string `json:"faceURL"`
Ex string `json:"ex"` Ex *string `json:"ex"`
NeedVerification int32 `json:"needVerification"` NeedVerification *int32 `json:"needVerification"`
LookMemberInfo int32 `json:"lookMemberInfo"` LookMemberInfo *int32 `json:"lookMemberInfo"`
ApplyMemberFriend int32 `json:"applyMemberFriend"` ApplyMemberFriend *int32 `json:"applyMemberFriend"`
} }
type CallbackAfterSetGroupInfoReq struct { type CallbackAfterSetGroupInfoReq struct {
@ -149,10 +149,10 @@ type CallbackAfterSetGroupInfoReq struct {
Notification string `json:"notification"` Notification string `json:"notification"`
Introduction string `json:"introduction"` Introduction string `json:"introduction"`
FaceURL string `json:"faceURL"` FaceURL string `json:"faceURL"`
Ex string `json:"ex"` Ex *string `json:"ex"`
NeedVerification int32 `json:"needVerification"` NeedVerification *int32 `json:"needVerification"`
LookMemberInfo int32 `json:"lookMemberInfo"` LookMemberInfo *int32 `json:"lookMemberInfo"`
ApplyMemberFriend int32 `json:"applyMemberFriend"` ApplyMemberFriend *int32 `json:"applyMemberFriend"`
EventTime int64 `json:"eventTime"` EventTime int64 `json:"eventTime"`
} }

Loading…
Cancel
Save