Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type ChangePasswordReply
- func (*ChangePasswordReply) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordReply) GetCode() int32
- func (x *ChangePasswordReply) GetMsg() string
- func (*ChangePasswordReply) ProtoMessage()
- func (x *ChangePasswordReply) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordReply) Reset()
- func (x *ChangePasswordReply) String() string
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordRequest) GetConfirmPassword() string
- func (x *ChangePasswordRequest) GetEmail() string
- func (x *ChangePasswordRequest) GetNewPassword() string
- func (x *ChangePasswordRequest) GetPassword() string
- func (*ChangePasswordRequest) ProtoMessage()
- func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordRequest) Reset()
- func (x *ChangePasswordRequest) String() string
- type GetProfileReply
- func (*GetProfileReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileReply) GetCode() int32
- func (x *GetProfileReply) GetData() *Profile
- func (x *GetProfileReply) GetMsg() string
- func (*GetProfileReply) ProtoMessage()
- func (x *GetProfileReply) ProtoReflect() protoreflect.Message
- func (x *GetProfileReply) Reset()
- func (x *GetProfileReply) String() string
- type GetProfileRequest
- type GetUserInfoReply
- func (*GetUserInfoReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoReply) GetCode() int32
- func (x *GetUserInfoReply) GetMsg() string
- func (x *GetUserInfoReply) GetUserId() int64
- func (*GetUserInfoReply) ProtoMessage()
- func (x *GetUserInfoReply) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoReply) Reset()
- func (x *GetUserInfoReply) String() string
- type GetUserInfoRequest
- func (*GetUserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoRequest) GetToken() string
- func (*GetUserInfoRequest) ProtoMessage()
- func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoRequest) Reset()
- func (x *GetUserInfoRequest) String() string
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetCode() int32
- func (x *LoginReply) GetMsg() string
- func (x *LoginReply) GetRefreshToken() string
- func (x *LoginReply) GetToken() string
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LogoutReply
- type LogoutRequest
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAbout() string
- func (x *Profile) GetAvatar() string
- func (x *Profile) GetBirthday() string
- func (x *Profile) GetNickname() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type RefreshTokenReply
- func (*RefreshTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenReply) GetCode() int32
- func (x *RefreshTokenReply) GetMsg() string
- func (x *RefreshTokenReply) GetToken() string
- func (*RefreshTokenReply) ProtoMessage()
- func (x *RefreshTokenReply) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenReply) Reset()
- func (x *RefreshTokenReply) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type SignUpReply
- func (*SignUpReply) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpReply) GetCode() int32
- func (x *SignUpReply) GetData() string
- func (x *SignUpReply) GetMsg() string
- func (*SignUpReply) ProtoMessage()
- func (x *SignUpReply) ProtoReflect() protoreflect.Message
- func (x *SignUpReply) Reset()
- func (x *SignUpReply) String() string
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetConfirmPassword() string
- func (x *SignUpRequest) GetEmail() string
- func (x *SignUpRequest) GetPassword() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordReply, error)
- func (UnimplementedUserServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error)
- func (UnimplementedUserServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoReply, error)
- func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedUserServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
- func (UnimplementedUserServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error)
- func (UnimplementedUserServer) SignUp(context.Context, *SignUpRequest) (*SignUpReply, error)
- func (UnimplementedUserServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileReply, error)
- func (UnimplementedUserServer) WriteOff(context.Context, *WriteOffRequest) (*WriteOffReply, error)
- type UnsafeUserServer
- type UpdateProfileReply
- func (*UpdateProfileReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileReply) GetCode() int32
- func (x *UpdateProfileReply) GetMsg() string
- func (*UpdateProfileReply) ProtoMessage()
- func (x *UpdateProfileReply) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileReply) Reset()
- func (x *UpdateProfileReply) String() string
- type UpdateProfileRequest
- func (*UpdateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileRequest) GetAbout() string
- func (x *UpdateProfileRequest) GetAvatar() string
- func (x *UpdateProfileRequest) GetBirthday() string
- func (x *UpdateProfileRequest) GetNickname() string
- func (x *UpdateProfileRequest) GetToken() string
- func (*UpdateProfileRequest) ProtoMessage()
- func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileRequest) Reset()
- func (x *UpdateProfileRequest) String() string
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...http.CallOption) (*ChangePasswordReply, error)
- func (c *UserHTTPClientImpl) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...http.CallOption) (*GetProfileReply, error)
- func (c *UserHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *UserHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*LogoutReply, error)
- func (c *UserHTTPClientImpl) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...http.CallOption) (*RefreshTokenReply, error)
- func (c *UserHTTPClientImpl) SignUp(ctx context.Context, in *SignUpRequest, opts ...http.CallOption) (*SignUpReply, error)
- func (c *UserHTTPClientImpl) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...http.CallOption) (*UpdateProfileReply, error)
- func (c *UserHTTPClientImpl) WriteOff(ctx context.Context, in *WriteOffRequest, opts ...http.CallOption) (*WriteOffReply, error)
- type UserHTTPServer
- type UserServer
- type WriteOffReply
- func (*WriteOffReply) Descriptor() ([]byte, []int)deprecated
- func (x *WriteOffReply) GetCode() int32
- func (x *WriteOffReply) GetMsg() string
- func (*WriteOffReply) ProtoMessage()
- func (x *WriteOffReply) ProtoReflect() protoreflect.Message
- func (x *WriteOffReply) Reset()
- func (x *WriteOffReply) String() string
- type WriteOffRequest
- func (*WriteOffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteOffRequest) GetEmail() string
- func (x *WriteOffRequest) GetPassword() string
- func (*WriteOffRequest) ProtoMessage()
- func (x *WriteOffRequest) ProtoReflect() protoreflect.Message
- func (x *WriteOffRequest) Reset()
- func (x *WriteOffRequest) String() string
Constants ¶
const ( User_SignUp_FullMethodName = "/api.user.v1.User/SignUp" User_Login_FullMethodName = "/api.user.v1.User/Login" User_Logout_FullMethodName = "/api.user.v1.User/Logout" User_RefreshToken_FullMethodName = "/api.user.v1.User/RefreshToken" User_ChangePassword_FullMethodName = "/api.user.v1.User/ChangePassword" User_WriteOff_FullMethodName = "/api.user.v1.User/WriteOff" User_GetProfile_FullMethodName = "/api.user.v1.User/GetProfile" User_UpdateProfile_FullMethodName = "/api.user.v1.User/UpdateProfile" User_GetUserInfo_FullMethodName = "/api.user.v1.User/GetUserInfo" )
const OperationUserChangePassword = "/api.user.v1.User/ChangePassword"
const OperationUserGetProfile = "/api.user.v1.User/GetProfile"
const OperationUserLogin = "/api.user.v1.User/Login"
const OperationUserLogout = "/api.user.v1.User/Logout"
const OperationUserRefreshToken = "/api.user.v1.User/RefreshToken"
const OperationUserSignUp = "/api.user.v1.User/SignUp"
const OperationUserUpdateProfile = "/api.user.v1.User/UpdateProfile"
const OperationUserWriteOff = "/api.user.v1.User/WriteOff"
Variables ¶
var File_api_user_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", Handler: _User_SignUp_Handler, }, { MethodName: "Login", Handler: _User_Login_Handler, }, { MethodName: "Logout", Handler: _User_Logout_Handler, }, { MethodName: "RefreshToken", Handler: _User_RefreshToken_Handler, }, { MethodName: "ChangePassword", Handler: _User_ChangePassword_Handler, }, { MethodName: "WriteOff", Handler: _User_WriteOff_Handler, }, { MethodName: "GetProfile", Handler: _User_GetProfile_Handler, }, { MethodName: "UpdateProfile", Handler: _User_UpdateProfile_Handler, }, { MethodName: "GetUserInfo", Handler: _User_GetUserInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/v1/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type ChangePasswordReply ¶
type ChangePasswordReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*ChangePasswordReply) Descriptor
deprecated
func (*ChangePasswordReply) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordReply.ProtoReflect.Descriptor instead.
func (*ChangePasswordReply) GetCode ¶
func (x *ChangePasswordReply) GetCode() int32
func (*ChangePasswordReply) GetMsg ¶
func (x *ChangePasswordReply) GetMsg() string
func (*ChangePasswordReply) ProtoMessage ¶
func (*ChangePasswordReply) ProtoMessage()
func (*ChangePasswordReply) ProtoReflect ¶
func (x *ChangePasswordReply) ProtoReflect() protoreflect.Message
func (*ChangePasswordReply) Reset ¶
func (x *ChangePasswordReply) Reset()
func (*ChangePasswordReply) String ¶
func (x *ChangePasswordReply) String() string
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,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"` ConfirmPassword string `protobuf:"bytes,4,opt,name=confirmPassword,proto3" json:"confirmPassword,omitempty"` // contains filtered or unexported fields }
func (*ChangePasswordRequest) Descriptor
deprecated
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangePasswordRequest) GetConfirmPassword ¶
func (x *ChangePasswordRequest) GetConfirmPassword() string
func (*ChangePasswordRequest) GetEmail ¶
func (x *ChangePasswordRequest) GetEmail() string
func (*ChangePasswordRequest) GetNewPassword ¶
func (x *ChangePasswordRequest) GetNewPassword() string
func (*ChangePasswordRequest) GetPassword ¶
func (x *ChangePasswordRequest) GetPassword() string
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) ProtoReflect ¶
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
func (*ChangePasswordRequest) Reset ¶
func (x *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) String ¶
func (x *ChangePasswordRequest) String() string
type GetProfileReply ¶
type GetProfileReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *Profile `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetProfileReply) Descriptor
deprecated
func (*GetProfileReply) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileReply.ProtoReflect.Descriptor instead.
func (*GetProfileReply) GetCode ¶
func (x *GetProfileReply) GetCode() int32
func (*GetProfileReply) GetData ¶
func (x *GetProfileReply) GetData() *Profile
func (*GetProfileReply) GetMsg ¶
func (x *GetProfileReply) GetMsg() string
func (*GetProfileReply) ProtoMessage ¶
func (*GetProfileReply) ProtoMessage()
func (*GetProfileReply) ProtoReflect ¶
func (x *GetProfileReply) ProtoReflect() protoreflect.Message
func (*GetProfileReply) Reset ¶
func (x *GetProfileReply) Reset()
func (*GetProfileReply) String ¶
func (x *GetProfileReply) String() string
type GetProfileRequest ¶
type GetProfileRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetProfileRequest) Descriptor
deprecated
func (*GetProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) GetToken ¶
func (x *GetProfileRequest) GetToken() string
func (*GetProfileRequest) ProtoMessage ¶
func (*GetProfileRequest) ProtoMessage()
func (*GetProfileRequest) ProtoReflect ¶
func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
func (*GetProfileRequest) Reset ¶
func (x *GetProfileRequest) Reset()
func (*GetProfileRequest) String ¶
func (x *GetProfileRequest) String() string
type GetUserInfoReply ¶
type GetUserInfoReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoReply) Descriptor
deprecated
func (*GetUserInfoReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoReply.ProtoReflect.Descriptor instead.
func (*GetUserInfoReply) GetCode ¶
func (x *GetUserInfoReply) GetCode() int32
func (*GetUserInfoReply) GetMsg ¶
func (x *GetUserInfoReply) GetMsg() string
func (*GetUserInfoReply) GetUserId ¶
func (x *GetUserInfoReply) GetUserId() int64
func (*GetUserInfoReply) ProtoMessage ¶
func (*GetUserInfoReply) ProtoMessage()
func (*GetUserInfoReply) ProtoReflect ¶
func (x *GetUserInfoReply) ProtoReflect() protoreflect.Message
func (*GetUserInfoReply) Reset ¶
func (x *GetUserInfoReply) Reset()
func (*GetUserInfoReply) String ¶
func (x *GetUserInfoReply) String() string
type GetUserInfoRequest ¶
type GetUserInfoRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoRequest) Descriptor
deprecated
func (*GetUserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
func (*GetUserInfoRequest) GetToken ¶
func (x *GetUserInfoRequest) GetToken() string
func (*GetUserInfoRequest) ProtoMessage ¶
func (*GetUserInfoRequest) ProtoMessage()
func (*GetUserInfoRequest) ProtoReflect ¶
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
func (*GetUserInfoRequest) Reset ¶
func (x *GetUserInfoRequest) Reset()
func (*GetUserInfoRequest) String ¶
func (x *GetUserInfoRequest) String() string
type LoginReply ¶
type LoginReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetCode ¶
func (x *LoginReply) GetCode() int32
func (*LoginReply) GetMsg ¶
func (x *LoginReply) GetMsg() string
func (*LoginReply) GetRefreshToken ¶
func (x *LoginReply) GetRefreshToken() string
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LogoutReply ¶
type LogoutReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*LogoutReply) Descriptor
deprecated
func (*LogoutReply) Descriptor() ([]byte, []int)
Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.
func (*LogoutReply) GetCode ¶
func (x *LogoutReply) GetCode() int32
func (*LogoutReply) GetMsg ¶
func (x *LogoutReply) GetMsg() string
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) ProtoReflect ¶
func (x *LogoutReply) ProtoReflect() protoreflect.Message
func (*LogoutReply) Reset ¶
func (x *LogoutReply) Reset()
func (*LogoutReply) String ¶
func (x *LogoutReply) String() string
type LogoutRequest ¶
type LogoutRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetToken ¶
func (x *LogoutRequest) GetToken() string
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
type Profile ¶
type Profile struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` About string `protobuf:"bytes,3,opt,name=about,proto3" json:"about,omitempty"` Birthday string `protobuf:"bytes,4,opt,name=birthday,proto3" json:"birthday,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetBirthday ¶
func (*Profile) GetNickname ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type RefreshTokenReply ¶
type RefreshTokenReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenReply) Descriptor
deprecated
func (*RefreshTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenReply.ProtoReflect.Descriptor instead.
func (*RefreshTokenReply) GetCode ¶
func (x *RefreshTokenReply) GetCode() int32
func (*RefreshTokenReply) GetMsg ¶
func (x *RefreshTokenReply) GetMsg() string
func (*RefreshTokenReply) GetToken ¶
func (x *RefreshTokenReply) GetToken() string
func (*RefreshTokenReply) ProtoMessage ¶
func (*RefreshTokenReply) ProtoMessage()
func (*RefreshTokenReply) ProtoReflect ¶
func (x *RefreshTokenReply) ProtoReflect() protoreflect.Message
func (*RefreshTokenReply) Reset ¶
func (x *RefreshTokenReply) Reset()
func (*RefreshTokenReply) String ¶
func (x *RefreshTokenReply) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetToken ¶
func (x *RefreshTokenRequest) GetToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type SignUpReply ¶
type SignUpReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SignUpReply) Descriptor
deprecated
func (*SignUpReply) Descriptor() ([]byte, []int)
Deprecated: Use SignUpReply.ProtoReflect.Descriptor instead.
func (*SignUpReply) GetCode ¶
func (x *SignUpReply) GetCode() int32
func (*SignUpReply) GetData ¶
func (x *SignUpReply) GetData() string
func (*SignUpReply) GetMsg ¶
func (x *SignUpReply) GetMsg() string
func (*SignUpReply) ProtoMessage ¶
func (*SignUpReply) ProtoMessage()
func (*SignUpReply) ProtoReflect ¶
func (x *SignUpReply) ProtoReflect() protoreflect.Message
func (*SignUpReply) Reset ¶
func (x *SignUpReply) Reset()
func (*SignUpReply) String ¶
func (x *SignUpReply) String() string
type SignUpRequest ¶
type SignUpRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,3,opt,name=confirmPassword,proto3" json:"confirmPassword,omitempty"` // contains filtered or unexported fields }
func (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetConfirmPassword ¶
func (x *SignUpRequest) GetConfirmPassword() string
func (*SignUpRequest) GetEmail ¶
func (x *SignUpRequest) GetEmail() string
func (*SignUpRequest) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) ProtoMessage ¶
func (*SignUpRequest) ProtoMessage()
func (*SignUpRequest) ProtoReflect ¶
func (x *SignUpRequest) ProtoReflect() protoreflect.Message
func (*SignUpRequest) Reset ¶
func (x *SignUpRequest) Reset()
func (*SignUpRequest) String ¶
func (x *SignUpRequest) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) ChangePassword ¶
func (UnimplementedUserServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordReply, error)
func (UnimplementedUserServer) GetProfile ¶
func (UnimplementedUserServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error)
func (UnimplementedUserServer) GetUserInfo ¶
func (UnimplementedUserServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoReply, error)
func (UnimplementedUserServer) Login ¶
func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedUserServer) Logout ¶
func (UnimplementedUserServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
func (UnimplementedUserServer) RefreshToken ¶
func (UnimplementedUserServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error)
func (UnimplementedUserServer) SignUp ¶
func (UnimplementedUserServer) SignUp(context.Context, *SignUpRequest) (*SignUpReply, error)
func (UnimplementedUserServer) UpdateProfile ¶
func (UnimplementedUserServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileReply, error)
func (UnimplementedUserServer) WriteOff ¶
func (UnimplementedUserServer) WriteOff(context.Context, *WriteOffRequest) (*WriteOffReply, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UpdateProfileReply ¶
type UpdateProfileReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileReply) Descriptor
deprecated
func (*UpdateProfileReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileReply.ProtoReflect.Descriptor instead.
func (*UpdateProfileReply) GetCode ¶
func (x *UpdateProfileReply) GetCode() int32
func (*UpdateProfileReply) GetMsg ¶
func (x *UpdateProfileReply) GetMsg() string
func (*UpdateProfileReply) ProtoMessage ¶
func (*UpdateProfileReply) ProtoMessage()
func (*UpdateProfileReply) ProtoReflect ¶
func (x *UpdateProfileReply) ProtoReflect() protoreflect.Message
func (*UpdateProfileReply) Reset ¶
func (x *UpdateProfileReply) Reset()
func (*UpdateProfileReply) String ¶
func (x *UpdateProfileReply) String() string
type UpdateProfileRequest ¶
type UpdateProfileRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` About string `protobuf:"bytes,4,opt,name=about,proto3" json:"about,omitempty"` Birthday string `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileRequest) Descriptor
deprecated
func (*UpdateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.
func (*UpdateProfileRequest) GetAbout ¶
func (x *UpdateProfileRequest) GetAbout() string
func (*UpdateProfileRequest) GetAvatar ¶
func (x *UpdateProfileRequest) GetAvatar() string
func (*UpdateProfileRequest) GetBirthday ¶
func (x *UpdateProfileRequest) GetBirthday() string
func (*UpdateProfileRequest) GetNickname ¶
func (x *UpdateProfileRequest) GetNickname() string
func (*UpdateProfileRequest) GetToken ¶
func (x *UpdateProfileRequest) GetToken() string
func (*UpdateProfileRequest) ProtoMessage ¶
func (*UpdateProfileRequest) ProtoMessage()
func (*UpdateProfileRequest) ProtoReflect ¶
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
func (*UpdateProfileRequest) Reset ¶
func (x *UpdateProfileRequest) Reset()
func (*UpdateProfileRequest) String ¶
func (x *UpdateProfileRequest) String() string
type UserClient ¶
type UserClient interface { SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpReply, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenReply, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordReply, error) WriteOff(ctx context.Context, in *WriteOffRequest, opts ...grpc.CallOption) (*WriteOffReply, error) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileReply, error) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileReply, error) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoReply, error) }
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserHTTPClient ¶
type UserHTTPClient interface { ChangePassword(ctx context.Context, req *ChangePasswordRequest, opts ...http.CallOption) (rsp *ChangePasswordReply, err error) GetProfile(ctx context.Context, req *GetProfileRequest, opts ...http.CallOption) (rsp *GetProfileReply, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error) Logout(ctx context.Context, req *LogoutRequest, opts ...http.CallOption) (rsp *LogoutReply, err error) RefreshToken(ctx context.Context, req *RefreshTokenRequest, opts ...http.CallOption) (rsp *RefreshTokenReply, err error) SignUp(ctx context.Context, req *SignUpRequest, opts ...http.CallOption) (rsp *SignUpReply, err error) UpdateProfile(ctx context.Context, req *UpdateProfileRequest, opts ...http.CallOption) (rsp *UpdateProfileReply, err error) WriteOff(ctx context.Context, req *WriteOffRequest, opts ...http.CallOption) (rsp *WriteOffReply, err error) }
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) ChangePassword ¶
func (c *UserHTTPClientImpl) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...http.CallOption) (*ChangePasswordReply, error)
func (*UserHTTPClientImpl) GetProfile ¶
func (c *UserHTTPClientImpl) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...http.CallOption) (*GetProfileReply, error)
func (*UserHTTPClientImpl) Login ¶
func (c *UserHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
func (*UserHTTPClientImpl) Logout ¶
func (c *UserHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*LogoutReply, error)
func (*UserHTTPClientImpl) RefreshToken ¶
func (c *UserHTTPClientImpl) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...http.CallOption) (*RefreshTokenReply, error)
func (*UserHTTPClientImpl) SignUp ¶
func (c *UserHTTPClientImpl) SignUp(ctx context.Context, in *SignUpRequest, opts ...http.CallOption) (*SignUpReply, error)
func (*UserHTTPClientImpl) UpdateProfile ¶
func (c *UserHTTPClientImpl) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...http.CallOption) (*UpdateProfileReply, error)
func (*UserHTTPClientImpl) WriteOff ¶
func (c *UserHTTPClientImpl) WriteOff(ctx context.Context, in *WriteOffRequest, opts ...http.CallOption) (*WriteOffReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface { ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordReply, error) GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Logout(context.Context, *LogoutRequest) (*LogoutReply, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error) SignUp(context.Context, *SignUpRequest) (*SignUpReply, error) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileReply, error) WriteOff(context.Context, *WriteOffRequest) (*WriteOffReply, error) }
type UserServer ¶
type UserServer interface { SignUp(context.Context, *SignUpRequest) (*SignUpReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Logout(context.Context, *LogoutRequest) (*LogoutReply, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordReply, error) WriteOff(context.Context, *WriteOffRequest) (*WriteOffReply, error) GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileReply, error) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility
type WriteOffReply ¶
type WriteOffReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*WriteOffReply) Descriptor
deprecated
func (*WriteOffReply) Descriptor() ([]byte, []int)
Deprecated: Use WriteOffReply.ProtoReflect.Descriptor instead.
func (*WriteOffReply) GetCode ¶
func (x *WriteOffReply) GetCode() int32
func (*WriteOffReply) GetMsg ¶
func (x *WriteOffReply) GetMsg() string
func (*WriteOffReply) ProtoMessage ¶
func (*WriteOffReply) ProtoMessage()
func (*WriteOffReply) ProtoReflect ¶
func (x *WriteOffReply) ProtoReflect() protoreflect.Message
func (*WriteOffReply) Reset ¶
func (x *WriteOffReply) Reset()
func (*WriteOffReply) String ¶
func (x *WriteOffReply) String() string
type WriteOffRequest ¶
type WriteOffRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*WriteOffRequest) Descriptor
deprecated
func (*WriteOffRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteOffRequest.ProtoReflect.Descriptor instead.
func (*WriteOffRequest) GetEmail ¶
func (x *WriteOffRequest) GetEmail() string
func (*WriteOffRequest) GetPassword ¶
func (x *WriteOffRequest) GetPassword() string
func (*WriteOffRequest) ProtoMessage ¶
func (*WriteOffRequest) ProtoMessage()
func (*WriteOffRequest) ProtoReflect ¶
func (x *WriteOffRequest) ProtoReflect() protoreflect.Message
func (*WriteOffRequest) Reset ¶
func (x *WriteOffRequest) Reset()
func (*WriteOffRequest) String ¶
func (x *WriteOffRequest) String() string