This commit is contained in:
12600k-rog-d4
2025-12-09 20:33:57 +08:00
parent 144ed3cbdf
commit 8f4d399cfd
1498 changed files with 3778 additions and 3654 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"`
}