From daca23fe0dc01863395110761e1629361ad65b4c Mon Sep 17 00:00:00 2001 From: XingfenD Date: Mon, 17 Aug 2026 11:46:41 +0800 Subject: [PATCH] feat: consume generated Go SDK --- go.mod | 3 ++- go.sum | 2 ++ handler/ws.go | 2 +- health/health.go | 2 +- main.go | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 1567359..8178133 100644 --- a/go.mod +++ b/go.mod @@ -5,11 +5,11 @@ go 1.24.0 toolchain go1.24.1 require ( + git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go v0.1.0 github.com/caarlos0/env/v11 v11.4.0 github.com/golang-jwt/jwt/v5 v5.3.1 github.com/gorilla/websocket v1.5.1 google.golang.org/grpc v1.79.2 - google.golang.org/protobuf v1.36.10 ) require ( @@ -17,4 +17,5 @@ require ( golang.org/x/sys v0.39.0 // indirect golang.org/x/text v0.32.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/protobuf v1.36.10 // indirect ) diff --git a/go.sum b/go.sum index 7ea8457..68d00b8 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go v0.1.0 h1:zX5Bx+8sQn2kVtlHbQaruq7olulSXDeNlNECzYsMF4o= +git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go v0.1.0/go.mod h1:G9rGGl2SwqLqNsJ2CAFD66k5xqhXh3JJJ1uGRPkynOg= github.com/caarlos0/env/v11 v11.4.0 h1:Kcb6t5kIIr4XkoQC9AF2j+8E1Jsrl3Wz/hhm1LtoGAc= github.com/caarlos0/env/v11 v11.4.0/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= diff --git a/handler/ws.go b/handler/ws.go index 82c65bd..3943d35 100644 --- a/handler/ws.go +++ b/handler/ws.go @@ -12,7 +12,7 @@ import ( "google.golang.org/grpc/metadata" "github.com/XingfenD/yoresee_doc/collab-go/auth" - yoreseedocpb "github.com/XingfenD/yoresee_doc/collab-go/pkg/gen/yoresee_doc/v1" + yoreseedocpb "git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go/yoresee_doc/v1" "github.com/XingfenD/yoresee_doc/collab-go/proxy" ) diff --git a/health/health.go b/health/health.go index accb32c..2d9ea2e 100644 --- a/health/health.go +++ b/health/health.go @@ -9,7 +9,7 @@ import ( "sync/atomic" "time" - yoreseedocpb "github.com/XingfenD/yoresee_doc/collab-go/pkg/gen/yoresee_doc/v1" + yoreseedocpb "git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go/yoresee_doc/v1" ) type HealthChecker struct { diff --git a/main.go b/main.go index b10baeb..dfe9ecb 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "github.com/XingfenD/yoresee_doc/collab-go/config" "github.com/XingfenD/yoresee_doc/collab-go/handler" "github.com/XingfenD/yoresee_doc/collab-go/health" - yoreseedocpb "github.com/XingfenD/yoresee_doc/collab-go/pkg/gen/yoresee_doc/v1" + yoreseedocpb "git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go/yoresee_doc/v1" "github.com/XingfenD/yoresee_doc/collab-go/proxy" )