Skip to content

Commit 282fe2a

Browse files
committed
import notes from Google Keep using takeout archive
1 parent b79755d commit 282fe2a

File tree

12 files changed

+1008
-14
lines changed

12 files changed

+1008
-14
lines changed

proto/api/v1/import_service.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
syntax = "proto3";
2+
3+
package memos.api.v1;
4+
5+
import "google/api/annotations.proto";
6+
import "google/api/field_behavior.proto";
7+
8+
option go_package = "gen/api/v1";
9+
10+
service ImportService {
11+
// ImportMemos imports external note content.
12+
rpc ImportMemos(ImportMemosRequest) returns (ImportResult) {
13+
option (google.api.http) = {
14+
post: "/api/v1/import"
15+
body: "content"
16+
};
17+
}
18+
}
19+
20+
message ImportResult {}
21+
22+
message ImportMemosRequest {
23+
bytes content = 1 [(google.api.field_behavior) = INPUT_ONLY];
24+
}

proto/gen/api/v1/import_service.pb.go

Lines changed: 190 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/gen/api/v1/import_service.pb.gw.go

Lines changed: 154 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)