From 3338680a976e183790b45ec524c8dc90a988c632 Mon Sep 17 00:00:00 2001 From: GoldenSheep Date: Sat, 16 Dec 2023 13:09:48 +0800 Subject: [PATCH] fix: add InnerID in resource --- proto/sync/v1/host.proto | 1 + proto/sync/v1/keychain.proto | 2 ++ proto/sync/v1/known_hosts.proto | 1 + 3 files changed, 4 insertions(+) diff --git a/proto/sync/v1/host.proto b/proto/sync/v1/host.proto index f57567c..971de0c 100644 --- a/proto/sync/v1/host.proto +++ b/proto/sync/v1/host.proto @@ -10,6 +10,7 @@ message Host { google.protobuf.Timestamp createdAt = 2; // 创建时间 google.protobuf.Timestamp updatedAt = 3; // 更新时间 google.protobuf.Timestamp deletedAt = 4; // 删除时间 + string innerId = 5; // 内部ID 资源id string label = 11; // 标签 repeated string tags = 12; diff --git a/proto/sync/v1/keychain.proto b/proto/sync/v1/keychain.proto index 9fc8458..3486c1e 100644 --- a/proto/sync/v1/keychain.proto +++ b/proto/sync/v1/keychain.proto @@ -11,6 +11,7 @@ message SshKey { google.protobuf.Timestamp createdAt = 2; // 创建时间 google.protobuf.Timestamp updatedAt = 3; // 更新时间 google.protobuf.Timestamp deletedAt = 4; // 删除时间 + string innerId = 5; // 内部ID 资源id string label = 11; // 标签 string privateKey = 12; // 私钥 @@ -25,6 +26,7 @@ message Identity { google.protobuf.Timestamp createdAt = 2; // 创建时间 google.protobuf.Timestamp updatedAt = 3; // 更新时间 google.protobuf.Timestamp deletedAt = 4; // 删除时间 + string innerId = 5; // 内部ID 资源id string label = 11; // 标签 string username = 12; diff --git a/proto/sync/v1/known_hosts.proto b/proto/sync/v1/known_hosts.proto index d2208d8..0ff0fa6 100644 --- a/proto/sync/v1/known_hosts.proto +++ b/proto/sync/v1/known_hosts.proto @@ -10,6 +10,7 @@ message KnownHost { google.protobuf.Timestamp createdAt = 2; // 创建时间 google.protobuf.Timestamp updatedAt = 3; // 更新时间 google.protobuf.Timestamp deletedAt = 4; // 删除时间 + string innerId = 5; // 内部ID 资源id string address = 11; // ip或host string publicKey = 12; // 公钥