fix: added AtUserIDList to the @ message for API sending. (#3472)

This commit is contained in:
OpenIM-Gordon
2025-07-28 11:18:49 +08:00
committed by GitHub
parent 839d7d90ac
commit f9475bdd87
2 changed files with 45 additions and 32 deletions
+10 -3
View File
@@ -63,9 +63,11 @@ type FileElem struct {
FileSize int64 `mapstructure:"fileSize" validate:"required"`
}
type AtElem struct {
Text string `mapstructure:"text"`
AtUserList []string `mapstructure:"atUserList" validate:"required,max=1000"`
IsAtSelf bool `mapstructure:"isAtSelf"`
Text string `mapstructure:"text"`
AtUserList []string `mapstructure:"atUserList" validate:"required,max=1000"`
AtUsersInfo []*AtInfo `json:"atUsersInfo"`
QuoteMessage *MsgStruct `json:"quoteMessage"`
IsAtSelf bool `mapstructure:"isAtSelf"`
}
type LocationElem struct {
Description string `mapstructure:"description"`
@@ -158,3 +160,8 @@ type MsgStruct struct {
CustomElem *CustomElem `json:"customElem,omitempty"`
QuoteElem *QuoteElem `json:"quoteElem,omitempty"`
}
type AtInfo struct {
AtUserID string `json:"atUserID,omitempty"`
GroupNickname string `json:"groupNickname,omitempty"`
}