From 4f1028d3fb75c6e4c8df96f97d44db40d0a7125a Mon Sep 17 00:00:00 2001 From: hzy Date: Thu, 25 May 2023 11:00:37 +0800 Subject: [PATCH] =?UTF-8?q?meta:user=E8=A1=A5=E5=85=85token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 4 ++-- meta/v1/user.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index e88bd4f..5346f6e 100644 --- a/go.mod +++ b/go.mod @@ -9,6 +9,8 @@ require ( github.com/go-kratos/kratos/v2 v2.5.4 github.com/tidwall/gjson v1.14.4 github.com/tjfoc/gmsm v1.4.1 + go.opentelemetry.io/otel v1.7.0 + go.opentelemetry.io/otel/trace v1.7.0 google.golang.org/grpc v1.46.2 google.golang.org/protobuf v1.28.0 ) @@ -28,8 +30,6 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect - go.opentelemetry.io/otel v1.7.0 // indirect - go.opentelemetry.io/otel/trace v1.7.0 // indirect go.uber.org/atomic v1.5.0 // indirect golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect diff --git a/meta/v1/user.go b/meta/v1/user.go index b14f8bb..4850635 100644 --- a/meta/v1/user.go +++ b/meta/v1/user.go @@ -17,6 +17,8 @@ var UserErr = errors.New("userinfo error") type User struct { // 用户id Id int32 `json:"id"` + // 用户token + Token int32 `json:"token"` // 邮箱 Email string `json:"email"` // 账号