This commit is contained in:
awei
2025-03-03 17:43:50 +08:00
commit 113756eaae
1497 changed files with 127997 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
package event
// FollowEvent 关注
type FollowEvent struct {
UserId int64 `json:"userId"`
OtherId int64 `json:"otherId"`
}
// UnFollowEvent 取消关注
type UnFollowEvent struct {
UserId int64 `json:"userId"`
OtherId int64 `json:"otherId"`
}
type TopicCreateEvent struct {
UserId int64 `json:"userId"`
TopicId int64 `json:"topicId"`
CreateTime int64 `json:"createTime"`
}
type TopicDeleteEvent struct {
UserId int64 `json:"userId"`
TopicId int64 `json:"topicId"`
DeleteUserId int64 `json:"deleteUserId"`
}
type UserLikeEvent struct {
UserId int64 `json:"userId"`
EntityId int64 `json:"entityId"`
EntityType string `json:"entityType"`
}
type UserUnLikeEvent struct {
UserId int64 `json:"userId"`
EntityId int64 `json:"entityId"`
EntityType string `json:"entityType"`
}
type UserFavoriteEvent struct {
UserId int64 `json:"userId"`
EntityId int64 `json:"entityId"`
EntityType string `json:"entityType"`
}
type CommentCreateEvent struct {
UserId int64 `json:"userId"`
CommentId int64 `json:"commentId"`
}
type TopicRecommendEvent struct {
TopicId int64 `json:"topicId"`
Recommend bool `json:"recommend"`
}