add friend callback

This commit is contained in:
wangchuxiao
2022-10-19 21:06:48 +08:00
parent 8d0ae922b8
commit 162478563c
6 changed files with 80 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
package call_back_struct
type CallbackBeforeAddFriendReq struct {
CallbackCommand string `json:"callbackCommand"`
FromUserID string `json:"fromUserID" `
ToUserID string `json:"toUserID"`
ReqMsg string `json:"reqMsg"`
OperationID string `json:"operationID"`
}
type CallbackBeforeAddFriendResp struct {
*CommonCallbackResp
}
+1
View File
@@ -289,6 +289,7 @@ type config struct {
CallbackOfflinePush callBackConfig `yaml:"callbackOfflinePush"`
CallbackOnlinePush callBackConfig `yaml:"callbackOnlinePush"`
CallbackBeforeSuperGroupOnlinePush callBackConfig `yaml:"callbackSuperGroupOnlinePush"`
CallbackBeforeAddFriend callBackConfig `yaml:"callbackBeforeAddFriend"`
} `yaml:"callback"`
Notification struct {
///////////////////////group/////////////////////////////
+2
View File
@@ -207,6 +207,8 @@ const (
CallbackOfflinePushCommand = "callbackOfflinePushCommand"
CallbackOnlinePushCommand = "callbackOnlinePushCommand"
CallbackSuperGroupOnlinePushCommand = "callbackSuperGroupOnlinePushCommand"
CallbackBeforeAddFriendCommand = "callbackBeforeAddFriendCommand"
//callback actionCode
ActionAllow = 0
ActionForbidden = 1