refactor: update visibilities

This commit is contained in:
Steven
2024-08-31 22:04:24 +08:00
parent 8511c09c63
commit b74e4f90c1
43 changed files with 693 additions and 775 deletions

View File

@ -4,6 +4,13 @@ package slash.api.v1;
option go_package = "gen/api/v1";
enum State {
STATE_UNSPECIFIED = 0;
ACTIVE = 1;
INACTIVE = 2;
}
// deprecated
enum RowStatus {
ROW_STATUS_UNSPECIFIED = 0;
NORMAL = 1;
@ -12,7 +19,10 @@ enum RowStatus {
enum Visibility {
VISIBILITY_UNSPECIFIED = 0;
PRIVATE = 1;
PRIVATE = 1 [deprecated = true];
WORKSPACE = 2;
PUBLIC = 3;
}

View File

@ -59,8 +59,6 @@ message Shortcut {
google.protobuf.Timestamp updated_time = 4;
RowStatus row_status = 5;
string name = 6;
string link = 7;

View File

@ -63,7 +63,7 @@ service UserService {
message User {
int32 id = 1;
RowStatus row_status = 2;
State state = 2;
google.protobuf.Timestamp created_time = 3;