chore: use protobuf timestamp

This commit is contained in:
Steven
2023-11-10 09:02:28 +08:00
parent f5f8616f2e
commit 4f94927b5c
7 changed files with 272 additions and 253 deletions

View File

@ -6,6 +6,7 @@ import "api/v2/common.proto";
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
option go_package = "gen/api/v2";
@ -46,9 +47,9 @@ message Shortcut {
int32 creator_id = 2;
int64 created_ts = 3;
google.protobuf.Timestamp created_time = 3;
int64 updated_ts = 4;
google.protobuf.Timestamp updated_time = 4;
RowStatus row_status = 5;

View File

@ -64,9 +64,9 @@ message User {
RowStatus row_status = 2;
int64 created_ts = 3;
google.protobuf.Timestamp created_time = 3;
int64 updated_ts = 4;
google.protobuf.Timestamp updated_time = 4;
Role role = 6;