feat(iam/proto): add real-time ChatService, PresenceService, and attachments - #50
Merged
Merged
Conversation
Real-time chat system proto contracts: direct/group conversations, messaging with cursor pagination, read receipts, typing indicators, online presence, and server-streaming chat events. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extend ChatService for the three remaining chat features:
- ClearConversationHistory RPC (DELETE .../conversations/{id}/history)
for per-user history clearing.
- UploadChatAttachment RPC (POST .../conversations/{id}/attachments)
plus AttachmentProto, MessageProto.attachments, and
SendMessageRequest.attachment_ids for file/image attachments.
Authored-By: Ilham R <ilhamram332@gmail.com>
Co-Authored-By: Ilham R <me@ilramdhan.dev>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: IT Mutugading <it@mutugading.com>
Co-Authored-By: Indra Putro <indraputro@mutugading.com>
Co-Authored-By: Ilham R <ilham.ramadhan@mutugading.com>
Co-Authored-By: IT Mutu Gading <mutugadingapps@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
PR ini menambahkan fungsionalitas sistem obrolan waktu nyata (real-time chat system) ke dalam modul IAM melalui file
chat.proto. Pembaruan ini memperkenalkanChatServicedanPresenceServiceyang komprehensif, mendukung obrolan pribadi/grup, server-streaming chat events, cursor pagination, indikator status dan pengetikan, fitur lampiran file/gambar, hingga kemampuan untuk menghapus riwayat obrolan.Change Type
Proto Files Changed
common/v1/common.protofinance/v1/uom.protoiam/v1/chat.proto(Silakan sesuaikan dengan direktori aslinya)Changes Made
chat.proto.ChatServicedengan total 18 RPCs yang mencakup operasi direct/group conversations, pengiriman pesan dengan cursor pagination, read receipts, typing indicators, dan server-streaming chat events.PresenceServicedengan 2 RPCs untuk melacak online presence (status online) pengguna.ClearConversationHistory(mendukungDELETE .../conversations/{id}/history) untuk fitur penghapusan riwayat obrolan per pengguna.UploadChatAttachment(mendukungPOST .../conversations/{id}/attachments) untuk mengunggah file.AttachmentProto, fieldattachmentspadaMessageProto, dan fieldattachment_idspadaSendMessageRequest.Related Issues
Fixes #
Related to #
Breaking Change Check
Is this a breaking change?
buf breakingpassesBreaking Change Evidence
Lint Check
# Output of buf lint buf lintGenerated Code Preview (Optional)
// Generated Go code changesPre-merge Checklist
buf format -wappliedbuf lintpassesbuf breakingpassesImpact Assessment
Reviewer Notes
UploadChatAttachmentsebelum mengirimkanattachment_idsmelaluiSendMessageRequest.