memos/proto/store/reaction.proto

29 lines
467 B
Protocol Buffer
Raw Normal View History

2024-02-07 23:40:23 +08:00
syntax = "proto3";
package memos.store;
option go_package = "gen/store";
message Reaction {
int32 id = 1;
int64 created_ts = 2;
int32 creator_id = 3;
// content_id is the id of the content that the reaction is for.
// This can be a memo. e.g. memos/101
string content_id = 4;
enum Type {
TYPE_UNSPECIFIED = 0;
2024-02-08 11:54:59 +08:00
EYES = 1;
HEART = 2;
LAUGH = 3;
ROCKET = 4;
THUMBS_DOWN = 5;
THUMBS_UP = 6;
2024-02-07 23:40:23 +08:00
}
Type reaction_type = 5;
}