mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
595 B
Protocol Buffer
33 lines
595 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package memos.store;
|
|
|
|
option go_package = "gen/store";
|
|
|
|
message InboxMessage {
|
|
message MemoCommentPayload {
|
|
int32 memo_id = 1;
|
|
int32 related_memo_id = 2;
|
|
}
|
|
|
|
message MemoMentionPayload {
|
|
int32 memo_id = 1;
|
|
int32 related_memo_id = 2;
|
|
}
|
|
|
|
// The type of the inbox message.
|
|
Type type = 1;
|
|
oneof payload {
|
|
MemoCommentPayload memo_comment = 2;
|
|
MemoMentionPayload memo_mention = 3;
|
|
}
|
|
|
|
enum Type {
|
|
TYPE_UNSPECIFIED = 0;
|
|
// Memo comment notification.
|
|
MEMO_COMMENT = 1;
|
|
// Memo mention notification.
|
|
MEMO_MENTION = 2;
|
|
}
|
|
}
|