v1

package
v0.0.0-...-10283fc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusType_name = map[int32]string{
		0: "NORMAL",
		1: "DELETE",
		2: "Ban",
	}
	StatusType_value = map[string]int32{
		"NORMAL": 0,
		"DELETE": 1,
		"Ban":    2,
	}
)

Enum value maps for StatusType.

View Source
var (
	GenderType_name = map[int32]string{
		0: "UNKNOWN",
		1: "MALE",
		2: "FEMALE",
	}
	GenderType_value = map[string]int32{
		"UNKNOWN": 0,
		"MALE":    1,
		"FEMALE":  2,
	}
)

Enum value maps for GenderType.

View Source
var File_api_user_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _UserService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _UserService_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _UserService_Logout_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "BatchGetUsers",
			Handler:    _UserService_BatchGetUsers_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _UserService_UpdatePassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/user/v1/user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type BatchGetUsersReply

type BatchGetUsersReply struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetUsersReply) Descriptor deprecated

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

Deprecated: Use BatchGetUsersReply.ProtoReflect.Descriptor instead.

func (*BatchGetUsersReply) GetUsers

func (x *BatchGetUsersReply) GetUsers() []*User

func (*BatchGetUsersReply) ProtoMessage

func (*BatchGetUsersReply) ProtoMessage()

func (*BatchGetUsersReply) ProtoReflect

func (x *BatchGetUsersReply) ProtoReflect() protoreflect.Message

func (*BatchGetUsersReply) Reset

func (x *BatchGetUsersReply) Reset()

func (*BatchGetUsersReply) String

func (x *BatchGetUsersReply) String() string

func (*BatchGetUsersReply) Validate

func (m *BatchGetUsersReply) Validate() error

Validate checks the field values on BatchGetUsersReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BatchGetUsersReply) ValidateAll

func (m *BatchGetUsersReply) ValidateAll() error

ValidateAll checks the field values on BatchGetUsersReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchGetUsersReplyMultiError, or nil if none found.

type BatchGetUsersReplyMultiError

type BatchGetUsersReplyMultiError []error

BatchGetUsersReplyMultiError is an error wrapping multiple validation errors returned by BatchGetUsersReply.ValidateAll() if the designated constraints aren't met.

func (BatchGetUsersReplyMultiError) AllErrors

func (m BatchGetUsersReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchGetUsersReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BatchGetUsersReplyValidationError

type BatchGetUsersReplyValidationError struct {
	// contains filtered or unexported fields
}

BatchGetUsersReplyValidationError is the validation error returned by BatchGetUsersReply.Validate if the designated constraints aren't met.

func (BatchGetUsersReplyValidationError) Cause

Cause function returns cause value.

func (BatchGetUsersReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchGetUsersReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchGetUsersReplyValidationError) Field

Field function returns field value.

func (BatchGetUsersReplyValidationError) Key

Key function returns key value.

func (BatchGetUsersReplyValidationError) Reason

Reason function returns reason value.

type BatchGetUsersRequest

type BatchGetUsersRequest struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetUsersRequest) Descriptor deprecated

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

Deprecated: Use BatchGetUsersRequest.ProtoReflect.Descriptor instead.

func (*BatchGetUsersRequest) GetIds

func (x *BatchGetUsersRequest) GetIds() []int64

func (*BatchGetUsersRequest) ProtoMessage

func (*BatchGetUsersRequest) ProtoMessage()

func (*BatchGetUsersRequest) ProtoReflect

func (x *BatchGetUsersRequest) ProtoReflect() protoreflect.Message

func (*BatchGetUsersRequest) Reset

func (x *BatchGetUsersRequest) Reset()

func (*BatchGetUsersRequest) String

func (x *BatchGetUsersRequest) String() string

func (*BatchGetUsersRequest) Validate

func (m *BatchGetUsersRequest) Validate() error

Validate checks the field values on BatchGetUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BatchGetUsersRequest) ValidateAll

func (m *BatchGetUsersRequest) ValidateAll() error

ValidateAll checks the field values on BatchGetUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchGetUsersRequestMultiError, or nil if none found.

type BatchGetUsersRequestMultiError

type BatchGetUsersRequestMultiError []error

BatchGetUsersRequestMultiError is an error wrapping multiple validation errors returned by BatchGetUsersRequest.ValidateAll() if the designated constraints aren't met.

func (BatchGetUsersRequestMultiError) AllErrors

func (m BatchGetUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchGetUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BatchGetUsersRequestValidationError

type BatchGetUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

BatchGetUsersRequestValidationError is the validation error returned by BatchGetUsersRequest.Validate if the designated constraints aren't met.

func (BatchGetUsersRequestValidationError) Cause

Cause function returns cause value.

func (BatchGetUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchGetUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchGetUsersRequestValidationError) Field

Field function returns field value.

func (BatchGetUsersRequestValidationError) Key

Key function returns key value.

func (BatchGetUsersRequestValidationError) Reason

Reason function returns reason value.

type CreateUserReply

type CreateUserReply struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserReply) Descriptor deprecated

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

Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.

func (*CreateUserReply) GetEmail

func (x *CreateUserReply) GetEmail() string

func (*CreateUserReply) GetId

func (x *CreateUserReply) GetId() int64

func (*CreateUserReply) GetUsername

func (x *CreateUserReply) GetUsername() 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

func (*CreateUserReply) Validate

func (m *CreateUserReply) Validate() error

Validate checks the field values on CreateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserReply) ValidateAll

func (m *CreateUserReply) ValidateAll() error

ValidateAll checks the field values on CreateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserReplyMultiError, or nil if none found.

type CreateUserReplyMultiError

type CreateUserReplyMultiError []error

CreateUserReplyMultiError is an error wrapping multiple validation errors returned by CreateUserReply.ValidateAll() if the designated constraints aren't met.

func (CreateUserReplyMultiError) AllErrors

func (m CreateUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserReplyValidationError

type CreateUserReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateUserReplyValidationError is the validation error returned by CreateUserReply.Validate if the designated constraints aren't met.

func (CreateUserReplyValidationError) Cause

Cause function returns cause value.

func (CreateUserReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateUserReplyValidationError) ErrorName

func (e CreateUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateUserReplyValidationError) Field

Field function returns field value.

func (CreateUserReplyValidationError) Key

Key function returns key value.

func (CreateUserReplyValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() 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

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type GenderType

type GenderType int32
const (
	GenderType_UNKNOWN GenderType = 0
	GenderType_MALE    GenderType = 1
	GenderType_FEMALE  GenderType = 2
)

func (GenderType) Descriptor

func (GenderType) Descriptor() protoreflect.EnumDescriptor

func (GenderType) Enum

func (x GenderType) Enum() *GenderType

func (GenderType) EnumDescriptor deprecated

func (GenderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GenderType.Descriptor instead.

func (GenderType) Number

func (x GenderType) Number() protoreflect.EnumNumber

func (GenderType) String

func (x GenderType) String() string

func (GenderType) Type

type GetUserReply

type GetUserReply struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserReply) Descriptor deprecated

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

Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.

func (*GetUserReply) GetUser

func (x *GetUserReply) GetUser() *User

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

func (*GetUserReply) Validate

func (m *GetUserReply) Validate() error

Validate checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserReply) ValidateAll

func (m *GetUserReply) ValidateAll() error

ValidateAll checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserReplyMultiError, or nil if none found.

type GetUserReplyMultiError

type GetUserReplyMultiError []error

GetUserReplyMultiError is an error wrapping multiple validation errors returned by GetUserReply.ValidateAll() if the designated constraints aren't met.

func (GetUserReplyMultiError) AllErrors

func (m GetUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserReplyMultiError) Error

func (m GetUserReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserReplyValidationError

type GetUserReplyValidationError struct {
	// contains filtered or unexported fields
}

GetUserReplyValidationError is the validation error returned by GetUserReply.Validate if the designated constraints aren't met.

func (GetUserReplyValidationError) Cause

Cause function returns cause value.

func (GetUserReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserReplyValidationError) ErrorName

func (e GetUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserReplyValidationError) Field

Field function returns field value.

func (GetUserReplyValidationError) Key

Key function returns key value.

func (GetUserReplyValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {
	Id int64 `protobuf:"varint,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() int64

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

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

type GetUserRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type LoginReply

type LoginReply struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Token string `protobuf:"bytes,2,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) GetId

func (x *LoginReply) GetId() int64

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

func (*LoginReply) Validate

func (m *LoginReply) Validate() error

Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginReply) ValidateAll

func (m *LoginReply) ValidateAll() error

ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.

type LoginReplyMultiError

type LoginReplyMultiError []error

LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.

func (LoginReplyMultiError) AllErrors

func (m LoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReplyMultiError) Error

func (m LoginReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReplyValidationError

type LoginReplyValidationError struct {
	// contains filtered or unexported fields
}

LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.

func (LoginReplyValidationError) Cause

func (e LoginReplyValidationError) Cause() error

Cause function returns cause value.

func (LoginReplyValidationError) Error

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

Key function returns key value.

func (LoginReplyValidationError) Reason

func (e LoginReplyValidationError) Reason() string

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,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) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() 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

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LogoutRequest

type LogoutRequest struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Token string `protobuf:"bytes,2,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) GetId

func (x *LogoutRequest) GetId() int64

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

func (*LogoutRequest) Validate

func (m *LogoutRequest) Validate() error

Validate checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LogoutRequest) ValidateAll

func (m *LogoutRequest) ValidateAll() error

ValidateAll checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutRequestMultiError, or nil if none found.

type LogoutRequestMultiError

type LogoutRequestMultiError []error

LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.

func (LogoutRequestMultiError) AllErrors

func (m LogoutRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutRequestMultiError) Error

func (m LogoutRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutRequestValidationError

type LogoutRequestValidationError struct {
	// contains filtered or unexported fields
}

LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.

func (LogoutRequestValidationError) Cause

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

Reason function returns reason value.

type RegisterReply

type RegisterReply struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterReply) Descriptor deprecated

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

Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.

func (*RegisterReply) GetId

func (x *RegisterReply) GetId() int64

func (*RegisterReply) GetUsername

func (x *RegisterReply) GetUsername() string

func (*RegisterReply) ProtoMessage

func (*RegisterReply) ProtoMessage()

func (*RegisterReply) ProtoReflect

func (x *RegisterReply) ProtoReflect() protoreflect.Message

func (*RegisterReply) Reset

func (x *RegisterReply) Reset()

func (*RegisterReply) String

func (x *RegisterReply) String() string

func (*RegisterReply) Validate

func (m *RegisterReply) Validate() error

Validate checks the field values on RegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterReply) ValidateAll

func (m *RegisterReply) ValidateAll() error

ValidateAll checks the field values on RegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterReplyMultiError, or nil if none found.

type RegisterReplyMultiError

type RegisterReplyMultiError []error

RegisterReplyMultiError is an error wrapping multiple validation errors returned by RegisterReply.ValidateAll() if the designated constraints aren't met.

func (RegisterReplyMultiError) AllErrors

func (m RegisterReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterReplyMultiError) Error

func (m RegisterReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RegisterReplyValidationError

type RegisterReplyValidationError struct {
	// contains filtered or unexported fields
}

RegisterReplyValidationError is the validation error returned by RegisterReply.Validate if the designated constraints aren't met.

func (RegisterReplyValidationError) Cause

Cause function returns cause value.

func (RegisterReplyValidationError) Error

Error satisfies the builtin error interface

func (RegisterReplyValidationError) ErrorName

func (e RegisterReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterReplyValidationError) Field

Field function returns field value.

func (RegisterReplyValidationError) Key

Key function returns key value.

func (RegisterReplyValidationError) Reason

Reason function returns reason value.

type RegisterRequest

type RegisterRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (x *RegisterRequest) GetUsername() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.

type RegisterRequestMultiError

type RegisterRequestMultiError []error

RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequestValidationError

type RegisterRequestValidationError struct {
	// contains filtered or unexported fields
}

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type StatusType

type StatusType int32
const (
	StatusType_NORMAL StatusType = 0
	StatusType_DELETE StatusType = 1
	StatusType_Ban    StatusType = 2
)

func (StatusType) Descriptor

func (StatusType) Descriptor() protoreflect.EnumDescriptor

func (StatusType) Enum

func (x StatusType) Enum() *StatusType

func (StatusType) EnumDescriptor deprecated

func (StatusType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StatusType.Descriptor instead.

func (StatusType) Number

func (x StatusType) Number() protoreflect.EnumNumber

func (StatusType) String

func (x StatusType) String() string

func (StatusType) Type

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) BatchGetUsers

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) Login

func (UnimplementedUserServiceServer) Logout

func (UnimplementedUserServiceServer) Register

func (UnimplementedUserServiceServer) UpdatePassword

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdatePasswordReply

type UpdatePasswordReply struct {
	// contains filtered or unexported fields
}

func (*UpdatePasswordReply) Descriptor deprecated

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

Deprecated: Use UpdatePasswordReply.ProtoReflect.Descriptor instead.

func (*UpdatePasswordReply) ProtoMessage

func (*UpdatePasswordReply) ProtoMessage()

func (*UpdatePasswordReply) ProtoReflect

func (x *UpdatePasswordReply) ProtoReflect() protoreflect.Message

func (*UpdatePasswordReply) Reset

func (x *UpdatePasswordReply) Reset()

func (*UpdatePasswordReply) String

func (x *UpdatePasswordReply) String() string

func (*UpdatePasswordReply) Validate

func (m *UpdatePasswordReply) Validate() error

Validate checks the field values on UpdatePasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdatePasswordReply) ValidateAll

func (m *UpdatePasswordReply) ValidateAll() error

ValidateAll checks the field values on UpdatePasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordReplyMultiError, or nil if none found.

type UpdatePasswordReplyMultiError

type UpdatePasswordReplyMultiError []error

UpdatePasswordReplyMultiError is an error wrapping multiple validation errors returned by UpdatePasswordReply.ValidateAll() if the designated constraints aren't met.

func (UpdatePasswordReplyMultiError) AllErrors

func (m UpdatePasswordReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePasswordReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordReplyValidationError

type UpdatePasswordReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdatePasswordReplyValidationError is the validation error returned by UpdatePasswordReply.Validate if the designated constraints aren't met.

func (UpdatePasswordReplyValidationError) Cause

Cause function returns cause value.

func (UpdatePasswordReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordReplyValidationError) Field

Field function returns field value.

func (UpdatePasswordReplyValidationError) Key

Key function returns key value.

func (UpdatePasswordReplyValidationError) Reason

Reason function returns reason value.

type UpdatePasswordRequest

type UpdatePasswordRequest 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"`
	ConfirmPassword string `protobuf:"bytes,4,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdatePasswordRequest) GetConfirmPassword

func (x *UpdatePasswordRequest) GetConfirmPassword() string

func (*UpdatePasswordRequest) GetId

func (x *UpdatePasswordRequest) GetId() string

func (*UpdatePasswordRequest) GetNewPassword

func (x *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) GetOldPassword

func (x *UpdatePasswordRequest) GetOldPassword() string

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) ProtoReflect

func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message

func (*UpdatePasswordRequest) Reset

func (x *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) String

func (x *UpdatePasswordRequest) String() string

func (*UpdatePasswordRequest) Validate

func (m *UpdatePasswordRequest) Validate() error

Validate checks the field values on UpdatePasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdatePasswordRequest) ValidateAll

func (m *UpdatePasswordRequest) ValidateAll() error

ValidateAll checks the field values on UpdatePasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordRequestMultiError, or nil if none found.

type UpdatePasswordRequestMultiError

type UpdatePasswordRequestMultiError []error

UpdatePasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdatePasswordRequest.ValidateAll() if the designated constraints aren't met.

func (UpdatePasswordRequestMultiError) AllErrors

func (m UpdatePasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordRequestValidationError

type UpdatePasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdatePasswordRequestValidationError is the validation error returned by UpdatePasswordRequest.Validate if the designated constraints aren't met.

func (UpdatePasswordRequestValidationError) Cause

Cause function returns cause value.

func (UpdatePasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordRequestValidationError) Field

Field function returns field value.

func (UpdatePasswordRequestValidationError) Key

Key function returns key value.

func (UpdatePasswordRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserReply

type UpdateUserReply struct {
	UserId    int64      `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username  string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone     string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	LoginAt   int64      `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`
	Status    StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"`
	Nickname  string     `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar    string     `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender    GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"`
	Birthday  string     `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Bio       string     `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"`
	UpdatedAt int64      `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserReply) Descriptor deprecated

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

Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.

func (*UpdateUserReply) GetAvatar

func (x *UpdateUserReply) GetAvatar() string

func (*UpdateUserReply) GetBio

func (x *UpdateUserReply) GetBio() string

func (*UpdateUserReply) GetBirthday

func (x *UpdateUserReply) GetBirthday() string

func (*UpdateUserReply) GetEmail

func (x *UpdateUserReply) GetEmail() string

func (*UpdateUserReply) GetGender

func (x *UpdateUserReply) GetGender() GenderType

func (*UpdateUserReply) GetLoginAt

func (x *UpdateUserReply) GetLoginAt() int64

func (*UpdateUserReply) GetNickname

func (x *UpdateUserReply) GetNickname() string

func (*UpdateUserReply) GetPhone

func (x *UpdateUserReply) GetPhone() string

func (*UpdateUserReply) GetStatus

func (x *UpdateUserReply) GetStatus() StatusType

func (*UpdateUserReply) GetUpdatedAt

func (x *UpdateUserReply) GetUpdatedAt() int64

func (*UpdateUserReply) GetUserId

func (x *UpdateUserReply) GetUserId() int64

func (*UpdateUserReply) GetUsername

func (x *UpdateUserReply) GetUsername() string

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

func (*UpdateUserReply) Validate

func (m *UpdateUserReply) Validate() error

Validate checks the field values on UpdateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserReply) ValidateAll

func (m *UpdateUserReply) ValidateAll() error

ValidateAll checks the field values on UpdateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserReplyMultiError, or nil if none found.

type UpdateUserReplyMultiError

type UpdateUserReplyMultiError []error

UpdateUserReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserReply.ValidateAll() if the designated constraints aren't met.

func (UpdateUserReplyMultiError) AllErrors

func (m UpdateUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserReplyValidationError

type UpdateUserReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserReplyValidationError is the validation error returned by UpdateUserReply.Validate if the designated constraints aren't met.

func (UpdateUserReplyValidationError) Cause

Cause function returns cause value.

func (UpdateUserReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserReplyValidationError) ErrorName

func (e UpdateUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateUserReplyValidationError) Field

Field function returns field value.

func (UpdateUserReplyValidationError) Key

Key function returns key value.

func (UpdateUserReplyValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {
	UserId    int64      `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username  string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone     string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	LoginAt   int64      `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`
	Status    StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"`
	Nickname  string     `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar    string     `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender    GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"`
	Birthday  string     `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Bio       string     `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"`
	UpdatedAt int64      `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetAvatar

func (x *UpdateUserRequest) GetAvatar() string

func (*UpdateUserRequest) GetBio

func (x *UpdateUserRequest) GetBio() string

func (*UpdateUserRequest) GetBirthday

func (x *UpdateUserRequest) GetBirthday() string

func (*UpdateUserRequest) GetEmail

func (x *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetGender

func (x *UpdateUserRequest) GetGender() GenderType

func (*UpdateUserRequest) GetLoginAt

func (x *UpdateUserRequest) GetLoginAt() int64

func (*UpdateUserRequest) GetNickname

func (x *UpdateUserRequest) GetNickname() string

func (*UpdateUserRequest) GetPhone

func (x *UpdateUserRequest) GetPhone() string

func (*UpdateUserRequest) GetStatus

func (x *UpdateUserRequest) GetStatus() StatusType

func (*UpdateUserRequest) GetUpdatedAt

func (x *UpdateUserRequest) GetUpdatedAt() int64

func (*UpdateUserRequest) GetUserId

func (x *UpdateUserRequest) GetUserId() int64

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() 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

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

type UpdateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Id        int64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone     string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	LoginAt   int64      `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`
	Status    StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"`
	Nickname  string     `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar    string     `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender    GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"`
	Birthday  string     `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Bio       string     `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"`
	CreatedAt int64      `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64      `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

user info

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBio

func (x *User) GetBio() string

func (*User) GetBirthday

func (x *User) GetBirthday() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() int64

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetGender

func (x *User) GetGender() GenderType

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetLoginAt

func (x *User) GetLoginAt() int64

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetStatus

func (x *User) GetStatus() StatusType

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() int64

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserServiceClient

type UserServiceClient interface {
	// auth
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// user
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error)
	BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersReply, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error)
	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordReply, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceServer

type UserServiceServer interface {
	// auth
	Register(context.Context, *RegisterRequest) (*RegisterReply, error)
	Login(context.Context, *LoginRequest) (*LoginReply, error)
	Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
	// user
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
	BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersReply, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
	UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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