|
|
|
@ -16,7 +16,7 @@ import (
|
|
|
|
|
|
|
|
|
|
func callbackBeforeCreateGroup(ctx context.Context, req *pbGroup.CreateGroupReq) (err error) {
|
|
|
|
|
defer func() {
|
|
|
|
|
trace_log.SetContextInfo(ctx, utils.GetSelfFuncName(), err, "req", req)
|
|
|
|
|
trace_log.SetContextInfo(ctx, utils.GetFuncName(1), err, "req", req)
|
|
|
|
|
}()
|
|
|
|
|
if !config.Config.Callback.CallbackBeforeCreateGroup.Enable {
|
|
|
|
|
return nil
|
|
|
|
@ -79,7 +79,7 @@ func callbackBeforeCreateGroup(ctx context.Context, req *pbGroup.CreateGroupReq)
|
|
|
|
|
|
|
|
|
|
func CallbackBeforeMemberJoinGroup(ctx context.Context, operationID string, groupMember *im_mysql_model.GroupMember, groupEx string) (err error) {
|
|
|
|
|
defer func() {
|
|
|
|
|
trace_log.SetContextInfo(ctx, "CallbackBeforeMemberJoinGroup", err, "groupMember", *groupMember, "groupEx", groupEx)
|
|
|
|
|
trace_log.SetContextInfo(ctx, utils.GetFuncName(1), err, "groupMember", *groupMember, "groupEx", groupEx)
|
|
|
|
|
}()
|
|
|
|
|
callbackResp := cbApi.CommonCallbackResp{OperationID: operationID}
|
|
|
|
|
if !config.Config.Callback.CallbackBeforeMemberJoinGroup.Enable {
|
|
|
|
@ -121,7 +121,7 @@ func CallbackBeforeMemberJoinGroup(ctx context.Context, operationID string, grou
|
|
|
|
|
|
|
|
|
|
func CallbackBeforeSetGroupMemberInfo(ctx context.Context, req *pbGroup.SetGroupMemberInfoReq) (err error) {
|
|
|
|
|
defer func() {
|
|
|
|
|
trace_log.SetContextInfo(ctx, "CallbackBeforeSetGroupMemberInfo", err, "req", *req)
|
|
|
|
|
trace_log.SetContextInfo(ctx, utils.GetFuncName(1), err, "req", *req)
|
|
|
|
|
}()
|
|
|
|
|
callbackResp := cbApi.CommonCallbackResp{OperationID: req.OperationID}
|
|
|
|
|
if !config.Config.Callback.CallbackBeforeSetGroupMemberInfo.Enable {
|
|
|
|
|