refactor: tweak resource state in api

This commit is contained in:
johnnyjoy
2025-01-10 22:20:23 +08:00
parent 1caaef1c5b
commit 2a861ea430
26 changed files with 788 additions and 795 deletions

View File

@@ -4,9 +4,9 @@ package memos.api.v1;
option go_package = "gen/api/v1";
enum RowStatus {
ROW_STATUS_UNSPECIFIED = 0;
ACTIVE = 1;
enum State {
STATE_UNSPECIFIED = 0;
NORMAL = 1;
ARCHIVED = 2;
}

View File

@@ -137,7 +137,7 @@ message Memo {
// The user defined id of the memo.
string uid = 2;
RowStatus row_status = 3;
State state = 3;
// The name of the creator.
// Format: users/{id}

View File

@@ -114,7 +114,7 @@ message User {
string password = 9 [(google.api.field_behavior) = INPUT_ONLY];
RowStatus row_status = 10;
State state = 10;
google.protobuf.Timestamp create_time = 11;

View File

@@ -53,7 +53,7 @@ message Webhook {
google.protobuf.Timestamp update_time = 4;
RowStatus row_status = 5;
State state = 5;
string name = 6;