Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type ActivateAccountReq
- type ActivateAccountResp
- func (*ActivateAccountResp) Descriptor() ([]byte, []int)deprecated
- func (x *ActivateAccountResp) GetMessage() string
- func (x *ActivateAccountResp) GetSuccess() bool
- func (x *ActivateAccountResp) GetToken() string
- func (*ActivateAccountResp) ProtoMessage()
- func (x *ActivateAccountResp) ProtoReflect() protoreflect.Message
- func (x *ActivateAccountResp) Reset()
- func (x *ActivateAccountResp) String() string
- type CancelReq
- type CancelResp
- type GetUserInfoReq
- type GetUserInfoResp
- func (*GetUserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoResp) GetMessage() string
- func (x *GetUserInfoResp) GetSuccess() bool
- func (x *GetUserInfoResp) GetUser() *User
- func (*GetUserInfoResp) ProtoMessage()
- func (x *GetUserInfoResp) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoResp) Reset()
- func (x *GetUserInfoResp) String() string
- type SignInReq
- type SignInResp
- func (*SignInResp) Descriptor() ([]byte, []int)deprecated
- func (x *SignInResp) GetMessage() string
- func (x *SignInResp) GetSuccess() bool
- func (x *SignInResp) GetToken() string
- func (*SignInResp) ProtoMessage()
- func (x *SignInResp) ProtoReflect() protoreflect.Message
- func (x *SignInResp) Reset()
- func (x *SignInResp) String() string
- type SignOutReq
- type SignOutResp
- func (*SignOutResp) Descriptor() ([]byte, []int)deprecated
- func (x *SignOutResp) GetMessage() string
- func (x *SignOutResp) GetSuccess() bool
- func (*SignOutResp) ProtoMessage()
- func (x *SignOutResp) ProtoReflect() protoreflect.Message
- func (x *SignOutResp) Reset()
- func (x *SignOutResp) String() string
- type SignUpReq
- func (*SignUpReq) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpReq) GetEmail() string
- func (x *SignUpReq) GetName() string
- func (x *SignUpReq) GetPassword() string
- func (x *SignUpReq) GetTel() int32
- func (*SignUpReq) ProtoMessage()
- func (x *SignUpReq) ProtoReflect() protoreflect.Message
- func (x *SignUpReq) Reset()
- func (x *SignUpReq) String() string
- type SignUpResp
- func (*SignUpResp) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpResp) GetId() int32
- func (x *SignUpResp) GetKey() string
- func (x *SignUpResp) GetMessage() string
- func (x *SignUpResp) GetSuccess() bool
- func (*SignUpResp) ProtoMessage()
- func (x *SignUpResp) ProtoReflect() protoreflect.Message
- func (x *SignUpResp) Reset()
- func (x *SignUpResp) String() string
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) ActivateAccount(context.Context, *ActivateAccountReq) (*ActivateAccountResp, error)
- func (*UnimplementedUserServiceServer) Cancel(context.Context, *CancelReq) (*CancelResp, error)
- func (*UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
- func (*UnimplementedUserServiceServer) SignIn(context.Context, *SignInReq) (*SignInResp, error)
- func (*UnimplementedUserServiceServer) SignOut(context.Context, *SignOutReq) (*SignOutResp, error)
- func (*UnimplementedUserServiceServer) SignUp(context.Context, *SignUpReq) (*SignUpResp, error)
- func (*UnimplementedUserServiceServer) UpdateEmail(context.Context, *UpdateEmailReq) (*UpdateEmailResp, error)
- func (*UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
- func (*UnimplementedUserServiceServer) UpdateProfile(context.Context, *UpdateProfileReq) (*UpdateProfileResp, error)
- func (*UnimplementedUserServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error)
- func (*UnimplementedUserServiceServer) UploadProfile(context.Context, *UploadProfileReq) (*UploadProfileResp, error)
- type UpdateEmailReq
- func (*UpdateEmailReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEmailReq) GetEmail() string
- func (x *UpdateEmailReq) GetToken() string
- func (*UpdateEmailReq) ProtoMessage()
- func (x *UpdateEmailReq) ProtoReflect() protoreflect.Message
- func (x *UpdateEmailReq) Reset()
- func (x *UpdateEmailReq) String() string
- type UpdateEmailResp
- func (*UpdateEmailResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEmailResp) GetKey() string
- func (x *UpdateEmailResp) GetMessage() string
- func (x *UpdateEmailResp) GetSuccess() bool
- func (*UpdateEmailResp) ProtoMessage()
- func (x *UpdateEmailResp) ProtoReflect() protoreflect.Message
- func (x *UpdateEmailResp) Reset()
- func (x *UpdateEmailResp) String() string
- type UpdatePasswordReq
- func (*UpdatePasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordReq) GetNewPassword() string
- func (x *UpdatePasswordReq) GetPassword() string
- func (x *UpdatePasswordReq) GetToken() string
- func (*UpdatePasswordReq) ProtoMessage()
- func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordReq) Reset()
- func (x *UpdatePasswordReq) String() string
- type UpdatePasswordResp
- func (*UpdatePasswordResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordResp) GetMessage() string
- func (x *UpdatePasswordResp) GetSuccess() bool
- func (*UpdatePasswordResp) ProtoMessage()
- func (x *UpdatePasswordResp) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordResp) Reset()
- func (x *UpdatePasswordResp) String() string
- type UpdateProfileReq
- func (*UpdateProfileReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileReq) GetProfile() string
- func (x *UpdateProfileReq) GetToken() string
- func (*UpdateProfileReq) ProtoMessage()
- func (x *UpdateProfileReq) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileReq) Reset()
- func (x *UpdateProfileReq) String() string
- type UpdateProfileResp
- func (*UpdateProfileResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileResp) GetMessage() string
- func (x *UpdateProfileResp) GetSuccess() bool
- func (*UpdateProfileResp) ProtoMessage()
- func (x *UpdateProfileResp) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileResp) Reset()
- func (x *UpdateProfileResp) String() string
- type UpdateUserInfoReq
- func (*UpdateUserInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserInfoReq) GetName() string
- func (x *UpdateUserInfoReq) GetTel() int32
- func (x *UpdateUserInfoReq) GetToken() string
- func (*UpdateUserInfoReq) ProtoMessage()
- func (x *UpdateUserInfoReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserInfoReq) Reset()
- func (x *UpdateUserInfoReq) String() string
- type UpdateUserInfoResp
- func (*UpdateUserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserInfoResp) GetMessage() string
- func (x *UpdateUserInfoResp) GetSuccess() bool
- func (*UpdateUserInfoResp) ProtoMessage()
- func (x *UpdateUserInfoResp) ProtoReflect() protoreflect.Message
- func (x *UpdateUserInfoResp) Reset()
- func (x *UpdateUserInfoResp) String() string
- type UploadProfileReq
- func (*UploadProfileReq) Descriptor() ([]byte, []int)deprecated
- func (x *UploadProfileReq) GetFile() []byte
- func (x *UploadProfileReq) GetToken() string
- func (*UploadProfileReq) ProtoMessage()
- func (x *UploadProfileReq) ProtoReflect() protoreflect.Message
- func (x *UploadProfileReq) Reset()
- func (x *UploadProfileReq) String() string
- type UploadProfileResp
- func (*UploadProfileResp) Descriptor() ([]byte, []int)deprecated
- func (x *UploadProfileResp) GetMessage() string
- func (x *UploadProfileResp) GetProfile() string
- func (x *UploadProfileResp) GetSuccess() bool
- func (*UploadProfileResp) ProtoMessage()
- func (x *UploadProfileResp) ProtoReflect() protoreflect.Message
- func (x *UploadProfileResp) Reset()
- func (x *UploadProfileResp) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetId() int32
- func (x *User) GetName() string
- func (x *User) GetProfile() string
- func (x *User) GetStatus() int32
- func (x *User) GetTel() int32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_userservice_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type ActivateAccountReq ¶
type ActivateAccountReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ActivateAccountReq) Descriptor
deprecated
func (*ActivateAccountReq) Descriptor() ([]byte, []int)
Deprecated: Use ActivateAccountReq.ProtoReflect.Descriptor instead.
func (*ActivateAccountReq) GetKey ¶ added in v1.0.2
func (x *ActivateAccountReq) GetKey() string
func (*ActivateAccountReq) ProtoMessage ¶
func (*ActivateAccountReq) ProtoMessage()
func (*ActivateAccountReq) ProtoReflect ¶
func (x *ActivateAccountReq) ProtoReflect() protoreflect.Message
func (*ActivateAccountReq) Reset ¶
func (x *ActivateAccountReq) Reset()
func (*ActivateAccountReq) String ¶
func (x *ActivateAccountReq) String() string
type ActivateAccountResp ¶
type ActivateAccountResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ActivateAccountResp) Descriptor
deprecated
func (*ActivateAccountResp) Descriptor() ([]byte, []int)
Deprecated: Use ActivateAccountResp.ProtoReflect.Descriptor instead.
func (*ActivateAccountResp) GetMessage ¶
func (x *ActivateAccountResp) GetMessage() string
func (*ActivateAccountResp) GetSuccess ¶
func (x *ActivateAccountResp) GetSuccess() bool
func (*ActivateAccountResp) GetToken ¶
func (x *ActivateAccountResp) GetToken() string
func (*ActivateAccountResp) ProtoMessage ¶
func (*ActivateAccountResp) ProtoMessage()
func (*ActivateAccountResp) ProtoReflect ¶
func (x *ActivateAccountResp) ProtoReflect() protoreflect.Message
func (*ActivateAccountResp) Reset ¶
func (x *ActivateAccountResp) Reset()
func (*ActivateAccountResp) String ¶
func (x *ActivateAccountResp) String() string
type CancelReq ¶
type CancelReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CancelReq) Descriptor
deprecated
func (*CancelReq) GetPassword ¶
func (*CancelReq) ProtoMessage ¶
func (*CancelReq) ProtoMessage()
func (*CancelReq) ProtoReflect ¶
func (x *CancelReq) ProtoReflect() protoreflect.Message
type CancelResp ¶
type CancelResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CancelResp) Descriptor
deprecated
func (*CancelResp) Descriptor() ([]byte, []int)
Deprecated: Use CancelResp.ProtoReflect.Descriptor instead.
func (*CancelResp) GetMessage ¶
func (x *CancelResp) GetMessage() string
func (*CancelResp) GetSuccess ¶
func (x *CancelResp) GetSuccess() bool
func (*CancelResp) ProtoMessage ¶
func (*CancelResp) ProtoMessage()
func (*CancelResp) ProtoReflect ¶
func (x *CancelResp) ProtoReflect() protoreflect.Message
func (*CancelResp) Reset ¶
func (x *CancelResp) Reset()
func (*CancelResp) String ¶
func (x *CancelResp) String() string
type GetUserInfoReq ¶
type GetUserInfoReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoReq) Descriptor
deprecated
func (*GetUserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoReq.ProtoReflect.Descriptor instead.
func (*GetUserInfoReq) GetToken ¶
func (x *GetUserInfoReq) GetToken() string
func (*GetUserInfoReq) ProtoMessage ¶
func (*GetUserInfoReq) ProtoMessage()
func (*GetUserInfoReq) ProtoReflect ¶
func (x *GetUserInfoReq) ProtoReflect() protoreflect.Message
func (*GetUserInfoReq) Reset ¶
func (x *GetUserInfoReq) Reset()
func (*GetUserInfoReq) String ¶
func (x *GetUserInfoReq) String() string
type GetUserInfoResp ¶
type GetUserInfoResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoResp) Descriptor
deprecated
func (*GetUserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoResp.ProtoReflect.Descriptor instead.
func (*GetUserInfoResp) GetMessage ¶
func (x *GetUserInfoResp) GetMessage() string
func (*GetUserInfoResp) GetSuccess ¶
func (x *GetUserInfoResp) GetSuccess() bool
func (*GetUserInfoResp) GetUser ¶
func (x *GetUserInfoResp) GetUser() *User
func (*GetUserInfoResp) ProtoMessage ¶
func (*GetUserInfoResp) ProtoMessage()
func (*GetUserInfoResp) ProtoReflect ¶
func (x *GetUserInfoResp) ProtoReflect() protoreflect.Message
func (*GetUserInfoResp) Reset ¶
func (x *GetUserInfoResp) Reset()
func (*GetUserInfoResp) String ¶
func (x *GetUserInfoResp) String() string
type SignInReq ¶
type SignInReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignInReq) Descriptor
deprecated
func (*SignInReq) GetPassword ¶
func (*SignInReq) ProtoMessage ¶
func (*SignInReq) ProtoMessage()
func (*SignInReq) ProtoReflect ¶
func (x *SignInReq) ProtoReflect() protoreflect.Message
type SignInResp ¶
type SignInResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SignInResp) Descriptor
deprecated
func (*SignInResp) Descriptor() ([]byte, []int)
Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.
func (*SignInResp) GetMessage ¶
func (x *SignInResp) GetMessage() string
func (*SignInResp) GetSuccess ¶
func (x *SignInResp) GetSuccess() bool
func (*SignInResp) GetToken ¶
func (x *SignInResp) GetToken() string
func (*SignInResp) ProtoMessage ¶
func (*SignInResp) ProtoMessage()
func (*SignInResp) ProtoReflect ¶
func (x *SignInResp) ProtoReflect() protoreflect.Message
func (*SignInResp) Reset ¶
func (x *SignInResp) Reset()
func (*SignInResp) String ¶
func (x *SignInResp) String() string
type SignOutReq ¶
type SignOutReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SignOutReq) Descriptor
deprecated
func (*SignOutReq) Descriptor() ([]byte, []int)
Deprecated: Use SignOutReq.ProtoReflect.Descriptor instead.
func (*SignOutReq) GetToken ¶
func (x *SignOutReq) GetToken() string
func (*SignOutReq) ProtoMessage ¶
func (*SignOutReq) ProtoMessage()
func (*SignOutReq) ProtoReflect ¶
func (x *SignOutReq) ProtoReflect() protoreflect.Message
func (*SignOutReq) Reset ¶
func (x *SignOutReq) Reset()
func (*SignOutReq) String ¶
func (x *SignOutReq) String() string
type SignOutResp ¶
type SignOutResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SignOutResp) Descriptor
deprecated
func (*SignOutResp) Descriptor() ([]byte, []int)
Deprecated: Use SignOutResp.ProtoReflect.Descriptor instead.
func (*SignOutResp) GetMessage ¶
func (x *SignOutResp) GetMessage() string
func (*SignOutResp) GetSuccess ¶
func (x *SignOutResp) GetSuccess() bool
func (*SignOutResp) ProtoMessage ¶
func (*SignOutResp) ProtoMessage()
func (*SignOutResp) ProtoReflect ¶
func (x *SignOutResp) ProtoReflect() protoreflect.Message
func (*SignOutResp) Reset ¶
func (x *SignOutResp) Reset()
func (*SignOutResp) String ¶
func (x *SignOutResp) String() string
type SignUpReq ¶
type SignUpReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Tel int32 `protobuf:"varint,4,opt,name=tel,proto3" json:"tel,omitempty"` // contains filtered or unexported fields }
func (*SignUpReq) Descriptor
deprecated
func (*SignUpReq) GetPassword ¶
func (*SignUpReq) ProtoMessage ¶
func (*SignUpReq) ProtoMessage()
func (*SignUpReq) ProtoReflect ¶
func (x *SignUpReq) ProtoReflect() protoreflect.Message
type SignUpResp ¶
type SignUpResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Id int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*SignUpResp) Descriptor
deprecated
func (*SignUpResp) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResp.ProtoReflect.Descriptor instead.
func (*SignUpResp) GetId ¶
func (x *SignUpResp) GetId() int32
func (*SignUpResp) GetKey ¶ added in v1.0.2
func (x *SignUpResp) GetKey() string
func (*SignUpResp) GetMessage ¶
func (x *SignUpResp) GetMessage() string
func (*SignUpResp) GetSuccess ¶
func (x *SignUpResp) GetSuccess() bool
func (*SignUpResp) ProtoMessage ¶
func (*SignUpResp) ProtoMessage()
func (*SignUpResp) ProtoReflect ¶
func (x *SignUpResp) ProtoReflect() protoreflect.Message
func (*SignUpResp) Reset ¶
func (x *SignUpResp) Reset()
func (*SignUpResp) String ¶
func (x *SignUpResp) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) ActivateAccount ¶
func (*UnimplementedUserServiceServer) ActivateAccount(context.Context, *ActivateAccountReq) (*ActivateAccountResp, error)
func (*UnimplementedUserServiceServer) Cancel ¶
func (*UnimplementedUserServiceServer) Cancel(context.Context, *CancelReq) (*CancelResp, error)
func (*UnimplementedUserServiceServer) GetUserInfo ¶
func (*UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
func (*UnimplementedUserServiceServer) SignIn ¶
func (*UnimplementedUserServiceServer) SignIn(context.Context, *SignInReq) (*SignInResp, error)
func (*UnimplementedUserServiceServer) SignOut ¶
func (*UnimplementedUserServiceServer) SignOut(context.Context, *SignOutReq) (*SignOutResp, error)
func (*UnimplementedUserServiceServer) SignUp ¶
func (*UnimplementedUserServiceServer) SignUp(context.Context, *SignUpReq) (*SignUpResp, error)
func (*UnimplementedUserServiceServer) UpdateEmail ¶ added in v1.1.0
func (*UnimplementedUserServiceServer) UpdateEmail(context.Context, *UpdateEmailReq) (*UpdateEmailResp, error)
func (*UnimplementedUserServiceServer) UpdatePassword ¶
func (*UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
func (*UnimplementedUserServiceServer) UpdateProfile ¶ added in v1.0.5
func (*UnimplementedUserServiceServer) UpdateProfile(context.Context, *UpdateProfileReq) (*UpdateProfileResp, error)
func (*UnimplementedUserServiceServer) UpdateUserInfo ¶
func (*UnimplementedUserServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error)
func (*UnimplementedUserServiceServer) UploadProfile ¶ added in v1.1.0
func (*UnimplementedUserServiceServer) UploadProfile(context.Context, *UploadProfileReq) (*UploadProfileResp, error)
type UpdateEmailReq ¶ added in v1.1.0
type UpdateEmailReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*UpdateEmailReq) Descriptor
deprecated
added in
v1.1.0
func (*UpdateEmailReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEmailReq.ProtoReflect.Descriptor instead.
func (*UpdateEmailReq) GetEmail ¶ added in v1.1.0
func (x *UpdateEmailReq) GetEmail() string
func (*UpdateEmailReq) GetToken ¶ added in v1.1.0
func (x *UpdateEmailReq) GetToken() string
func (*UpdateEmailReq) ProtoMessage ¶ added in v1.1.0
func (*UpdateEmailReq) ProtoMessage()
func (*UpdateEmailReq) ProtoReflect ¶ added in v1.1.0
func (x *UpdateEmailReq) ProtoReflect() protoreflect.Message
func (*UpdateEmailReq) Reset ¶ added in v1.1.0
func (x *UpdateEmailReq) Reset()
func (*UpdateEmailReq) String ¶ added in v1.1.0
func (x *UpdateEmailReq) String() string
type UpdateEmailResp ¶ added in v1.1.0
type UpdateEmailResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*UpdateEmailResp) Descriptor
deprecated
added in
v1.1.0
func (*UpdateEmailResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEmailResp.ProtoReflect.Descriptor instead.
func (*UpdateEmailResp) GetKey ¶ added in v1.1.0
func (x *UpdateEmailResp) GetKey() string
func (*UpdateEmailResp) GetMessage ¶ added in v1.1.0
func (x *UpdateEmailResp) GetMessage() string
func (*UpdateEmailResp) GetSuccess ¶ added in v1.1.0
func (x *UpdateEmailResp) GetSuccess() bool
func (*UpdateEmailResp) ProtoMessage ¶ added in v1.1.0
func (*UpdateEmailResp) ProtoMessage()
func (*UpdateEmailResp) ProtoReflect ¶ added in v1.1.0
func (x *UpdateEmailResp) ProtoReflect() protoreflect.Message
func (*UpdateEmailResp) Reset ¶ added in v1.1.0
func (x *UpdateEmailResp) Reset()
func (*UpdateEmailResp) String ¶ added in v1.1.0
func (x *UpdateEmailResp) String() string
type UpdatePasswordReq ¶
type UpdatePasswordReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordReq) Descriptor
deprecated
func (*UpdatePasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.
func (*UpdatePasswordReq) GetNewPassword ¶
func (x *UpdatePasswordReq) GetNewPassword() string
func (*UpdatePasswordReq) GetPassword ¶
func (x *UpdatePasswordReq) GetPassword() string
func (*UpdatePasswordReq) GetToken ¶
func (x *UpdatePasswordReq) GetToken() string
func (*UpdatePasswordReq) ProtoMessage ¶
func (*UpdatePasswordReq) ProtoMessage()
func (*UpdatePasswordReq) ProtoReflect ¶
func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
func (*UpdatePasswordReq) Reset ¶
func (x *UpdatePasswordReq) Reset()
func (*UpdatePasswordReq) String ¶
func (x *UpdatePasswordReq) String() string
type UpdatePasswordResp ¶
type UpdatePasswordResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordResp) Descriptor
deprecated
func (*UpdatePasswordResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordResp.ProtoReflect.Descriptor instead.
func (*UpdatePasswordResp) GetMessage ¶
func (x *UpdatePasswordResp) GetMessage() string
func (*UpdatePasswordResp) GetSuccess ¶
func (x *UpdatePasswordResp) GetSuccess() bool
func (*UpdatePasswordResp) ProtoMessage ¶
func (*UpdatePasswordResp) ProtoMessage()
func (*UpdatePasswordResp) ProtoReflect ¶
func (x *UpdatePasswordResp) ProtoReflect() protoreflect.Message
func (*UpdatePasswordResp) Reset ¶
func (x *UpdatePasswordResp) Reset()
func (*UpdatePasswordResp) String ¶
func (x *UpdatePasswordResp) String() string
type UpdateProfileReq ¶ added in v1.0.5
type UpdateProfileReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileReq) Descriptor
deprecated
added in
v1.0.5
func (*UpdateProfileReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileReq.ProtoReflect.Descriptor instead.
func (*UpdateProfileReq) GetProfile ¶ added in v1.1.0
func (x *UpdateProfileReq) GetProfile() string
func (*UpdateProfileReq) GetToken ¶ added in v1.0.5
func (x *UpdateProfileReq) GetToken() string
func (*UpdateProfileReq) ProtoMessage ¶ added in v1.0.5
func (*UpdateProfileReq) ProtoMessage()
func (*UpdateProfileReq) ProtoReflect ¶ added in v1.0.5
func (x *UpdateProfileReq) ProtoReflect() protoreflect.Message
func (*UpdateProfileReq) Reset ¶ added in v1.0.5
func (x *UpdateProfileReq) Reset()
func (*UpdateProfileReq) String ¶ added in v1.0.5
func (x *UpdateProfileReq) String() string
type UpdateProfileResp ¶ added in v1.0.5
type UpdateProfileResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileResp) Descriptor
deprecated
added in
v1.0.5
func (*UpdateProfileResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileResp.ProtoReflect.Descriptor instead.
func (*UpdateProfileResp) GetMessage ¶ added in v1.0.5
func (x *UpdateProfileResp) GetMessage() string
func (*UpdateProfileResp) GetSuccess ¶ added in v1.0.5
func (x *UpdateProfileResp) GetSuccess() bool
func (*UpdateProfileResp) ProtoMessage ¶ added in v1.0.5
func (*UpdateProfileResp) ProtoMessage()
func (*UpdateProfileResp) ProtoReflect ¶ added in v1.0.5
func (x *UpdateProfileResp) ProtoReflect() protoreflect.Message
func (*UpdateProfileResp) Reset ¶ added in v1.0.5
func (x *UpdateProfileResp) Reset()
func (*UpdateProfileResp) String ¶ added in v1.0.5
func (x *UpdateProfileResp) String() string
type UpdateUserInfoReq ¶
type UpdateUserInfoReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Tel int32 `protobuf:"varint,3,opt,name=tel,proto3" json:"tel,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserInfoReq) Descriptor
deprecated
func (*UpdateUserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserInfoReq.ProtoReflect.Descriptor instead.
func (*UpdateUserInfoReq) GetName ¶
func (x *UpdateUserInfoReq) GetName() string
func (*UpdateUserInfoReq) GetTel ¶
func (x *UpdateUserInfoReq) GetTel() int32
func (*UpdateUserInfoReq) GetToken ¶
func (x *UpdateUserInfoReq) GetToken() string
func (*UpdateUserInfoReq) ProtoMessage ¶
func (*UpdateUserInfoReq) ProtoMessage()
func (*UpdateUserInfoReq) ProtoReflect ¶
func (x *UpdateUserInfoReq) ProtoReflect() protoreflect.Message
func (*UpdateUserInfoReq) Reset ¶
func (x *UpdateUserInfoReq) Reset()
func (*UpdateUserInfoReq) String ¶
func (x *UpdateUserInfoReq) String() string
type UpdateUserInfoResp ¶
type UpdateUserInfoResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserInfoResp) Descriptor
deprecated
func (*UpdateUserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserInfoResp.ProtoReflect.Descriptor instead.
func (*UpdateUserInfoResp) GetMessage ¶
func (x *UpdateUserInfoResp) GetMessage() string
func (*UpdateUserInfoResp) GetSuccess ¶
func (x *UpdateUserInfoResp) GetSuccess() bool
func (*UpdateUserInfoResp) ProtoMessage ¶
func (*UpdateUserInfoResp) ProtoMessage()
func (*UpdateUserInfoResp) ProtoReflect ¶
func (x *UpdateUserInfoResp) ProtoReflect() protoreflect.Message
func (*UpdateUserInfoResp) Reset ¶
func (x *UpdateUserInfoResp) Reset()
func (*UpdateUserInfoResp) String ¶
func (x *UpdateUserInfoResp) String() string
type UploadProfileReq ¶ added in v1.1.0
type UploadProfileReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` File []byte `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
func (*UploadProfileReq) Descriptor
deprecated
added in
v1.1.0
func (*UploadProfileReq) Descriptor() ([]byte, []int)
Deprecated: Use UploadProfileReq.ProtoReflect.Descriptor instead.
func (*UploadProfileReq) GetFile ¶ added in v1.1.0
func (x *UploadProfileReq) GetFile() []byte
func (*UploadProfileReq) GetToken ¶ added in v1.1.0
func (x *UploadProfileReq) GetToken() string
func (*UploadProfileReq) ProtoMessage ¶ added in v1.1.0
func (*UploadProfileReq) ProtoMessage()
func (*UploadProfileReq) ProtoReflect ¶ added in v1.1.0
func (x *UploadProfileReq) ProtoReflect() protoreflect.Message
func (*UploadProfileReq) Reset ¶ added in v1.1.0
func (x *UploadProfileReq) Reset()
func (*UploadProfileReq) String ¶ added in v1.1.0
func (x *UploadProfileReq) String() string
type UploadProfileResp ¶ added in v1.1.0
type UploadProfileResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Profile string `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UploadProfileResp) Descriptor
deprecated
added in
v1.1.0
func (*UploadProfileResp) Descriptor() ([]byte, []int)
Deprecated: Use UploadProfileResp.ProtoReflect.Descriptor instead.
func (*UploadProfileResp) GetMessage ¶ added in v1.1.0
func (x *UploadProfileResp) GetMessage() string
func (*UploadProfileResp) GetProfile ¶ added in v1.1.0
func (x *UploadProfileResp) GetProfile() string
func (*UploadProfileResp) GetSuccess ¶ added in v1.1.0
func (x *UploadProfileResp) GetSuccess() bool
func (*UploadProfileResp) ProtoMessage ¶ added in v1.1.0
func (*UploadProfileResp) ProtoMessage()
func (*UploadProfileResp) ProtoReflect ¶ added in v1.1.0
func (x *UploadProfileResp) ProtoReflect() protoreflect.Message
func (*UploadProfileResp) Reset ¶ added in v1.1.0
func (x *UploadProfileResp) Reset()
func (*UploadProfileResp) String ¶ added in v1.1.0
func (x *UploadProfileResp) String() string
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Profile string `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Tel int32 `protobuf:"varint,5,opt,name=tel,proto3" json:"tel,omitempty"` Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetProfile ¶ added in v1.0.5
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { SignUp(ctx context.Context, in *SignUpReq, opts ...grpc.CallOption) (*SignUpResp, error) ActivateAccount(ctx context.Context, in *ActivateAccountReq, opts ...grpc.CallOption) (*ActivateAccountResp, error) SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error) SignOut(ctx context.Context, in *SignOutReq, opts ...grpc.CallOption) (*SignOutResp, error) Cancel(ctx context.Context, in *CancelReq, opts ...grpc.CallOption) (*CancelResp, error) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) UploadProfile(ctx context.Context, in *UploadProfileReq, opts ...grpc.CallOption) (*UploadProfileResp, error) UpdateProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*UpdateProfileResp, error) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordResp, error) UpdateEmail(ctx context.Context, in *UpdateEmailReq, opts ...grpc.CallOption) (*UpdateEmailResp, 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.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { SignUp(context.Context, *SignUpReq) (*SignUpResp, error) ActivateAccount(context.Context, *ActivateAccountReq) (*ActivateAccountResp, error) SignIn(context.Context, *SignInReq) (*SignInResp, error) SignOut(context.Context, *SignOutReq) (*SignOutResp, error) Cancel(context.Context, *CancelReq) (*CancelResp, error) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) UploadProfile(context.Context, *UploadProfileReq) (*UploadProfileResp, error) UpdateProfile(context.Context, *UpdateProfileReq) (*UpdateProfileResp, error) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error) UpdateEmail(context.Context, *UpdateEmailReq) (*UpdateEmailResp, error) }
UserServiceServer is the server API for UserService service.