memos/proto/api/v1/memo_relation_service.proto

34 lines
638 B
Protocol Buffer
Raw Normal View History

2023-12-21 21:24:08 +08:00
syntax = "proto3";
2024-04-28 00:44:29 +08:00
package memos.api.v1;
2023-12-21 21:24:08 +08:00
2024-10-16 23:09:20 +08:00
import "google/api/field_behavior.proto";
2024-04-28 00:44:29 +08:00
option go_package = "gen/api/v1";
2023-12-21 21:24:08 +08:00
message MemoRelation {
2024-03-19 21:53:44 +08:00
// The name of memo.
// Format: "memos/{uid}"
2024-10-16 23:09:20 +08:00
Memo memo = 1;
2024-03-19 21:53:44 +08:00
// The name of related memo.
// Format: "memos/{uid}"
2024-10-16 23:09:20 +08:00
Memo related_memo = 2;
2023-12-21 21:24:08 +08:00
enum Type {
TYPE_UNSPECIFIED = 0;
REFERENCE = 1;
COMMENT = 2;
}
Type type = 3;
2024-10-16 23:09:20 +08:00
message Memo {
// The name of the memo.
// Format: memos/{id}
string name = 1;
string uid = 2;
// The snippet of the memo content. Plain text only.
string snippet = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
}
2023-12-21 21:24:08 +08:00
}