Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CreateUserReply
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetCountryCallCoding() string
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetTelephoneNumber() string
- func (x *CreateUserRequest) GetValidateCode() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type DeleteUserReply
- type DeleteUserRequest
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReply) GetCountryCallCoding() string
- func (x *GetUserReply) GetCreateDate() int64
- func (x *GetUserReply) GetIcon() string
- func (x *GetUserReply) GetId() string
- func (x *GetUserReply) GetLastLoginDate() int64
- func (x *GetUserReply) GetName() string
- func (x *GetUserReply) GetTelephoneNumber() string
- func (*GetUserReply) ProtoMessage()
- func (x *GetUserReply) ProtoReflect() protoreflect.Message
- func (x *GetUserReply) Reset()
- func (x *GetUserReply) String() string
- type GetUserRequest
- type ListUserReply
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetCountryCallCoding() string
- func (x *ListUserRequest) GetTelephoneNumber() string
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- type LoginReply
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetCountryCallCoding() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetTelephoneNumber() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginWithValidateCodeRequest
- func (*LoginWithValidateCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginWithValidateCodeRequest) GetCountryCallCoding() string
- func (x *LoginWithValidateCodeRequest) GetTelephoneNumber() string
- func (x *LoginWithValidateCodeRequest) GetValidateCode() string
- func (*LoginWithValidateCodeRequest) ProtoMessage()
- func (x *LoginWithValidateCodeRequest) ProtoReflect() protoreflect.Message
- func (x *LoginWithValidateCodeRequest) Reset()
- func (x *LoginWithValidateCodeRequest) String() string
- type SendValidateCodeReply
- type SendValidateCodeRequest
- func (*SendValidateCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendValidateCodeRequest) GetCountryCallCoding() string
- func (x *SendValidateCodeRequest) GetTelephoneNumber() string
- func (*SendValidateCodeRequest) ProtoMessage()
- func (x *SendValidateCodeRequest) ProtoReflect() protoreflect.Message
- func (x *SendValidateCodeRequest) Reset()
- func (x *SendValidateCodeRequest) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
- func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
- func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
- func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedUserServer) LoginWithValidateCode(context.Context, *LoginWithValidateCodeRequest) (*LoginReply, error)
- func (UnimplementedUserServer) SendValidateCode(context.Context, *SendValidateCodeRequest) (*SendValidateCodeReply, error)
- func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
- func (UnimplementedUserServer) UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*UpdateUserPasswordReply, error)
- func (UnimplementedUserServer) UpdateUserTelephone(context.Context, *UpdateUserTelephoneRequest) (*UpdateUserTelephoneReply, error)
- type UnsafeUserServer
- type UpdateUserPasswordReply
- type UpdateUserPasswordRequest
- func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserPasswordRequest) GetId() string
- func (x *UpdateUserPasswordRequest) GetNewPassword() string
- func (x *UpdateUserPasswordRequest) GetOldPassword() string
- func (*UpdateUserPasswordRequest) ProtoMessage()
- func (x *UpdateUserPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserPasswordRequest) Reset()
- func (x *UpdateUserPasswordRequest) String() string
- type UpdateUserReply
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetIcon() string
- func (x *UpdateUserRequest) GetId() string
- func (x *UpdateUserRequest) GetName() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserTelephoneReply
- type UpdateUserTelephoneRequest
- func (*UpdateUserTelephoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserTelephoneRequest) GetCountryCallCoding() string
- func (x *UpdateUserTelephoneRequest) GetId() string
- func (x *UpdateUserTelephoneRequest) GetTelephoneNumber() string
- func (x *UpdateUserTelephoneRequest) GetValidateCode() string
- func (*UpdateUserTelephoneRequest) ProtoMessage()
- func (x *UpdateUserTelephoneRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserTelephoneRequest) Reset()
- func (x *UpdateUserTelephoneRequest) String() string
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserReply, error)
- func (c *UserHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*DeleteUserReply, error)
- func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error)
- func (c *UserHTTPClientImpl) ListUser(ctx context.Context, in *ListUserRequest, opts ...http.CallOption) (*ListUserReply, error)
- func (c *UserHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *UserHTTPClientImpl) LoginWithValidateCode(ctx context.Context, in *LoginWithValidateCodeRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *UserHTTPClientImpl) SendValidateCode(ctx context.Context, in *SendValidateCodeRequest, opts ...http.CallOption) (*SendValidateCodeReply, error)
- func (c *UserHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UpdateUserReply, error)
- func (c *UserHTTPClientImpl) UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...http.CallOption) (*UpdateUserPasswordReply, error)
- func (c *UserHTTPClientImpl) UpdateUserTelephone(ctx context.Context, in *UpdateUserTelephoneRequest, opts ...http.CallOption) (*UpdateUserTelephoneReply, error)
- type UserHTTPServer
- type UserServer
Constants ¶
const ( User_CreateUser_FullMethodName = "/api.system.v1.User/CreateUser" User_UpdateUser_FullMethodName = "/api.system.v1.User/UpdateUser" User_UpdateUserPassword_FullMethodName = "/api.system.v1.User/UpdateUserPassword" User_UpdateUserTelephone_FullMethodName = "/api.system.v1.User/UpdateUserTelephone" User_DeleteUser_FullMethodName = "/api.system.v1.User/DeleteUser" User_GetUser_FullMethodName = "/api.system.v1.User/GetUser" User_ListUser_FullMethodName = "/api.system.v1.User/ListUser" User_Login_FullMethodName = "/api.system.v1.User/Login" User_LoginWithValidateCode_FullMethodName = "/api.system.v1.User/LoginWithValidateCode" User_SendValidateCode_FullMethodName = "/api.system.v1.User/SendValidateCode" )
const OperationUserCreateUser = "/api.system.v1.User/CreateUser"
const OperationUserDeleteUser = "/api.system.v1.User/DeleteUser"
const OperationUserGetUser = "/api.system.v1.User/GetUser"
const OperationUserListUser = "/api.system.v1.User/ListUser"
const OperationUserLogin = "/api.system.v1.User/Login"
const OperationUserLoginWithValidateCode = "/api.system.v1.User/LoginWithValidateCode"
const OperationUserSendValidateCode = "/api.system.v1.User/SendValidateCode"
const OperationUserUpdateUser = "/api.system.v1.User/UpdateUser"
const OperationUserUpdateUserPassword = "/api.system.v1.User/UpdateUserPassword"
const OperationUserUpdateUserTelephone = "/api.system.v1.User/UpdateUserTelephone"
Variables ¶
var File_api_system_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.system.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _User_UpdateUser_Handler, }, { MethodName: "UpdateUserPassword", Handler: _User_UpdateUserPassword_Handler, }, { MethodName: "UpdateUserTelephone", Handler: _User_UpdateUserTelephone_Handler, }, { MethodName: "DeleteUser", Handler: _User_DeleteUser_Handler, }, { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "ListUser", Handler: _User_ListUser_Handler, }, { MethodName: "Login", Handler: _User_Login_Handler, }, { MethodName: "LoginWithValidateCode", Handler: _User_LoginWithValidateCode_Handler, }, { MethodName: "SendValidateCode", Handler: _User_SendValidateCode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/system/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 CreateUserReply ¶
type CreateUserReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserReply) Descriptor
deprecated
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) GetId ¶
func (x *CreateUserReply) GetId() string
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) ProtoReflect ¶
func (x *CreateUserReply) ProtoReflect() protoreflect.Message
func (*CreateUserReply) Reset ¶
func (x *CreateUserReply) Reset()
func (*CreateUserReply) String ¶
func (x *CreateUserReply) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"` TelephoneNumber string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` ValidateCode string `protobuf:"bytes,4,opt,name=validate_code,json=validateCode,proto3" json:"validate_code,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetCountryCallCoding ¶
func (x *CreateUserRequest) GetCountryCallCoding() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetTelephoneNumber ¶
func (x *CreateUserRequest) GetTelephoneNumber() string
func (*CreateUserRequest) GetValidateCode ¶
func (x *CreateUserRequest) GetValidateCode() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type DeleteUserReply ¶
type DeleteUserReply struct {
// contains filtered or unexported fields
}
func (*DeleteUserReply) Descriptor
deprecated
func (*DeleteUserReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserReply.ProtoReflect.Descriptor instead.
func (*DeleteUserReply) ProtoMessage ¶
func (*DeleteUserReply) ProtoMessage()
func (*DeleteUserReply) ProtoReflect ¶
func (x *DeleteUserReply) ProtoReflect() protoreflect.Message
func (*DeleteUserReply) Reset ¶
func (x *DeleteUserReply) Reset()
func (*DeleteUserReply) String ¶
func (x *DeleteUserReply) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type GetUserReply ¶
type GetUserReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CountryCallCoding string `protobuf:"bytes,2,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"` TelephoneNumber string `protobuf:"bytes,3,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` CreateDate int64 `protobuf:"varint,4,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` LastLoginDate int64 `protobuf:"varint,5,opt,name=last_login_date,json=lastLoginDate,proto3" json:"last_login_date,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetCountryCallCoding ¶
func (x *GetUserReply) GetCountryCallCoding() string
func (*GetUserReply) GetCreateDate ¶
func (x *GetUserReply) GetCreateDate() int64
func (*GetUserReply) GetIcon ¶
func (x *GetUserReply) GetIcon() string
func (*GetUserReply) GetId ¶
func (x *GetUserReply) GetId() string
func (*GetUserReply) GetLastLoginDate ¶
func (x *GetUserReply) GetLastLoginDate() int64
func (*GetUserReply) GetName ¶
func (x *GetUserReply) GetName() string
func (*GetUserReply) GetTelephoneNumber ¶
func (x *GetUserReply) GetTelephoneNumber() string
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) ProtoReflect ¶
func (x *GetUserReply) ProtoReflect() protoreflect.Message
func (*GetUserReply) Reset ¶
func (x *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (x *GetUserReply) String() string
type GetUserRequest ¶
type GetUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type ListUserReply ¶
type ListUserReply struct { Result []*GetUserReply `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) GetResult ¶
func (x *ListUserReply) GetResult() []*GetUserReply
func (*ListUserReply) ProtoMessage ¶
func (*ListUserReply) ProtoMessage()
func (*ListUserReply) ProtoReflect ¶
func (x *ListUserReply) ProtoReflect() protoreflect.Message
func (*ListUserReply) Reset ¶
func (x *ListUserReply) Reset()
func (*ListUserReply) String ¶
func (x *ListUserReply) String() string
type ListUserRequest ¶
type ListUserRequest struct { CountryCallCoding *string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3,oneof" json:"country_call_coding,omitempty"` TelephoneNumber *string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3,oneof" json:"telephone_number,omitempty"` // contains filtered or unexported fields }
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetCountryCallCoding ¶
func (x *ListUserRequest) GetCountryCallCoding() string
func (*ListUserRequest) GetTelephoneNumber ¶
func (x *ListUserRequest) GetTelephoneNumber() string
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
type LoginReply ¶
type LoginReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
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 { CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"` TelephoneNumber string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` Password string `protobuf:"bytes,3,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) GetCountryCallCoding ¶
func (x *LoginRequest) GetCountryCallCoding() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetTelephoneNumber ¶
func (x *LoginRequest) GetTelephoneNumber() 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 LoginWithValidateCodeRequest ¶
type LoginWithValidateCodeRequest struct { CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"` TelephoneNumber string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` ValidateCode string `protobuf:"bytes,3,opt,name=validate_code,json=validateCode,proto3" json:"validate_code,omitempty"` // contains filtered or unexported fields }
func (*LoginWithValidateCodeRequest) Descriptor
deprecated
func (*LoginWithValidateCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginWithValidateCodeRequest.ProtoReflect.Descriptor instead.
func (*LoginWithValidateCodeRequest) GetCountryCallCoding ¶
func (x *LoginWithValidateCodeRequest) GetCountryCallCoding() string
func (*LoginWithValidateCodeRequest) GetTelephoneNumber ¶
func (x *LoginWithValidateCodeRequest) GetTelephoneNumber() string
func (*LoginWithValidateCodeRequest) GetValidateCode ¶
func (x *LoginWithValidateCodeRequest) GetValidateCode() string
func (*LoginWithValidateCodeRequest) ProtoMessage ¶
func (*LoginWithValidateCodeRequest) ProtoMessage()
func (*LoginWithValidateCodeRequest) ProtoReflect ¶
func (x *LoginWithValidateCodeRequest) ProtoReflect() protoreflect.Message
func (*LoginWithValidateCodeRequest) Reset ¶
func (x *LoginWithValidateCodeRequest) Reset()
func (*LoginWithValidateCodeRequest) String ¶
func (x *LoginWithValidateCodeRequest) String() string
type SendValidateCodeReply ¶
type SendValidateCodeReply struct {
// contains filtered or unexported fields
}
func (*SendValidateCodeReply) Descriptor
deprecated
func (*SendValidateCodeReply) Descriptor() ([]byte, []int)
Deprecated: Use SendValidateCodeReply.ProtoReflect.Descriptor instead.
func (*SendValidateCodeReply) ProtoMessage ¶
func (*SendValidateCodeReply) ProtoMessage()
func (*SendValidateCodeReply) ProtoReflect ¶
func (x *SendValidateCodeReply) ProtoReflect() protoreflect.Message
func (*SendValidateCodeReply) Reset ¶
func (x *SendValidateCodeReply) Reset()
func (*SendValidateCodeReply) String ¶
func (x *SendValidateCodeReply) String() string
type SendValidateCodeRequest ¶
type SendValidateCodeRequest struct { CountryCallCoding string `protobuf:"bytes,1,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"` TelephoneNumber string `protobuf:"bytes,2,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` // contains filtered or unexported fields }
func (*SendValidateCodeRequest) Descriptor
deprecated
func (*SendValidateCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendValidateCodeRequest.ProtoReflect.Descriptor instead.
func (*SendValidateCodeRequest) GetCountryCallCoding ¶
func (x *SendValidateCodeRequest) GetCountryCallCoding() string
func (*SendValidateCodeRequest) GetTelephoneNumber ¶
func (x *SendValidateCodeRequest) GetTelephoneNumber() string
func (*SendValidateCodeRequest) ProtoMessage ¶
func (*SendValidateCodeRequest) ProtoMessage()
func (*SendValidateCodeRequest) ProtoReflect ¶
func (x *SendValidateCodeRequest) ProtoReflect() protoreflect.Message
func (*SendValidateCodeRequest) Reset ¶
func (x *SendValidateCodeRequest) Reset()
func (*SendValidateCodeRequest) String ¶
func (x *SendValidateCodeRequest) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
func (UnimplementedUserServer) DeleteUser ¶
func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserServer) ListUser ¶
func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
func (UnimplementedUserServer) Login ¶
func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedUserServer) LoginWithValidateCode ¶
func (UnimplementedUserServer) LoginWithValidateCode(context.Context, *LoginWithValidateCodeRequest) (*LoginReply, error)
func (UnimplementedUserServer) SendValidateCode ¶
func (UnimplementedUserServer) SendValidateCode(context.Context, *SendValidateCodeRequest) (*SendValidateCodeReply, error)
func (UnimplementedUserServer) UpdateUser ¶
func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
func (UnimplementedUserServer) UpdateUserPassword ¶
func (UnimplementedUserServer) UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*UpdateUserPasswordReply, error)
func (UnimplementedUserServer) UpdateUserTelephone ¶
func (UnimplementedUserServer) UpdateUserTelephone(context.Context, *UpdateUserTelephoneRequest) (*UpdateUserTelephoneReply, 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 UpdateUserPasswordReply ¶
type UpdateUserPasswordReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserPasswordReply) Descriptor
deprecated
func (*UpdateUserPasswordReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserPasswordReply.ProtoReflect.Descriptor instead.
func (*UpdateUserPasswordReply) ProtoMessage ¶
func (*UpdateUserPasswordReply) ProtoMessage()
func (*UpdateUserPasswordReply) ProtoReflect ¶
func (x *UpdateUserPasswordReply) ProtoReflect() protoreflect.Message
func (*UpdateUserPasswordReply) Reset ¶
func (x *UpdateUserPasswordReply) Reset()
func (*UpdateUserPasswordReply) String ¶
func (x *UpdateUserPasswordReply) String() string
type UpdateUserPasswordRequest ¶
type UpdateUserPasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserPasswordRequest) Descriptor
deprecated
func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserPasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserPasswordRequest) GetId ¶
func (x *UpdateUserPasswordRequest) GetId() string
func (*UpdateUserPasswordRequest) GetNewPassword ¶
func (x *UpdateUserPasswordRequest) GetNewPassword() string
func (*UpdateUserPasswordRequest) GetOldPassword ¶
func (x *UpdateUserPasswordRequest) GetOldPassword() string
func (*UpdateUserPasswordRequest) ProtoMessage ¶
func (*UpdateUserPasswordRequest) ProtoMessage()
func (*UpdateUserPasswordRequest) ProtoReflect ¶
func (x *UpdateUserPasswordRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserPasswordRequest) Reset ¶
func (x *UpdateUserPasswordRequest) Reset()
func (*UpdateUserPasswordRequest) String ¶
func (x *UpdateUserPasswordRequest) String() string
type UpdateUserReply ¶
type UpdateUserReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserReply) Descriptor
deprecated
func (*UpdateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) ProtoReflect ¶
func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
func (*UpdateUserReply) Reset ¶
func (x *UpdateUserReply) Reset()
func (*UpdateUserReply) String ¶
func (x *UpdateUserReply) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetIcon ¶
func (x *UpdateUserRequest) GetIcon() string
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() string
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserTelephoneReply ¶
type UpdateUserTelephoneReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserTelephoneReply) Descriptor
deprecated
func (*UpdateUserTelephoneReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserTelephoneReply.ProtoReflect.Descriptor instead.
func (*UpdateUserTelephoneReply) ProtoMessage ¶
func (*UpdateUserTelephoneReply) ProtoMessage()
func (*UpdateUserTelephoneReply) ProtoReflect ¶
func (x *UpdateUserTelephoneReply) ProtoReflect() protoreflect.Message
func (*UpdateUserTelephoneReply) Reset ¶
func (x *UpdateUserTelephoneReply) Reset()
func (*UpdateUserTelephoneReply) String ¶
func (x *UpdateUserTelephoneReply) String() string
type UpdateUserTelephoneRequest ¶
type UpdateUserTelephoneRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CountryCallCoding string `protobuf:"bytes,2,opt,name=country_call_coding,json=countryCallCoding,proto3" json:"country_call_coding,omitempty"` TelephoneNumber string `protobuf:"bytes,3,opt,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` ValidateCode string `protobuf:"bytes,4,opt,name=validate_code,json=validateCode,proto3" json:"validate_code,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserTelephoneRequest) Descriptor
deprecated
func (*UpdateUserTelephoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserTelephoneRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserTelephoneRequest) GetCountryCallCoding ¶
func (x *UpdateUserTelephoneRequest) GetCountryCallCoding() string
func (*UpdateUserTelephoneRequest) GetId ¶
func (x *UpdateUserTelephoneRequest) GetId() string
func (*UpdateUserTelephoneRequest) GetTelephoneNumber ¶
func (x *UpdateUserTelephoneRequest) GetTelephoneNumber() string
func (*UpdateUserTelephoneRequest) GetValidateCode ¶
func (x *UpdateUserTelephoneRequest) GetValidateCode() string
func (*UpdateUserTelephoneRequest) ProtoMessage ¶
func (*UpdateUserTelephoneRequest) ProtoMessage()
func (*UpdateUserTelephoneRequest) ProtoReflect ¶
func (x *UpdateUserTelephoneRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserTelephoneRequest) Reset ¶
func (x *UpdateUserTelephoneRequest) Reset()
func (*UpdateUserTelephoneRequest) String ¶
func (x *UpdateUserTelephoneRequest) String() string
type UserClient ¶
type UserClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*UpdateUserPasswordReply, error) UpdateUserTelephone(ctx context.Context, in *UpdateUserTelephoneRequest, opts ...grpc.CallOption) (*UpdateUserTelephoneReply, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserReply, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error) // Login // // {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service. // It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}". // // {{import "tables.md"}} Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) LoginWithValidateCode(ctx context.Context, in *LoginWithValidateCodeRequest, opts ...grpc.CallOption) (*LoginReply, error) SendValidateCode(ctx context.Context, in *SendValidateCodeRequest, opts ...grpc.CallOption) (*SendValidateCodeReply, 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 { CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserReply, err error) DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *DeleteUserReply, err error) GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *GetUserReply, err error) ListUser(ctx context.Context, req *ListUserRequest, opts ...http.CallOption) (rsp *ListUserReply, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error) LoginWithValidateCode(ctx context.Context, req *LoginWithValidateCodeRequest, opts ...http.CallOption) (rsp *LoginReply, err error) SendValidateCode(ctx context.Context, req *SendValidateCodeRequest, opts ...http.CallOption) (rsp *SendValidateCodeReply, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UpdateUserReply, err error) UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest, opts ...http.CallOption) (rsp *UpdateUserPasswordReply, err error) UpdateUserTelephone(ctx context.Context, req *UpdateUserTelephoneRequest, opts ...http.CallOption) (rsp *UpdateUserTelephoneReply, err error) }
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) CreateUser ¶
func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserReply, error)
func (*UserHTTPClientImpl) DeleteUser ¶
func (c *UserHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*DeleteUserReply, error)
func (*UserHTTPClientImpl) GetUser ¶
func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error)
func (*UserHTTPClientImpl) ListUser ¶
func (c *UserHTTPClientImpl) ListUser(ctx context.Context, in *ListUserRequest, opts ...http.CallOption) (*ListUserReply, error)
func (*UserHTTPClientImpl) Login ¶
func (c *UserHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
func (*UserHTTPClientImpl) LoginWithValidateCode ¶
func (c *UserHTTPClientImpl) LoginWithValidateCode(ctx context.Context, in *LoginWithValidateCodeRequest, opts ...http.CallOption) (*LoginReply, error)
func (*UserHTTPClientImpl) SendValidateCode ¶
func (c *UserHTTPClientImpl) SendValidateCode(ctx context.Context, in *SendValidateCodeRequest, opts ...http.CallOption) (*SendValidateCodeReply, error)
func (*UserHTTPClientImpl) UpdateUser ¶
func (c *UserHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UpdateUserReply, error)
func (*UserHTTPClientImpl) UpdateUserPassword ¶
func (c *UserHTTPClientImpl) UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...http.CallOption) (*UpdateUserPasswordReply, error)
func (*UserHTTPClientImpl) UpdateUserTelephone ¶
func (c *UserHTTPClientImpl) UpdateUserTelephone(ctx context.Context, in *UpdateUserTelephoneRequest, opts ...http.CallOption) (*UpdateUserTelephoneReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error) // Login Login // // {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service. // It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}". // // {{import "tables.md"}} Login(context.Context, *LoginRequest) (*LoginReply, error) LoginWithValidateCode(context.Context, *LoginWithValidateCodeRequest) (*LoginReply, error) SendValidateCode(context.Context, *SendValidateCodeRequest) (*SendValidateCodeReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*UpdateUserPasswordReply, error) UpdateUserTelephone(context.Context, *UpdateUserTelephoneRequest) (*UpdateUserTelephoneReply, error) }
type UserServer ¶
type UserServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*UpdateUserPasswordReply, error) UpdateUserTelephone(context.Context, *UpdateUserTelephoneRequest) (*UpdateUserTelephoneReply, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error) // Login // // {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service. // It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}". // // {{import "tables.md"}} Login(context.Context, *LoginRequest) (*LoginReply, error) LoginWithValidateCode(context.Context, *LoginWithValidateCodeRequest) (*LoginReply, error) SendValidateCode(context.Context, *SendValidateCodeRequest) (*SendValidateCodeReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility