Documentation ¶
Index ¶
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type BrandTokenReq
- func (*BrandTokenReq) Descriptor() ([]byte, []int)
- func (m *BrandTokenReq) GetBrandToken() string
- func (m *BrandTokenReq) GetModule() string
- func (m *BrandTokenReq) GetSource() string
- func (*BrandTokenReq) ProtoMessage()
- func (m *BrandTokenReq) Reset()
- func (m *BrandTokenReq) String() string
- func (m *BrandTokenReq) XXX_DiscardUnknown()
- func (m *BrandTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BrandTokenReq) XXX_Merge(src proto.Message)
- func (m *BrandTokenReq) XXX_Size() int
- func (m *BrandTokenReq) XXX_Unmarshal(b []byte) error
- type TokenInfo
- func (*TokenInfo) Descriptor() ([]byte, []int)
- func (m *TokenInfo) GetToken() string
- func (*TokenInfo) ProtoMessage()
- func (m *TokenInfo) Reset()
- func (m *TokenInfo) String() string
- func (m *TokenInfo) XXX_DiscardUnknown()
- func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenInfo) XXX_Merge(src proto.Message)
- func (m *TokenInfo) XXX_Size() int
- func (m *TokenInfo) XXX_Unmarshal(b []byte) error
- type TokenReq
- func (*TokenReq) Descriptor() ([]byte, []int)
- func (m *TokenReq) GetAppid() string
- func (m *TokenReq) GetUid() uint32
- func (*TokenReq) ProtoMessage()
- func (m *TokenReq) Reset()
- func (m *TokenReq) String() string
- func (m *TokenReq) XXX_DiscardUnknown()
- func (m *TokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenReq) XXX_Merge(src proto.Message)
- func (m *TokenReq) XXX_Size() int
- func (m *TokenReq) XXX_Unmarshal(b []byte) error
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) GetToken(ctx context.Context, req *TokenReq) (*TokenInfo, error)
- func (*UnimplementedUserServiceServer) GetUserByBrandToken(ctx context.Context, req *BrandTokenReq) (*UserInfo, error)
- func (*UnimplementedUserServiceServer) GetUserByCode(ctx context.Context, req *UserReq) (*UserInfo, error)
- func (*UnimplementedUserServiceServer) GetUserByUid(ctx context.Context, req *UserReq) (*UserInfo, error)
- func (*UnimplementedUserServiceServer) UpdatePasswordByToken(ctx context.Context, req *UpdatePasswordReq) (*UserInfo, error)
- type UpdatePasswordReq
- func (*UpdatePasswordReq) Descriptor() ([]byte, []int)
- func (m *UpdatePasswordReq) GetAppid() string
- func (m *UpdatePasswordReq) GetNewPassword() string
- func (m *UpdatePasswordReq) GetToken() string
- func (*UpdatePasswordReq) ProtoMessage()
- func (m *UpdatePasswordReq) Reset()
- func (m *UpdatePasswordReq) String() string
- func (m *UpdatePasswordReq) XXX_DiscardUnknown()
- func (m *UpdatePasswordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePasswordReq) XXX_Merge(src proto.Message)
- func (m *UpdatePasswordReq) XXX_Size() int
- func (m *UpdatePasswordReq) XXX_Unmarshal(b []byte) error
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetAvatar() string
- func (m *UserInfo) GetId() uint32
- func (m *UserInfo) GetMobile() string
- func (m *UserInfo) GetName() string
- func (m *UserInfo) GetNickname() string
- func (m *UserInfo) GetRegisterAt() string
- func (m *UserInfo) GetStatus() uint32
- func (m *UserInfo) GetToken() string
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
- func (m *UserInfo) XXX_DiscardUnknown()
- func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInfo) XXX_Merge(src proto.Message)
- func (m *UserInfo) XXX_Size() int
- func (m *UserInfo) XXX_Unmarshal(b []byte) error
- type UserReq
- func (*UserReq) Descriptor() ([]byte, []int)
- func (m *UserReq) GetAppid() string
- func (m *UserReq) GetCode() string
- func (m *UserReq) GetId() uint32
- func (*UserReq) ProtoMessage()
- func (m *UserReq) Reset()
- func (m *UserReq) String() string
- func (m *UserReq) XXX_DiscardUnknown()
- func (m *UserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserReq) XXX_Merge(src proto.Message)
- func (m *UserReq) XXX_Size() int
- func (m *UserReq) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
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) ProtoMessage ¶
func (*TokenInfo) ProtoMessage()
func (*TokenInfo) XXX_DiscardUnknown ¶
func (m *TokenInfo) XXX_DiscardUnknown()
func (*TokenInfo) XXX_Marshal ¶
func (*TokenInfo) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*TokenReq) ProtoMessage()
func (*TokenReq) XXX_DiscardUnknown ¶
func (m *TokenReq) XXX_DiscardUnknown()
func (*TokenReq) XXX_Marshal ¶
func (*TokenReq) XXX_Unmarshal ¶
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) GetUserByBrandToken ¶
func (*UnimplementedUserServiceServer) GetUserByBrandToken(ctx context.Context, req *BrandTokenReq) (*UserInfo, error)
func (*UnimplementedUserServiceServer) GetUserByCode ¶
func (*UnimplementedUserServiceServer) GetUserByUid ¶
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) GetNickname ¶
func (*UserInfo) GetRegisterAt ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) XXX_DiscardUnknown ¶
func (m *UserInfo) XXX_DiscardUnknown()
func (*UserInfo) XXX_Marshal ¶
func (*UserInfo) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*UserReq) ProtoMessage()
func (*UserReq) XXX_DiscardUnknown ¶
func (m *UserReq) XXX_DiscardUnknown()
func (*UserReq) XXX_Marshal ¶
func (*UserReq) XXX_Unmarshal ¶
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.
Click to show internal directories.
Click to hide internal directories.