chore: use api v2 in archived page

This commit is contained in:
Steven
2023-12-19 23:49:24 +08:00
parent abc14217f6
commit 5334fdf1b2
15 changed files with 474 additions and 442 deletions

View File

@@ -6,6 +6,7 @@ import "api/v2/common.proto";
import "api/v2/markdown_service.proto";
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/protobuf/timestamp.proto";
option go_package = "gen/api/v2";
@@ -51,17 +52,19 @@ message Memo {
int32 creator_id = 3;
int64 created_ts = 4;
google.protobuf.Timestamp create_time = 4;
int64 updated_ts = 5;
google.protobuf.Timestamp update_time = 5;
string content = 6;
google.protobuf.Timestamp display_time = 6;
repeated Node nodes = 7;
string content = 7;
Visibility visibility = 8;
repeated Node nodes = 8;
bool pinned = 9;
Visibility visibility = 9;
bool pinned = 10;
}
message CreateMemoRequest {
@@ -81,8 +84,6 @@ message ListMemosRequest {
// Filter is used to filter memos returned in the list.
string filter = 3;
optional int32 creator_id = 4;
}
message ListMemosResponse {

View File

@@ -31,7 +31,7 @@ service ResourceService {
message Resource {
int32 id = 1;
google.protobuf.Timestamp created_ts = 2;
google.protobuf.Timestamp create_time = 2;
string filename = 3;
string external_link = 4;
string type = 5;