mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
refactor: tweak resource state in api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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}
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -53,7 +53,7 @@ message Webhook {
|
||||
|
||||
google.protobuf.Timestamp update_time = 4;
|
||||
|
||||
RowStatus row_status = 5;
|
||||
State state = 5;
|
||||
|
||||
string name = 6;
|
||||
|
||||
|
Reference in New Issue
Block a user