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"` // 账号