services_user

package
v0.0.0-...-7418c02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type BrandTokenReq

type BrandTokenReq struct {
	BrandToken           string   `protobuf:"bytes,1,opt,name=brand_token,json=brandToken,proto3" json:"brand_token,omitempty"`
	Source               string   `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Module               string   `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BrandTokenReq) Descriptor

func (*BrandTokenReq) Descriptor() ([]byte, []int)

func (*BrandTokenReq) GetBrandToken

func (m *BrandTokenReq) GetBrandToken() string

func (*BrandTokenReq) GetModule

func (m *BrandTokenReq) GetModule() string

func (*BrandTokenReq) GetSource

func (m *BrandTokenReq) GetSource() string

func (*BrandTokenReq) ProtoMessage

func (*BrandTokenReq) ProtoMessage()

func (*BrandTokenReq) Reset

func (m *BrandTokenReq) Reset()

func (*BrandTokenReq) String

func (m *BrandTokenReq) String() string

func (*BrandTokenReq) XXX_DiscardUnknown

func (m *BrandTokenReq) XXX_DiscardUnknown()

func (*BrandTokenReq) XXX_Marshal

func (m *BrandTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BrandTokenReq) XXX_Merge

func (m *BrandTokenReq) XXX_Merge(src proto.Message)

func (*BrandTokenReq) XXX_Size

func (m *BrandTokenReq) XXX_Size() int

func (*BrandTokenReq) XXX_Unmarshal

func (m *BrandTokenReq) XXX_Unmarshal(b []byte) error

type TokenInfo

type TokenInfo struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TokenInfo) Descriptor

func (*TokenInfo) Descriptor() ([]byte, []int)

func (*TokenInfo) GetToken

func (m *TokenInfo) GetToken() string

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) Reset

func (m *TokenInfo) Reset()

func (*TokenInfo) String

func (m *TokenInfo) String() string

func (*TokenInfo) XXX_DiscardUnknown

func (m *TokenInfo) XXX_DiscardUnknown()

func (*TokenInfo) XXX_Marshal

func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenInfo) XXX_Merge

func (m *TokenInfo) XXX_Merge(src proto.Message)

func (*TokenInfo) XXX_Size

func (m *TokenInfo) XXX_Size() int

func (*TokenInfo) XXX_Unmarshal

func (m *TokenInfo) XXX_Unmarshal(b []byte) error

type TokenReq

type TokenReq struct {
	Uid                  uint32   `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Appid                string   `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TokenReq) Descriptor

func (*TokenReq) Descriptor() ([]byte, []int)

func (*TokenReq) GetAppid

func (m *TokenReq) GetAppid() string

func (*TokenReq) GetUid

func (m *TokenReq) GetUid() uint32

func (*TokenReq) ProtoMessage

func (*TokenReq) ProtoMessage()

func (*TokenReq) Reset

func (m *TokenReq) Reset()

func (*TokenReq) String

func (m *TokenReq) String() string

func (*TokenReq) XXX_DiscardUnknown

func (m *TokenReq) XXX_DiscardUnknown()

func (*TokenReq) XXX_Marshal

func (m *TokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenReq) XXX_Merge

func (m *TokenReq) XXX_Merge(src proto.Message)

func (*TokenReq) XXX_Size

func (m *TokenReq) XXX_Size() int

func (*TokenReq) XXX_Unmarshal

func (m *TokenReq) XXX_Unmarshal(b []byte) error

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) GetToken

func (*UnimplementedUserServiceServer) GetUserByBrandToken

func (*UnimplementedUserServiceServer) GetUserByBrandToken(ctx context.Context, req *BrandTokenReq) (*UserInfo, error)

func (*UnimplementedUserServiceServer) GetUserByCode

func (*UnimplementedUserServiceServer) GetUserByCode(ctx context.Context, req *UserReq) (*UserInfo, error)

func (*UnimplementedUserServiceServer) GetUserByUid

func (*UnimplementedUserServiceServer) GetUserByUid(ctx context.Context, req *UserReq) (*UserInfo, error)

func (*UnimplementedUserServiceServer) UpdatePasswordByToken

func (*UnimplementedUserServiceServer) UpdatePasswordByToken(ctx context.Context, req *UpdatePasswordReq) (*UserInfo, error)

type UpdatePasswordReq

type UpdatePasswordReq struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	NewPassword          string   `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	Appid                string   `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePasswordReq) Descriptor

func (*UpdatePasswordReq) Descriptor() ([]byte, []int)

func (*UpdatePasswordReq) GetAppid

func (m *UpdatePasswordReq) GetAppid() string

func (*UpdatePasswordReq) GetNewPassword

func (m *UpdatePasswordReq) GetNewPassword() string

func (*UpdatePasswordReq) GetToken

func (m *UpdatePasswordReq) GetToken() string

func (*UpdatePasswordReq) ProtoMessage

func (*UpdatePasswordReq) ProtoMessage()

func (*UpdatePasswordReq) Reset

func (m *UpdatePasswordReq) Reset()

func (*UpdatePasswordReq) String

func (m *UpdatePasswordReq) String() string

func (*UpdatePasswordReq) XXX_DiscardUnknown

func (m *UpdatePasswordReq) XXX_DiscardUnknown()

func (*UpdatePasswordReq) XXX_Marshal

func (m *UpdatePasswordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePasswordReq) XXX_Merge

func (m *UpdatePasswordReq) XXX_Merge(src proto.Message)

func (*UpdatePasswordReq) XXX_Size

func (m *UpdatePasswordReq) XXX_Size() int

func (*UpdatePasswordReq) XXX_Unmarshal

func (m *UpdatePasswordReq) XXX_Unmarshal(b []byte) error

type UserInfo

type UserInfo struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Mobile               string   `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Nickname             string   `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar               string   `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Status               uint32   `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	Token                string   `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
	RegisterAt           string   `protobuf:"bytes,8,opt,name=register_at,json=registerAt,proto3" json:"register_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserInfo) Descriptor

func (*UserInfo) Descriptor() ([]byte, []int)

func (*UserInfo) GetAvatar

func (m *UserInfo) GetAvatar() string

func (*UserInfo) GetId

func (m *UserInfo) GetId() uint32

func (*UserInfo) GetMobile

func (m *UserInfo) GetMobile() string

func (*UserInfo) GetName

func (m *UserInfo) GetName() string

func (*UserInfo) GetNickname

func (m *UserInfo) GetNickname() string

func (*UserInfo) GetRegisterAt

func (m *UserInfo) GetRegisterAt() string

func (*UserInfo) GetStatus

func (m *UserInfo) GetStatus() uint32

func (*UserInfo) GetToken

func (m *UserInfo) GetToken() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

func (*UserInfo) XXX_DiscardUnknown

func (m *UserInfo) XXX_DiscardUnknown()

func (*UserInfo) XXX_Marshal

func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserInfo) XXX_Merge

func (m *UserInfo) XXX_Merge(src proto.Message)

func (*UserInfo) XXX_Size

func (m *UserInfo) XXX_Size() int

func (*UserInfo) XXX_Unmarshal

func (m *UserInfo) XXX_Unmarshal(b []byte) error

type UserReq

type UserReq struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Code                 string   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Appid                string   `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserReq) Descriptor

func (*UserReq) Descriptor() ([]byte, []int)

func (*UserReq) GetAppid

func (m *UserReq) GetAppid() string

func (*UserReq) GetCode

func (m *UserReq) GetCode() string

func (*UserReq) GetId

func (m *UserReq) GetId() uint32

func (*UserReq) ProtoMessage

func (*UserReq) ProtoMessage()

func (*UserReq) Reset

func (m *UserReq) Reset()

func (*UserReq) String

func (m *UserReq) String() string

func (*UserReq) XXX_DiscardUnknown

func (m *UserReq) XXX_DiscardUnknown()

func (*UserReq) XXX_Marshal

func (m *UserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserReq) XXX_Merge

func (m *UserReq) XXX_Merge(src proto.Message)

func (*UserReq) XXX_Size

func (m *UserReq) XXX_Size() int

func (*UserReq) XXX_Unmarshal

func (m *UserReq) XXX_Unmarshal(b []byte) error

type UserServiceClient

type UserServiceClient interface {
	GetUserByUid(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserInfo, error)
	GetUserByCode(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserInfo, error)
	GetUserByBrandToken(ctx context.Context, in *BrandTokenReq, opts ...grpc.CallOption) (*UserInfo, error)
	// 更新密码(通过token)
	UpdatePasswordByToken(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UserInfo, error)
	// 获取token
	GetToken(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenInfo, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	GetUserByUid(context.Context, *UserReq) (*UserInfo, error)
	GetUserByCode(context.Context, *UserReq) (*UserInfo, error)
	GetUserByBrandToken(context.Context, *BrandTokenReq) (*UserInfo, error)
	// 更新密码(通过token)
	UpdatePasswordByToken(context.Context, *UpdatePasswordReq) (*UserInfo, error)
	// 获取token
	GetToken(context.Context, *TokenReq) (*TokenInfo, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL