v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const OperationUserServiceCreateUser = "/user.api.user.v1.UserService/CreateUser"
View Source
const OperationUserServiceDeleteUser = "/user.api.user.v1.UserService/DeleteUser"
View Source
const OperationUserServiceGetUser = "/user.api.user.v1.UserService/GetUser"
View Source
const OperationUserServiceGetUserRoles = "/user.api.user.v1.UserService/GetUserRoles"
View Source
const OperationUserServiceInviteUser = "/user.api.user.v1.UserService/InviteUser"
View Source
const OperationUserServiceListUsers = "/user.api.user.v1.UserService/ListUsers"
View Source
const OperationUserServiceUpdateUser = "/user.api.user.v1.UserService/UpdateUser"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "CONFIRM_PASSWORD_MISMATCH",
		1: "PASSWORD_INSUFFICIENT_STRENGTH",
		2: "INVALID_PASSWORD",
		3: "DUPLICATE_USERNAME",
		4: "DUPLICATE_EMAIL",
		5: "DUPLICATE_PHONE",
		6: "INVALID_EMAIL",
		7: "INVALID_PHONE",
		8: "INVALID_USERNAME",
		9: "USER_NOT_FOUND",
	}
	ErrorReason_value = map[string]int32{
		"CONFIRM_PASSWORD_MISMATCH":      0,
		"PASSWORD_INSUFFICIENT_STRENGTH": 1,
		"INVALID_PASSWORD":               2,
		"DUPLICATE_USERNAME":             3,
		"DUPLICATE_EMAIL":                4,
		"DUPLICATE_PHONE":                5,
		"INVALID_EMAIL":                  6,
		"INVALID_PHONE":                  7,
		"INVALID_USERNAME":               8,
		"USER_NOT_FOUND":                 9,
	}
)

Enum value maps for ErrorReason.

View Source
var (
	Gender_name = map[int32]string{
		0: "UNKNOWN",
		1: "MALE",
		2: "FEMALE",
		3: "OTHER",
	}
	Gender_value = map[string]int32{
		"UNKNOWN": 0,
		"MALE":    1,
		"FEMALE":  2,
		"OTHER":   3,
	}
)

Enum value maps for Gender.

View Source
var File_user_api_user_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_user_api_user_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.api.user.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "GetUserRoles",
			Handler:    _UserService_GetUserRoles_Handler,
		},
		{
			MethodName: "InviteUser",
			Handler:    _UserService_InviteUser_Handler,
		},
		{
			MethodName: "CheckUserTenant",
			Handler:    _UserService_CheckUserTenant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/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 ErrorConfirmPasswordMismatch

func ErrorConfirmPasswordMismatch(format string, args ...interface{}) *errors.Error

func ErrorConfirmPasswordMismatchLocalized

func ErrorConfirmPasswordMismatchLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorDuplicateEmail

func ErrorDuplicateEmail(format string, args ...interface{}) *errors.Error

func ErrorDuplicateEmailLocalized

func ErrorDuplicateEmailLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorDuplicatePhone

func ErrorDuplicatePhone(format string, args ...interface{}) *errors.Error

func ErrorDuplicatePhoneLocalized

func ErrorDuplicatePhoneLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorDuplicateUsername

func ErrorDuplicateUsername(format string, args ...interface{}) *errors.Error

func ErrorDuplicateUsernameLocalized

func ErrorDuplicateUsernameLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorInvalidEmail

func ErrorInvalidEmail(format string, args ...interface{}) *errors.Error

func ErrorInvalidEmailLocalized

func ErrorInvalidEmailLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorInvalidPassword

func ErrorInvalidPassword(format string, args ...interface{}) *errors.Error

func ErrorInvalidPasswordLocalized

func ErrorInvalidPasswordLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorInvalidPhone

func ErrorInvalidPhone(format string, args ...interface{}) *errors.Error

func ErrorInvalidPhoneLocalized

func ErrorInvalidPhoneLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorInvalidUsername

func ErrorInvalidUsername(format string, args ...interface{}) *errors.Error

func ErrorInvalidUsernameLocalized

func ErrorInvalidUsernameLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorPasswordInsufficientStrength

func ErrorPasswordInsufficientStrength(format string, args ...interface{}) *errors.Error

func ErrorPasswordInsufficientStrengthLocalized

func ErrorPasswordInsufficientStrengthLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

func ErrorUserNotFoundLocalized

func ErrorUserNotFoundLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func IsConfirmPasswordMismatch

func IsConfirmPasswordMismatch(err error) bool

func IsDuplicateEmail

func IsDuplicateEmail(err error) bool

func IsDuplicatePhone

func IsDuplicatePhone(err error) bool

func IsDuplicateUsername

func IsDuplicateUsername(err error) bool

func IsInvalidEmail

func IsInvalidEmail(err error) bool

func IsInvalidPassword

func IsInvalidPassword(err error) bool

func IsInvalidPhone

func IsInvalidPhone(err error) bool

func IsInvalidUsername

func IsInvalidUsername(err error) bool

func IsPasswordInsufficientStrength

func IsPasswordInsufficientStrength(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

func RegisterUserServiceHTTPServer

func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CheckUserTenantReply

type CheckUserTenantReply struct {

	//can user access this tenant
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserTenantReply) Descriptor deprecated

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

Deprecated: Use CheckUserTenantReply.ProtoReflect.Descriptor instead.

func (*CheckUserTenantReply) GetOk

func (x *CheckUserTenantReply) GetOk() bool

func (*CheckUserTenantReply) ProtoMessage

func (*CheckUserTenantReply) ProtoMessage()

func (*CheckUserTenantReply) ProtoReflect

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

func (*CheckUserTenantReply) Reset

func (x *CheckUserTenantReply) Reset()

func (*CheckUserTenantReply) String

func (x *CheckUserTenantReply) String() string

func (*CheckUserTenantReply) Validate

func (m *CheckUserTenantReply) Validate() error

Validate checks the field values on CheckUserTenantReply 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 (*CheckUserTenantReply) ValidateAll

func (m *CheckUserTenantReply) ValidateAll() error

ValidateAll checks the field values on CheckUserTenantReply 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 CheckUserTenantReplyMultiError, or nil if none found.

type CheckUserTenantReplyMultiError

type CheckUserTenantReplyMultiError []error

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

func (CheckUserTenantReplyMultiError) AllErrors

func (m CheckUserTenantReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckUserTenantReplyMultiError) Error

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

type CheckUserTenantReplyValidationError

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

CheckUserTenantReplyValidationError is the validation error returned by CheckUserTenantReply.Validate if the designated constraints aren't met.

func (CheckUserTenantReplyValidationError) Cause

Cause function returns cause value.

func (CheckUserTenantReplyValidationError) Error

Error satisfies the builtin error interface

func (CheckUserTenantReplyValidationError) ErrorName

ErrorName returns error name.

func (CheckUserTenantReplyValidationError) Field

Field function returns field value.

func (CheckUserTenantReplyValidationError) Key

Key function returns key value.

func (CheckUserTenantReplyValidationError) Reason

Reason function returns reason value.

type CheckUserTenantRequest

type CheckUserTenantRequest struct {
	UserId   string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserTenantRequest) Descriptor deprecated

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

Deprecated: Use CheckUserTenantRequest.ProtoReflect.Descriptor instead.

func (*CheckUserTenantRequest) GetTenantId

func (x *CheckUserTenantRequest) GetTenantId() string

func (*CheckUserTenantRequest) GetUserId

func (x *CheckUserTenantRequest) GetUserId() string

func (*CheckUserTenantRequest) ProtoMessage

func (*CheckUserTenantRequest) ProtoMessage()

func (*CheckUserTenantRequest) ProtoReflect

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

func (*CheckUserTenantRequest) Reset

func (x *CheckUserTenantRequest) Reset()

func (*CheckUserTenantRequest) String

func (x *CheckUserTenantRequest) String() string

func (*CheckUserTenantRequest) Validate

func (m *CheckUserTenantRequest) Validate() error

Validate checks the field values on CheckUserTenantRequest 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 (*CheckUserTenantRequest) ValidateAll

func (m *CheckUserTenantRequest) ValidateAll() error

ValidateAll checks the field values on CheckUserTenantRequest 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 CheckUserTenantRequestMultiError, or nil if none found.

type CheckUserTenantRequestMultiError

type CheckUserTenantRequestMultiError []error

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

func (CheckUserTenantRequestMultiError) AllErrors

func (m CheckUserTenantRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckUserTenantRequestMultiError) Error

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

type CheckUserTenantRequestValidationError

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

CheckUserTenantRequestValidationError is the validation error returned by CheckUserTenantRequest.Validate if the designated constraints aren't met.

func (CheckUserTenantRequestValidationError) Cause

Cause function returns cause value.

func (CheckUserTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (CheckUserTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (CheckUserTenantRequestValidationError) Field

Field function returns field value.

func (CheckUserTenantRequestValidationError) Key

Key function returns key value.

func (CheckUserTenantRequestValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	Username        *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Name            *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Phone           *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
	Email           *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Password        string                  `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	ConfirmPassword string                  `protobuf:"bytes,6,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
	Birthday        *timestamppb.Timestamp  `protobuf:"bytes,7,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"`
	//
	Gender  Gender   `protobuf:"varint,8,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"`
	Avatar  string   `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"`
	RolesId []string `protobuf:"bytes,10,rep,name=roles_id,json=rolesId,proto3" json:"roles_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetAvatar

func (x *CreateUserRequest) GetAvatar() string

func (*CreateUserRequest) GetBirthday

func (x *CreateUserRequest) GetBirthday() *timestamppb.Timestamp

func (*CreateUserRequest) GetConfirmPassword

func (x *CreateUserRequest) GetConfirmPassword() string

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() *wrapperspb.StringValue

func (*CreateUserRequest) GetGender

func (x *CreateUserRequest) GetGender() Gender

func (*CreateUserRequest) GetName

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetPhone

func (x *CreateUserRequest) GetPhone() *wrapperspb.StringValue

func (*CreateUserRequest) GetRolesId

func (x *CreateUserRequest) GetRolesId() []string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() *wrapperspb.StringValue

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) StringWithMask

func (x *CreateUserRequest) StringWithMask(mask 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 DeleteUserRequest

type DeleteUserRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	//default false. Just remove user out of tenant. set to true to remove user from system
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetForce

func (x *DeleteUserRequest) GetForce() bool

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

func (*DeleteUserRequest) Validate

func (m *DeleteUserRequest) Validate() error

Validate checks the field values on DeleteUserRequest 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 (*DeleteUserRequest) ValidateAll

func (m *DeleteUserRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRequest 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 DeleteUserRequestMultiError, or nil if none found.

type DeleteUserRequestMultiError

type DeleteUserRequestMultiError []error

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

func (DeleteUserRequestMultiError) AllErrors

func (m DeleteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRequestMultiError) Error

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

type DeleteUserRequestValidationError

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

DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.

func (DeleteUserRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserResponse

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

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

func (*DeleteUserResponse) Validate

func (m *DeleteUserResponse) Validate() error

Validate checks the field values on DeleteUserResponse 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 (*DeleteUserResponse) ValidateAll

func (m *DeleteUserResponse) ValidateAll() error

ValidateAll checks the field values on DeleteUserResponse 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 DeleteUserResponseMultiError, or nil if none found.

type DeleteUserResponseMultiError

type DeleteUserResponseMultiError []error

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

func (DeleteUserResponseMultiError) AllErrors

func (m DeleteUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserResponseMultiError) Error

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

type DeleteUserResponseValidationError

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

DeleteUserResponseValidationError is the validation error returned by DeleteUserResponse.Validate if the designated constraints aren't met.

func (DeleteUserResponseValidationError) Cause

Cause function returns cause value.

func (DeleteUserResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserResponseValidationError) Field

Field function returns field value.

func (DeleteUserResponseValidationError) Key

Key function returns key value.

func (DeleteUserResponseValidationError) Reason

Reason function returns reason value.

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_CONFIRM_PASSWORD_MISMATCH      ErrorReason = 0
	ErrorReason_PASSWORD_INSUFFICIENT_STRENGTH ErrorReason = 1
	ErrorReason_INVALID_PASSWORD               ErrorReason = 2
	ErrorReason_DUPLICATE_USERNAME             ErrorReason = 3
	ErrorReason_DUPLICATE_EMAIL                ErrorReason = 4
	ErrorReason_DUPLICATE_PHONE                ErrorReason = 5
	ErrorReason_INVALID_EMAIL                  ErrorReason = 6
	ErrorReason_INVALID_PHONE                  ErrorReason = 7
	ErrorReason_INVALID_USERNAME               ErrorReason = 8
	ErrorReason_USER_NOT_FOUND                 ErrorReason = 9
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type Gender

type Gender int32
const (
	Gender_UNKNOWN Gender = 0
	Gender_MALE    Gender = 1
	Gender_FEMALE  Gender = 2
	Gender_OTHER   Gender = 3
)

func (Gender) Descriptor

func (Gender) Descriptor() protoreflect.EnumDescriptor

func (Gender) Enum

func (x Gender) Enum() *Gender

func (Gender) EnumDescriptor deprecated

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

Deprecated: Use Gender.Descriptor instead.

func (Gender) Number

func (x Gender) Number() protoreflect.EnumNumber

func (Gender) String

func (x Gender) String() string

func (Gender) Type

func (Gender) Type() protoreflect.EnumType

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

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 GetUserRoleReply

type GetUserRoleReply struct {
	Roles []*UserRole `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRoleReply) Descriptor deprecated

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

Deprecated: Use GetUserRoleReply.ProtoReflect.Descriptor instead.

func (*GetUserRoleReply) GetRoles

func (x *GetUserRoleReply) GetRoles() []*UserRole

func (*GetUserRoleReply) ProtoMessage

func (*GetUserRoleReply) ProtoMessage()

func (*GetUserRoleReply) ProtoReflect

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

func (*GetUserRoleReply) Reset

func (x *GetUserRoleReply) Reset()

func (*GetUserRoleReply) String

func (x *GetUserRoleReply) String() string

func (*GetUserRoleReply) Validate

func (m *GetUserRoleReply) Validate() error

Validate checks the field values on GetUserRoleReply 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 (*GetUserRoleReply) ValidateAll

func (m *GetUserRoleReply) ValidateAll() error

ValidateAll checks the field values on GetUserRoleReply 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 GetUserRoleReplyMultiError, or nil if none found.

type GetUserRoleReplyMultiError

type GetUserRoleReplyMultiError []error

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

func (GetUserRoleReplyMultiError) AllErrors

func (m GetUserRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRoleReplyMultiError) Error

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

type GetUserRoleReplyValidationError

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

GetUserRoleReplyValidationError is the validation error returned by GetUserRoleReply.Validate if the designated constraints aren't met.

func (GetUserRoleReplyValidationError) Cause

Cause function returns cause value.

func (GetUserRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserRoleReplyValidationError) ErrorName

ErrorName returns error name.

func (GetUserRoleReplyValidationError) Field

Field function returns field value.

func (GetUserRoleReplyValidationError) Key

Key function returns key value.

func (GetUserRoleReplyValidationError) Reason

Reason function returns reason value.

type GetUserRoleRequest

type GetUserRoleRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRoleRequest) Descriptor deprecated

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

Deprecated: Use GetUserRoleRequest.ProtoReflect.Descriptor instead.

func (*GetUserRoleRequest) GetId

func (x *GetUserRoleRequest) GetId() string

func (*GetUserRoleRequest) ProtoMessage

func (*GetUserRoleRequest) ProtoMessage()

func (*GetUserRoleRequest) ProtoReflect

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

func (*GetUserRoleRequest) Reset

func (x *GetUserRoleRequest) Reset()

func (*GetUserRoleRequest) String

func (x *GetUserRoleRequest) String() string

func (*GetUserRoleRequest) Validate

func (m *GetUserRoleRequest) Validate() error

Validate checks the field values on GetUserRoleRequest 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 (*GetUserRoleRequest) ValidateAll

func (m *GetUserRoleRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRoleRequest 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 GetUserRoleRequestMultiError, or nil if none found.

type GetUserRoleRequestMultiError

type GetUserRoleRequestMultiError []error

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

func (GetUserRoleRequestMultiError) AllErrors

func (m GetUserRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRoleRequestMultiError) Error

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

type GetUserRoleRequestValidationError

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

GetUserRoleRequestValidationError is the validation error returned by GetUserRoleRequest.Validate if the designated constraints aren't met.

func (GetUserRoleRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserRoleRequestValidationError) Field

Field function returns field value.

func (GetUserRoleRequestValidationError) Key

Key function returns key value.

func (GetUserRoleRequestValidationError) Reason

Reason function returns reason value.

type InviteUserReply

type InviteUserReply struct {
	RequiredConfirm bool `protobuf:"varint,1,opt,name=required_confirm,json=requiredConfirm,proto3" json:"required_confirm,omitempty"`
	// contains filtered or unexported fields
}

func (*InviteUserReply) Descriptor deprecated

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

Deprecated: Use InviteUserReply.ProtoReflect.Descriptor instead.

func (*InviteUserReply) GetRequiredConfirm

func (x *InviteUserReply) GetRequiredConfirm() bool

func (*InviteUserReply) ProtoMessage

func (*InviteUserReply) ProtoMessage()

func (*InviteUserReply) ProtoReflect

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

func (*InviteUserReply) Reset

func (x *InviteUserReply) Reset()

func (*InviteUserReply) String

func (x *InviteUserReply) String() string

func (*InviteUserReply) Validate

func (m *InviteUserReply) Validate() error

Validate checks the field values on InviteUserReply 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 (*InviteUserReply) ValidateAll

func (m *InviteUserReply) ValidateAll() error

ValidateAll checks the field values on InviteUserReply 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 InviteUserReplyMultiError, or nil if none found.

type InviteUserReplyMultiError

type InviteUserReplyMultiError []error

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

func (InviteUserReplyMultiError) AllErrors

func (m InviteUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InviteUserReplyMultiError) Error

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

type InviteUserReplyValidationError

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

InviteUserReplyValidationError is the validation error returned by InviteUserReply.Validate if the designated constraints aren't met.

func (InviteUserReplyValidationError) Cause

Cause function returns cause value.

func (InviteUserReplyValidationError) Error

Error satisfies the builtin error interface

func (InviteUserReplyValidationError) ErrorName

func (e InviteUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (InviteUserReplyValidationError) Field

Field function returns field value.

func (InviteUserReplyValidationError) Key

Key function returns key value.

func (InviteUserReplyValidationError) Reason

Reason function returns reason value.

type InviteUserRequest

type InviteUserRequest struct {

	//username email or phone
	Identify string `protobuf:"bytes,1,opt,name=identify,proto3" json:"identify,omitempty"`
	// contains filtered or unexported fields
}

func (*InviteUserRequest) Descriptor deprecated

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

Deprecated: Use InviteUserRequest.ProtoReflect.Descriptor instead.

func (*InviteUserRequest) GetIdentify

func (x *InviteUserRequest) GetIdentify() string

func (*InviteUserRequest) ProtoMessage

func (*InviteUserRequest) ProtoMessage()

func (*InviteUserRequest) ProtoReflect

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

func (*InviteUserRequest) Reset

func (x *InviteUserRequest) Reset()

func (*InviteUserRequest) String

func (x *InviteUserRequest) String() string

func (*InviteUserRequest) Validate

func (m *InviteUserRequest) Validate() error

Validate checks the field values on InviteUserRequest 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 (*InviteUserRequest) ValidateAll

func (m *InviteUserRequest) ValidateAll() error

ValidateAll checks the field values on InviteUserRequest 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 InviteUserRequestMultiError, or nil if none found.

type InviteUserRequestMultiError

type InviteUserRequestMultiError []error

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

func (InviteUserRequestMultiError) AllErrors

func (m InviteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InviteUserRequestMultiError) Error

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

type InviteUserRequestValidationError

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

InviteUserRequestValidationError is the validation error returned by InviteUserRequest.Validate if the designated constraints aren't met.

func (InviteUserRequestValidationError) Cause

Cause function returns cause value.

func (InviteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (InviteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (InviteUserRequestValidationError) Field

Field function returns field value.

func (InviteUserRequestValidationError) Key

Key function returns key value.

func (InviteUserRequestValidationError) Reason

Reason function returns reason value.

type ListUsersRequest

type ListUsersRequest struct {
	PageOffset int32                  `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"`
	PageSize   int32                  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Search     string                 `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	Sort       []string               `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"`
	Fields     *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"`
	Filter     *UserFilter            `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetFields

func (x *ListUsersRequest) GetFields() *fieldmaskpb.FieldMask

func (*ListUsersRequest) GetFilter

func (x *ListUsersRequest) GetFilter() *UserFilter

func (*ListUsersRequest) GetPageOffset

func (x *ListUsersRequest) GetPageOffset() int32

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetSearch

func (x *ListUsersRequest) GetSearch() string

func (*ListUsersRequest) GetSort

func (x *ListUsersRequest) GetSort() []string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

func (*ListUsersRequest) Validate

func (m *ListUsersRequest) Validate() error

Validate checks the field values on ListUsersRequest 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 (*ListUsersRequest) ValidateAll

func (m *ListUsersRequest) ValidateAll() error

ValidateAll checks the field values on ListUsersRequest 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 ListUsersRequestMultiError, or nil if none found.

type ListUsersRequestMultiError

type ListUsersRequestMultiError []error

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

func (ListUsersRequestMultiError) AllErrors

func (m ListUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersRequestMultiError) Error

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

type ListUsersRequestValidationError

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

ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.

func (ListUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

Reason function returns reason value.

type ListUsersResponse

type ListUsersResponse struct {
	TotalSize  int32   `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	FilterSize int32   `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"`
	Items      []*User `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetFilterSize

func (x *ListUsersResponse) GetFilterSize() int32

func (*ListUsersResponse) GetItems

func (x *ListUsersResponse) GetItems() []*User

func (*ListUsersResponse) GetTotalSize

func (x *ListUsersResponse) GetTotalSize() int32

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

func (*ListUsersResponse) Validate

func (m *ListUsersResponse) Validate() error

Validate checks the field values on ListUsersResponse 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 (*ListUsersResponse) ValidateAll

func (m *ListUsersResponse) ValidateAll() error

ValidateAll checks the field values on ListUsersResponse 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 ListUsersResponseMultiError, or nil if none found.

type ListUsersResponseMultiError

type ListUsersResponseMultiError []error

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

func (ListUsersResponseMultiError) AllErrors

func (m ListUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersResponseMultiError) Error

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

type ListUsersResponseValidationError

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

ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.

func (ListUsersResponseValidationError) Cause

Cause function returns cause value.

func (ListUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersResponseValidationError) Field

Field function returns field value.

func (ListUsersResponseValidationError) Key

Key function returns key value.

func (ListUsersResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CheckUserTenant

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserRoles

func (UnimplementedUserServiceServer) InviteUser

func (UnimplementedUserServiceServer) ListUsers

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 UpdateUser

type UpdateUser struct {
	Id       string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Name     *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Phone    *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
	Email    *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Birthday *timestamppb.Timestamp  `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"`
	//
	Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"`
	//reset password
	Password        string   `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"`
	ConfirmPassword string   `protobuf:"bytes,9,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
	Avatar          string   `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"`
	RolesId         []string `protobuf:"bytes,11,rep,name=roles_id,json=rolesId,proto3" json:"roles_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUser) Descriptor deprecated

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

Deprecated: Use UpdateUser.ProtoReflect.Descriptor instead.

func (*UpdateUser) GetAvatar

func (x *UpdateUser) GetAvatar() string

func (*UpdateUser) GetBirthday

func (x *UpdateUser) GetBirthday() *timestamppb.Timestamp

func (*UpdateUser) GetConfirmPassword

func (x *UpdateUser) GetConfirmPassword() string

func (*UpdateUser) GetEmail

func (x *UpdateUser) GetEmail() *wrapperspb.StringValue

func (*UpdateUser) GetGender

func (x *UpdateUser) GetGender() Gender

func (*UpdateUser) GetId

func (x *UpdateUser) GetId() string

func (*UpdateUser) GetName

func (x *UpdateUser) GetName() *wrapperspb.StringValue

func (*UpdateUser) GetPassword

func (x *UpdateUser) GetPassword() string

func (*UpdateUser) GetPhone

func (x *UpdateUser) GetPhone() *wrapperspb.StringValue

func (*UpdateUser) GetRolesId

func (x *UpdateUser) GetRolesId() []string

func (*UpdateUser) GetUsername

func (x *UpdateUser) GetUsername() *wrapperspb.StringValue

func (*UpdateUser) ProtoMessage

func (*UpdateUser) ProtoMessage()

func (*UpdateUser) ProtoReflect

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

func (*UpdateUser) Reset

func (x *UpdateUser) Reset()

func (*UpdateUser) String

func (x *UpdateUser) String() string

func (*UpdateUser) Validate

func (m *UpdateUser) Validate() error

Validate checks the field values on UpdateUser 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 (*UpdateUser) ValidateAll

func (m *UpdateUser) ValidateAll() error

ValidateAll checks the field values on UpdateUser 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 UpdateUserMultiError, or nil if none found.

type UpdateUserMultiError

type UpdateUserMultiError []error

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

func (UpdateUserMultiError) AllErrors

func (m UpdateUserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserMultiError) Error

func (m UpdateUserMultiError) Error() string

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

type UpdateUserRequest

type UpdateUserRequest struct {
	User       *UpdateUser            `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUpdateMask

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *UpdateUser

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) StringWithMask

func (x *UpdateUserRequest) StringWithMask(mask 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 UpdateUserValidationError

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

UpdateUserValidationError is the validation error returned by UpdateUser.Validate if the designated constraints aren't met.

func (UpdateUserValidationError) Cause

func (e UpdateUserValidationError) Cause() error

Cause function returns cause value.

func (UpdateUserValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserValidationError) ErrorName

func (e UpdateUserValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateUserValidationError) Field

Field function returns field value.

func (UpdateUserValidationError) Key

Key function returns key value.

func (UpdateUserValidationError) Reason

func (e UpdateUserValidationError) Reason() string

Reason function returns reason value.

type User

type User struct {
	Id       string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Name     *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Phone    *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
	Email    *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Birthday *timestamppb.Timestamp  `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"`
	//
	Gender Gender         `protobuf:"varint,7,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"`
	Roles  []*v1.Role     `protobuf:"bytes,8,rep,name=roles,proto3" json:"roles,omitempty"`
	Avatar *blob.BlobFile `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() *blob.BlobFile

func (*User) GetBirthday

func (x *User) GetBirthday() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() *wrapperspb.StringValue

func (*User) GetGender

func (x *User) GetGender() Gender

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() *wrapperspb.StringValue

func (*User) GetPhone

func (x *User) GetPhone() *wrapperspb.StringValue

func (*User) GetRoles

func (x *User) GetRoles() []*v1.Role

func (*User) GetUsername

func (x *User) GetUsername() *wrapperspb.StringValue

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 UserFilter

type UserFilter struct {
	Id       *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Gender   *query.StringFilterOperation `protobuf:"bytes,2,opt,name=gender,proto3" json:"gender,omitempty"`
	Birthday *query.DateFilterOperators   `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Roles    *v1.RoleFilter               `protobuf:"bytes,5,opt,name=roles,proto3" json:"roles,omitempty"`
	And      []*UserFilter                `protobuf:"bytes,7,rep,name=and,proto3" json:"and,omitempty"`
	Or       []*UserFilter                `protobuf:"bytes,8,rep,name=or,proto3" json:"or,omitempty"`
	// contains filtered or unexported fields
}

func (*UserFilter) Descriptor deprecated

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

Deprecated: Use UserFilter.ProtoReflect.Descriptor instead.

func (*UserFilter) GetAnd

func (x *UserFilter) GetAnd() []*UserFilter

func (*UserFilter) GetBirthday

func (x *UserFilter) GetBirthday() *query.DateFilterOperators

func (*UserFilter) GetGender

func (x *UserFilter) GetGender() *query.StringFilterOperation

func (*UserFilter) GetId

func (*UserFilter) GetOr

func (x *UserFilter) GetOr() []*UserFilter

func (*UserFilter) GetRoles

func (x *UserFilter) GetRoles() *v1.RoleFilter

func (*UserFilter) ProtoMessage

func (*UserFilter) ProtoMessage()

func (*UserFilter) ProtoReflect

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

func (*UserFilter) Reset

func (x *UserFilter) Reset()

func (*UserFilter) String

func (x *UserFilter) String() string

func (*UserFilter) Validate

func (m *UserFilter) Validate() error

Validate checks the field values on UserFilter 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 (*UserFilter) ValidateAll

func (m *UserFilter) ValidateAll() error

ValidateAll checks the field values on UserFilter 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 UserFilterMultiError, or nil if none found.

type UserFilterMultiError

type UserFilterMultiError []error

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

func (UserFilterMultiError) AllErrors

func (m UserFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserFilterMultiError) Error

func (m UserFilterMultiError) Error() string

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

type UserFilterValidationError

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

UserFilterValidationError is the validation error returned by UserFilter.Validate if the designated constraints aren't met.

func (UserFilterValidationError) Cause

func (e UserFilterValidationError) Cause() error

Cause function returns cause value.

func (UserFilterValidationError) Error

Error satisfies the builtin error interface

func (UserFilterValidationError) ErrorName

func (e UserFilterValidationError) ErrorName() string

ErrorName returns error name.

func (UserFilterValidationError) Field

Field function returns field value.

func (UserFilterValidationError) Key

Key function returns key value.

func (UserFilterValidationError) Reason

func (e UserFilterValidationError) Reason() string

Reason function returns reason value.

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 UserRole

type UserRole 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"`
	// contains filtered or unexported fields
}

func (*UserRole) Descriptor deprecated

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

Deprecated: Use UserRole.ProtoReflect.Descriptor instead.

func (*UserRole) GetId

func (x *UserRole) GetId() string

func (*UserRole) GetName

func (x *UserRole) GetName() string

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) ProtoReflect

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

func (*UserRole) Reset

func (x *UserRole) Reset()

func (*UserRole) String

func (x *UserRole) String() string

func (*UserRole) Validate

func (m *UserRole) Validate() error

Validate checks the field values on UserRole 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 (*UserRole) ValidateAll

func (m *UserRole) ValidateAll() error

ValidateAll checks the field values on UserRole 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 UserRoleMultiError, or nil if none found.

type UserRoleMultiError

type UserRoleMultiError []error

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

func (UserRoleMultiError) AllErrors

func (m UserRoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserRoleMultiError) Error

func (m UserRoleMultiError) Error() string

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

type UserRoleValidationError

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

UserRoleValidationError is the validation error returned by UserRole.Validate if the designated constraints aren't met.

func (UserRoleValidationError) Cause

func (e UserRoleValidationError) Cause() error

Cause function returns cause value.

func (UserRoleValidationError) Error

func (e UserRoleValidationError) Error() string

Error satisfies the builtin error interface

func (UserRoleValidationError) ErrorName

func (e UserRoleValidationError) ErrorName() string

ErrorName returns error name.

func (UserRoleValidationError) Field

func (e UserRoleValidationError) Field() string

Field function returns field value.

func (UserRoleValidationError) Key

func (e UserRoleValidationError) Key() bool

Key function returns key value.

func (UserRoleValidationError) Reason

func (e UserRoleValidationError) Reason() string

Reason function returns reason value.

type UserServiceClient

type UserServiceClient interface {
	//ListUsers
	// authz: user.user,*,list
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	//GetUser
	// authz: user.user,id,get
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// CreateUser
	// authz: user.user,*,create
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	//UpdateUser
	// authz: user.user,id,update
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	//DeleteUser
	// authz: user.user,id,delete
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	//GetUserRoles
	// authz: user.user,id,get
	GetUserRoles(ctx context.Context, in *GetUserRoleRequest, opts ...grpc.CallOption) (*GetUserRoleReply, error)
	//InviteUser
	//authz: user.user,*,create
	InviteUser(ctx context.Context, in *InviteUserRequest, opts ...grpc.CallOption) (*InviteUserReply, error)
	//CheckUserTenant internal api for checking whether user is allowed in this tenant
	CheckUserTenant(ctx context.Context, in *CheckUserTenantRequest, opts ...grpc.CallOption) (*CheckUserTenantReply, 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 UserServiceHTTPClient

type UserServiceHTTPClient interface {
	CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *User, err error)
	DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *DeleteUserResponse, err error)
	GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *User, err error)
	GetUserRoles(ctx context.Context, req *GetUserRoleRequest, opts ...http.CallOption) (rsp *GetUserRoleReply, err error)
	InviteUser(ctx context.Context, req *InviteUserRequest, opts ...http.CallOption) (rsp *InviteUserReply, err error)
	ListUsers(ctx context.Context, req *ListUsersRequest, opts ...http.CallOption) (rsp *ListUsersResponse, err error)
	UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *User, err error)
}

func NewUserServiceHTTPClient

func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient

type UserServiceHTTPClientImpl

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

func (*UserServiceHTTPClientImpl) CreateUser

func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*User, error)

func (*UserServiceHTTPClientImpl) DeleteUser

func (*UserServiceHTTPClientImpl) GetUser

func (*UserServiceHTTPClientImpl) GetUserRoles

func (*UserServiceHTTPClientImpl) InviteUser

func (*UserServiceHTTPClientImpl) ListUsers

func (*UserServiceHTTPClientImpl) UpdateUser

func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*User, error)

type UserServiceServer

type UserServiceServer interface {
	//ListUsers
	// authz: user.user,*,list
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	//GetUser
	// authz: user.user,id,get
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// CreateUser
	// authz: user.user,*,create
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	//UpdateUser
	// authz: user.user,id,update
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	//DeleteUser
	// authz: user.user,id,delete
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	//GetUserRoles
	// authz: user.user,id,get
	GetUserRoles(context.Context, *GetUserRoleRequest) (*GetUserRoleReply, error)
	//InviteUser
	//authz: user.user,*,create
	InviteUser(context.Context, *InviteUserRequest) (*InviteUserReply, error)
	//CheckUserTenant internal api for checking whether user is allowed in this tenant
	CheckUserTenant(context.Context, *CheckUserTenantRequest) (*CheckUserTenantReply, error)
}

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

func NewUserServiceClientProxy

func NewUserServiceClientProxy(cc UserServiceClient) UserServiceServer

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