-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from Maple-pro/dev
feat(audit): add favorite and follow action to action table by mq
- Loading branch information
Showing
9 changed files
with
367 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,53 @@ | ||
package strings | ||
|
||
// Exchange name | ||
const ( | ||
// Exchange name | ||
VideoExchange = "video_exchange" | ||
EventExchange = "event" | ||
MessageExchange = "message_exchange" | ||
AuditExchange = "audit_exchange" | ||
) | ||
|
||
// Queue name | ||
// Queue name | ||
const ( | ||
VideoPicker = "video_picker" | ||
VideoSummary = "video_summary" | ||
MessageCommon = "message_common" | ||
MessageGPT = "message_gpt" | ||
AuditPicker = "audit_picker" | ||
) | ||
|
||
// Routing key | ||
// Routing key | ||
const ( | ||
FavoriteActionEvent = "video.favorite.action" | ||
VideoGetEvent = "video.get.action" | ||
VideoCommentEvent = "video.comment.action" | ||
VideoPublishEvent = "video.publish.action" | ||
|
||
MessageActionEvent = "message.common" | ||
MessageGptActionEvent = "message.gpt" | ||
AuditPublishEvent = "audit" | ||
) | ||
|
||
// Action Id | ||
// Action Type | ||
const ( | ||
FavoriteIdActionLog = 1 // 用户点赞相关操作 | ||
FollowIdActionLog = 2 // 用户关注相关操作 | ||
) | ||
|
||
// Action Name | ||
// Action Name | ||
const ( | ||
FavoriteNameActionLog = "favorite.action" // 用户点赞操作名称 | ||
FavoriteUpActionSubLog = "up" | ||
FavoriteDownActionSubLog = "down" | ||
|
||
FollowNameActionLog = "follow.action" // 用户关注操作名称 | ||
FollowUpActionSubLog = "up" | ||
FollowDownActionSubLog = "down" | ||
) | ||
|
||
// Action Service Name | ||
const ( | ||
FavoriteServiceName = "FavoriteService" | ||
FollowServiceName = "FollowService" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.