meta:user补充token

master
hzy 2 years ago
parent 22cd1baa11
commit 4f1028d3fb
  1. 4
      go.mod
  2. 2
      meta/v1/user.go

@ -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

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

Loading…
Cancel
Save