user

package
v0.0.0-...-d36d6b6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User_GetCurrentUser_FullMethodName            = "/manager.api.user.User/GetCurrentUser"
	User_UpdateCurrentUserPassword_FullMethodName = "/manager.api.user.User/UpdateCurrentUserPassword"
	User_UpdateCurrentUserSetting_FullMethodName  = "/manager.api.user.User/UpdateCurrentUserSetting"
	User_UpdateCurrentUser_FullMethodName         = "/manager.api.user.User/UpdateCurrentUser"
	User_GetUser_FullMethodName                   = "/manager.api.user.User/GetUser"
	User_ListUser_FullMethodName                  = "/manager.api.user.User/ListUser"
	User_CreateUser_FullMethodName                = "/manager.api.user.User/CreateUser"
	User_ResetPassword_FullMethodName             = "/manager.api.user.User/ResetPassword"
	User_UpdateUser_FullMethodName                = "/manager.api.user.User/UpdateUser"
	User_DeleteUser_FullMethodName                = "/manager.api.user.User/DeleteUser"
	User_UpdateUserinfo_FullMethodName            = "/manager.api.user.User/UpdateUserinfo"
	User_OfflineUser_FullMethodName               = "/manager.api.user.User/OfflineUser"
)
View Source
const (
	OperationUserCreateUser                = "/manager.api.user.User/CreateUser"
	OperationUserDeleteUser                = "/manager.api.user.User/DeleteUser"
	OperationUserGetCurrentUser            = "/manager.api.user.User/GetCurrentUser"
	OperationUserGetUser                   = "/manager.api.user.User/GetUser"
	OperationUserListUser                  = "/manager.api.user.User/ListUser"
	OperationUserOfflineUser               = "/manager.api.user.User/OfflineUser"
	OperationUserResetPassword             = "/manager.api.user.User/ResetPassword"
	OperationUserUpdateCurrentUser         = "/manager.api.user.User/UpdateCurrentUser"
	OperationUserUpdateCurrentUserPassword = "/manager.api.user.User/UpdateCurrentUserPassword"
	OperationUserUpdateCurrentUserSetting  = "/manager.api.user.User/UpdateCurrentUserSetting"
	OperationUserUpdateUser                = "/manager.api.user.User/UpdateUser"
	OperationUserUpdateUserinfo            = "/manager.api.user.User/UpdateUserinfo"
)

Variables

View Source
var File_api_user_proto_user_proto protoreflect.FileDescriptor
View Source
var File_api_user_proto_user_service_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.user.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCurrentUser",
			Handler:    _User_GetCurrentUser_Handler,
		},
		{
			MethodName: "UpdateCurrentUserPassword",
			Handler:    _User_UpdateCurrentUserPassword_Handler,
		},
		{
			MethodName: "UpdateCurrentUserSetting",
			Handler:    _User_UpdateCurrentUserSetting_Handler,
		},
		{
			MethodName: "UpdateCurrentUser",
			Handler:    _User_UpdateCurrentUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _User_GetUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _User_ListUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _User_CreateUser_Handler,
		},
		{
			MethodName: "ResetPassword",
			Handler:    _User_ResetPassword_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _User_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _User_DeleteUser_Handler,
		},
		{
			MethodName: "UpdateUserinfo",
			Handler:    _User_UpdateUserinfo_Handler,
		},
		{
			MethodName: "OfflineUser",
			Handler:    _User_OfflineUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/user/proto/user_service.proto",
}

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

Functions

func RegisterUserHTTPServer

func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type CreateUserReply

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

func (*CreateUserReply) Descriptor deprecated

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

Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.

func (*CreateUserReply) GetId

func (x *CreateUserReply) GetId() uint32

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 {
	Avatar   string            `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Nickname string            `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Username string            `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Infos    map[string]string `` /* 151-byte string literal not displayed */
	// 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) GetInfos

func (x *CreateUserRequest) GetInfos() map[string]string

func (*CreateUserRequest) GetNickname

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

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

func (*DeleteUserReply) Descriptor deprecated

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

Deprecated: Use DeleteUserReply.ProtoReflect.Descriptor instead.

func (*DeleteUserReply) ProtoMessage

func (*DeleteUserReply) ProtoMessage()

func (*DeleteUserReply) ProtoReflect

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

func (*DeleteUserReply) Reset

func (x *DeleteUserReply) Reset()

func (*DeleteUserReply) String

func (x *DeleteUserReply) String() string

func (*DeleteUserReply) Validate

func (m *DeleteUserReply) Validate() error

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

func (m *DeleteUserReply) ValidateAll() error

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

type DeleteUserReplyMultiError

type DeleteUserReplyMultiError []error

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

func (DeleteUserReplyMultiError) AllErrors

func (m DeleteUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserReplyMultiError) Error

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

type DeleteUserReplyValidationError

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

DeleteUserReplyValidationError is the validation error returned by DeleteUserReply.Validate if the designated constraints aren't met.

func (DeleteUserReplyValidationError) Cause

Cause function returns cause value.

func (DeleteUserReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserReplyValidationError) ErrorName

func (e DeleteUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteUserReplyValidationError) Field

Field function returns field value.

func (DeleteUserReplyValidationError) Key

Key function returns key value.

func (DeleteUserReplyValidationError) Reason

Reason function returns reason value.

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() uint32

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 GetCurrentUserRequest

type GetCurrentUserRequest struct {
	App *string `protobuf:"bytes,1,opt,name=app,proto3,oneof" json:"app,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCurrentUserRequest) Descriptor deprecated

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

Deprecated: Use GetCurrentUserRequest.ProtoReflect.Descriptor instead.

func (*GetCurrentUserRequest) GetApp

func (x *GetCurrentUserRequest) GetApp() string

func (*GetCurrentUserRequest) ProtoMessage

func (*GetCurrentUserRequest) ProtoMessage()

func (*GetCurrentUserRequest) ProtoReflect

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

func (*GetCurrentUserRequest) Reset

func (x *GetCurrentUserRequest) Reset()

func (*GetCurrentUserRequest) String

func (x *GetCurrentUserRequest) String() string

func (*GetCurrentUserRequest) Validate

func (m *GetCurrentUserRequest) Validate() error

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

func (m *GetCurrentUserRequest) ValidateAll() error

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

type GetCurrentUserRequestMultiError

type GetCurrentUserRequestMultiError []error

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

func (GetCurrentUserRequestMultiError) AllErrors

func (m GetCurrentUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCurrentUserRequestMultiError) Error

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

type GetCurrentUserRequestValidationError

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

GetCurrentUserRequestValidationError is the validation error returned by GetCurrentUserRequest.Validate if the designated constraints aren't met.

func (GetCurrentUserRequestValidationError) Cause

Cause function returns cause value.

func (GetCurrentUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCurrentUserRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCurrentUserRequestValidationError) Field

Field function returns field value.

func (GetCurrentUserRequestValidationError) Key

Key function returns key value.

func (GetCurrentUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {
	Id       *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Username *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	App      *string `protobuf:"bytes,3,opt,name=app,proto3,oneof" json:"app,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetApp

func (x *GetUserRequest) GetApp() string

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() uint32

func (*GetUserRequest) GetUsername

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

type ListUserReply struct {
	Total uint32        `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*UserObject `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserReply) Descriptor deprecated

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

Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.

func (*ListUserReply) GetList

func (x *ListUserReply) GetList() []*UserObject

func (*ListUserReply) GetTotal

func (x *ListUserReply) GetTotal() uint32

func (*ListUserReply) ProtoMessage

func (*ListUserReply) ProtoMessage()

func (*ListUserReply) ProtoReflect

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

func (*ListUserReply) Reset

func (x *ListUserReply) Reset()

func (*ListUserReply) String

func (x *ListUserReply) String() string

func (*ListUserReply) Validate

func (m *ListUserReply) Validate() error

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

func (m *ListUserReply) ValidateAll() error

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

type ListUserReplyMultiError

type ListUserReplyMultiError []error

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

func (ListUserReplyMultiError) AllErrors

func (m ListUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserReplyMultiError) Error

func (m ListUserReplyMultiError) Error() string

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

type ListUserReplyValidationError

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

ListUserReplyValidationError is the validation error returned by ListUserReply.Validate if the designated constraints aren't met.

func (ListUserReplyValidationError) Cause

Cause function returns cause value.

func (ListUserReplyValidationError) Error

Error satisfies the builtin error interface

func (ListUserReplyValidationError) ErrorName

func (e ListUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserReplyValidationError) Field

Field function returns field value.

func (ListUserReplyValidationError) Key

Key function returns key value.

func (ListUserReplyValidationError) Reason

Reason function returns reason value.

type ListUserRequest

type ListUserRequest struct {
	Page       uint32   `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize   uint32   `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	AppId      *uint32  `protobuf:"varint,3,opt,name=appId,proto3,oneof" json:"appId,omitempty"`
	DeptId     *uint32  `protobuf:"varint,4,opt,name=deptId,proto3,oneof" json:"deptId,omitempty"`
	JobId      *uint32  `protobuf:"varint,5,opt,name=jobId,proto3,oneof" json:"jobId,omitempty"`
	Username   *string  `protobuf:"bytes,6,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Status     *bool    `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
	LoggedAts  []int64  `protobuf:"varint,8,rep,packed,name=loggedAts,proto3" json:"loggedAts,omitempty"`
	CreatedAts []int64  `protobuf:"varint,9,rep,packed,name=createdAts,proto3" json:"createdAts,omitempty"`
	InIds      []uint32 `protobuf:"varint,10,rep,packed,name=inIds,proto3" json:"inIds,omitempty"`
	NotInIds   []uint32 `protobuf:"varint,11,rep,packed,name=notInIds,proto3" json:"notInIds,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserRequest) Descriptor deprecated

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

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetAppId

func (x *ListUserRequest) GetAppId() uint32

func (*ListUserRequest) GetCreatedAts

func (x *ListUserRequest) GetCreatedAts() []int64

func (*ListUserRequest) GetDeptId

func (x *ListUserRequest) GetDeptId() uint32

func (*ListUserRequest) GetInIds

func (x *ListUserRequest) GetInIds() []uint32

func (*ListUserRequest) GetJobId

func (x *ListUserRequest) GetJobId() uint32

func (*ListUserRequest) GetLoggedAts

func (x *ListUserRequest) GetLoggedAts() []int64

func (*ListUserRequest) GetNotInIds

func (x *ListUserRequest) GetNotInIds() []uint32

func (*ListUserRequest) GetPage

func (x *ListUserRequest) GetPage() uint32

func (*ListUserRequest) GetPageSize

func (x *ListUserRequest) GetPageSize() uint32

func (*ListUserRequest) GetStatus

func (x *ListUserRequest) GetStatus() bool

func (*ListUserRequest) GetUsername

func (x *ListUserRequest) GetUsername() string

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

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

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) String() string

func (*ListUserRequest) Validate

func (m *ListUserRequest) Validate() error

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

func (m *ListUserRequest) ValidateAll() error

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

type ListUserRequestMultiError

type ListUserRequestMultiError []error

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

func (ListUserRequestMultiError) AllErrors

func (m ListUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserRequestMultiError) Error

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

type ListUserRequestValidationError

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

ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.

func (ListUserRequestValidationError) Cause

Cause function returns cause value.

func (ListUserRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserRequestValidationError) ErrorName

func (e ListUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserRequestValidationError) Field

Field function returns field value.

func (ListUserRequestValidationError) Key

Key function returns key value.

func (ListUserRequestValidationError) Reason

Reason function returns reason value.

type OfflineUserRequest

type OfflineUserRequest struct {
	UserId uint32   `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	AppIds []uint32 `protobuf:"varint,2,rep,packed,name=appIds,proto3" json:"appIds,omitempty"`
	// contains filtered or unexported fields
}

func (*OfflineUserRequest) Descriptor deprecated

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

Deprecated: Use OfflineUserRequest.ProtoReflect.Descriptor instead.

func (*OfflineUserRequest) GetAppIds

func (x *OfflineUserRequest) GetAppIds() []uint32

func (*OfflineUserRequest) GetUserId

func (x *OfflineUserRequest) GetUserId() uint32

func (*OfflineUserRequest) ProtoMessage

func (*OfflineUserRequest) ProtoMessage()

func (*OfflineUserRequest) ProtoReflect

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

func (*OfflineUserRequest) Reset

func (x *OfflineUserRequest) Reset()

func (*OfflineUserRequest) String

func (x *OfflineUserRequest) String() string

func (*OfflineUserRequest) Validate

func (m *OfflineUserRequest) Validate() error

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

func (m *OfflineUserRequest) ValidateAll() error

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

type OfflineUserRequestMultiError

type OfflineUserRequestMultiError []error

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

func (OfflineUserRequestMultiError) AllErrors

func (m OfflineUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OfflineUserRequestMultiError) Error

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

type OfflineUserRequestValidationError

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

OfflineUserRequestValidationError is the validation error returned by OfflineUserRequest.Validate if the designated constraints aren't met.

func (OfflineUserRequestValidationError) Cause

Cause function returns cause value.

func (OfflineUserRequestValidationError) Error

Error satisfies the builtin error interface

func (OfflineUserRequestValidationError) ErrorName

ErrorName returns error name.

func (OfflineUserRequestValidationError) Field

Field function returns field value.

func (OfflineUserRequestValidationError) Key

Key function returns key value.

func (OfflineUserRequestValidationError) Reason

Reason function returns reason value.

type ResetPasswordRequest

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

func (*ResetPasswordRequest) Descriptor deprecated

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

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetId

func (x *ResetPasswordRequest) GetId() uint32

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

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

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

func (*ResetPasswordRequest) Validate

func (m *ResetPasswordRequest) Validate() error

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

func (m *ResetPasswordRequest) ValidateAll() error

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

type ResetPasswordRequestMultiError

type ResetPasswordRequestMultiError []error

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

func (ResetPasswordRequestMultiError) AllErrors

func (m ResetPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPasswordRequestMultiError) Error

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

type ResetPasswordRequestValidationError

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

ResetPasswordRequestValidationError is the validation error returned by ResetPasswordRequest.Validate if the designated constraints aren't met.

func (ResetPasswordRequestValidationError) Cause

Cause function returns cause value.

func (ResetPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetPasswordRequestValidationError) Field

Field function returns field value.

func (ResetPasswordRequestValidationError) Key

Key function returns key value.

func (ResetPasswordRequestValidationError) Reason

Reason function returns reason value.

type ResetUserPasswordRequest

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

func (*ResetUserPasswordRequest) Descriptor deprecated

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

Deprecated: Use ResetUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetUserPasswordRequest) GetId

func (x *ResetUserPasswordRequest) GetId() uint32

func (*ResetUserPasswordRequest) ProtoMessage

func (*ResetUserPasswordRequest) ProtoMessage()

func (*ResetUserPasswordRequest) ProtoReflect

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

func (*ResetUserPasswordRequest) Reset

func (x *ResetUserPasswordRequest) Reset()

func (*ResetUserPasswordRequest) String

func (x *ResetUserPasswordRequest) String() string

func (*ResetUserPasswordRequest) Validate

func (m *ResetUserPasswordRequest) Validate() error

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

func (m *ResetUserPasswordRequest) ValidateAll() error

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

type ResetUserPasswordRequestMultiError

type ResetUserPasswordRequestMultiError []error

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

func (ResetUserPasswordRequestMultiError) AllErrors

func (m ResetUserPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetUserPasswordRequestMultiError) Error

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

type ResetUserPasswordRequestValidationError

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

ResetUserPasswordRequestValidationError is the validation error returned by ResetUserPasswordRequest.Validate if the designated constraints aren't met.

func (ResetUserPasswordRequestValidationError) Cause

Cause function returns cause value.

func (ResetUserPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetUserPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetUserPasswordRequestValidationError) Field

Field function returns field value.

func (ResetUserPasswordRequestValidationError) Key

Key function returns key value.

func (ResetUserPasswordRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedUserServer

type UnimplementedUserServer struct{}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) CreateUser

func (UnimplementedUserServer) DeleteUser

func (UnimplementedUserServer) GetCurrentUser

func (UnimplementedUserServer) GetUser

func (UnimplementedUserServer) ListUser

func (UnimplementedUserServer) OfflineUser

func (UnimplementedUserServer) ResetPassword

func (UnimplementedUserServer) UpdateCurrentUser

func (UnimplementedUserServer) UpdateCurrentUserSetting

func (UnimplementedUserServer) UpdateUser

func (UnimplementedUserServer) UpdateUserinfo

type UnsafeUserServer

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

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

type UpdateCurrentUserPasswordReply

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

func (*UpdateCurrentUserPasswordReply) Descriptor deprecated

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

Deprecated: Use UpdateCurrentUserPasswordReply.ProtoReflect.Descriptor instead.

func (*UpdateCurrentUserPasswordReply) ProtoMessage

func (*UpdateCurrentUserPasswordReply) ProtoMessage()

func (*UpdateCurrentUserPasswordReply) ProtoReflect

func (*UpdateCurrentUserPasswordReply) Reset

func (x *UpdateCurrentUserPasswordReply) Reset()

func (*UpdateCurrentUserPasswordReply) String

func (*UpdateCurrentUserPasswordReply) Validate

func (m *UpdateCurrentUserPasswordReply) Validate() error

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

func (m *UpdateCurrentUserPasswordReply) ValidateAll() error

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

type UpdateCurrentUserPasswordReplyMultiError

type UpdateCurrentUserPasswordReplyMultiError []error

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

func (UpdateCurrentUserPasswordReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateCurrentUserPasswordReplyMultiError) Error

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

type UpdateCurrentUserPasswordReplyValidationError

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

UpdateCurrentUserPasswordReplyValidationError is the validation error returned by UpdateCurrentUserPasswordReply.Validate if the designated constraints aren't met.

func (UpdateCurrentUserPasswordReplyValidationError) Cause

Cause function returns cause value.

func (UpdateCurrentUserPasswordReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateCurrentUserPasswordReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateCurrentUserPasswordReplyValidationError) Field

Field function returns field value.

func (UpdateCurrentUserPasswordReplyValidationError) Key

Key function returns key value.

func (UpdateCurrentUserPasswordReplyValidationError) Reason

Reason function returns reason value.

type UpdateCurrentUserPasswordRequest

type UpdateCurrentUserPasswordRequest struct {
	OldPassword string `protobuf:"bytes,1,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"`
	Password    string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCurrentUserPasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdateCurrentUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateCurrentUserPasswordRequest) GetOldPassword

func (x *UpdateCurrentUserPasswordRequest) GetOldPassword() string

func (*UpdateCurrentUserPasswordRequest) GetPassword

func (x *UpdateCurrentUserPasswordRequest) GetPassword() string

func (*UpdateCurrentUserPasswordRequest) ProtoMessage

func (*UpdateCurrentUserPasswordRequest) ProtoMessage()

func (*UpdateCurrentUserPasswordRequest) ProtoReflect

func (*UpdateCurrentUserPasswordRequest) Reset

func (*UpdateCurrentUserPasswordRequest) String

func (*UpdateCurrentUserPasswordRequest) Validate

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

func (m *UpdateCurrentUserPasswordRequest) ValidateAll() error

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

type UpdateCurrentUserPasswordRequestMultiError

type UpdateCurrentUserPasswordRequestMultiError []error

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

func (UpdateCurrentUserPasswordRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateCurrentUserPasswordRequestMultiError) Error

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

type UpdateCurrentUserPasswordRequestValidationError

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

UpdateCurrentUserPasswordRequestValidationError is the validation error returned by UpdateCurrentUserPasswordRequest.Validate if the designated constraints aren't met.

func (UpdateCurrentUserPasswordRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCurrentUserPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCurrentUserPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCurrentUserPasswordRequestValidationError) Field

Field function returns field value.

func (UpdateCurrentUserPasswordRequestValidationError) Key

Key function returns key value.

func (UpdateCurrentUserPasswordRequestValidationError) Reason

Reason function returns reason value.

type UpdateCurrentUserReply

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

func (*UpdateCurrentUserReply) Descriptor deprecated

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

Deprecated: Use UpdateCurrentUserReply.ProtoReflect.Descriptor instead.

func (*UpdateCurrentUserReply) ProtoMessage

func (*UpdateCurrentUserReply) ProtoMessage()

func (*UpdateCurrentUserReply) ProtoReflect

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

func (*UpdateCurrentUserReply) Reset

func (x *UpdateCurrentUserReply) Reset()

func (*UpdateCurrentUserReply) String

func (x *UpdateCurrentUserReply) String() string

func (*UpdateCurrentUserReply) Validate

func (m *UpdateCurrentUserReply) Validate() error

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

func (m *UpdateCurrentUserReply) ValidateAll() error

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

type UpdateCurrentUserReplyMultiError

type UpdateCurrentUserReplyMultiError []error

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

func (UpdateCurrentUserReplyMultiError) AllErrors

func (m UpdateCurrentUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCurrentUserReplyMultiError) Error

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

type UpdateCurrentUserReplyValidationError

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

UpdateCurrentUserReplyValidationError is the validation error returned by UpdateCurrentUserReply.Validate if the designated constraints aren't met.

func (UpdateCurrentUserReplyValidationError) Cause

Cause function returns cause value.

func (UpdateCurrentUserReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateCurrentUserReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateCurrentUserReplyValidationError) Field

Field function returns field value.

func (UpdateCurrentUserReplyValidationError) Key

Key function returns key value.

func (UpdateCurrentUserReplyValidationError) Reason

Reason function returns reason value.

type UpdateCurrentUserRequest

type UpdateCurrentUserRequest struct {
	Nickname *string           `protobuf:"bytes,1,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
	Avatar   *string           `protobuf:"bytes,2,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	Infos    map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateCurrentUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateCurrentUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateCurrentUserRequest) GetAvatar

func (x *UpdateCurrentUserRequest) GetAvatar() string

func (*UpdateCurrentUserRequest) GetInfos

func (x *UpdateCurrentUserRequest) GetInfos() map[string]string

func (*UpdateCurrentUserRequest) GetNickname

func (x *UpdateCurrentUserRequest) GetNickname() string

func (*UpdateCurrentUserRequest) ProtoMessage

func (*UpdateCurrentUserRequest) ProtoMessage()

func (*UpdateCurrentUserRequest) ProtoReflect

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

func (*UpdateCurrentUserRequest) Reset

func (x *UpdateCurrentUserRequest) Reset()

func (*UpdateCurrentUserRequest) String

func (x *UpdateCurrentUserRequest) String() string

func (*UpdateCurrentUserRequest) Validate

func (m *UpdateCurrentUserRequest) Validate() error

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

func (m *UpdateCurrentUserRequest) ValidateAll() error

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

type UpdateCurrentUserRequestMultiError

type UpdateCurrentUserRequestMultiError []error

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

func (UpdateCurrentUserRequestMultiError) AllErrors

func (m UpdateCurrentUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCurrentUserRequestMultiError) Error

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

type UpdateCurrentUserRequestValidationError

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

UpdateCurrentUserRequestValidationError is the validation error returned by UpdateCurrentUserRequest.Validate if the designated constraints aren't met.

func (UpdateCurrentUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCurrentUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCurrentUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCurrentUserRequestValidationError) Field

Field function returns field value.

func (UpdateCurrentUserRequestValidationError) Key

Key function returns key value.

func (UpdateCurrentUserRequestValidationError) Reason

Reason function returns reason value.

type UpdateCurrentUserSettingRequest

type UpdateCurrentUserSettingRequest struct {
	App     string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Setting string `protobuf:"bytes,2,opt,name=setting,proto3" json:"setting,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCurrentUserSettingRequest) Descriptor deprecated

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

Deprecated: Use UpdateCurrentUserSettingRequest.ProtoReflect.Descriptor instead.

func (*UpdateCurrentUserSettingRequest) GetApp

func (*UpdateCurrentUserSettingRequest) GetSetting

func (x *UpdateCurrentUserSettingRequest) GetSetting() string

func (*UpdateCurrentUserSettingRequest) ProtoMessage

func (*UpdateCurrentUserSettingRequest) ProtoMessage()

func (*UpdateCurrentUserSettingRequest) ProtoReflect

func (*UpdateCurrentUserSettingRequest) Reset

func (*UpdateCurrentUserSettingRequest) String

func (*UpdateCurrentUserSettingRequest) Validate

func (m *UpdateCurrentUserSettingRequest) Validate() error

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

func (m *UpdateCurrentUserSettingRequest) ValidateAll() error

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

type UpdateCurrentUserSettingRequestMultiError

type UpdateCurrentUserSettingRequestMultiError []error

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

func (UpdateCurrentUserSettingRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateCurrentUserSettingRequestMultiError) Error

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

type UpdateCurrentUserSettingRequestValidationError

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

UpdateCurrentUserSettingRequestValidationError is the validation error returned by UpdateCurrentUserSettingRequest.Validate if the designated constraints aren't met.

func (UpdateCurrentUserSettingRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCurrentUserSettingRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCurrentUserSettingRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCurrentUserSettingRequestValidationError) Field

Field function returns field value.

func (UpdateCurrentUserSettingRequestValidationError) Key

Key function returns key value.

func (UpdateCurrentUserSettingRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserReply

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

func (*UpdateUserReply) Descriptor deprecated

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

Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.

func (*UpdateUserReply) ProtoMessage

func (*UpdateUserReply) ProtoMessage()

func (*UpdateUserReply) ProtoReflect

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

func (*UpdateUserReply) Reset

func (x *UpdateUserReply) Reset()

func (*UpdateUserReply) String

func (x *UpdateUserReply) String() string

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 {
	Id       uint32            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Avatar   *string           `protobuf:"bytes,2,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	Nickname *string           `protobuf:"bytes,3,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
	Status   *bool             `protobuf:"varint,6,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Reason   *string           `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	Infos    map[string]string `` /* 151-byte string literal not displayed */
	// 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) GetId

func (x *UpdateUserRequest) GetId() uint32

func (*UpdateUserRequest) GetInfos

func (x *UpdateUserRequest) GetInfos() map[string]string

func (*UpdateUserRequest) GetNickname

func (x *UpdateUserRequest) GetNickname() string

func (*UpdateUserRequest) GetReason

func (x *UpdateUserRequest) GetReason() string

func (*UpdateUserRequest) GetStatus

func (x *UpdateUserRequest) GetStatus() bool

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 UpdateUserinfoReply

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

func (*UpdateUserinfoReply) Descriptor deprecated

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

Deprecated: Use UpdateUserinfoReply.ProtoReflect.Descriptor instead.

func (*UpdateUserinfoReply) ProtoMessage

func (*UpdateUserinfoReply) ProtoMessage()

func (*UpdateUserinfoReply) ProtoReflect

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

func (*UpdateUserinfoReply) Reset

func (x *UpdateUserinfoReply) Reset()

func (*UpdateUserinfoReply) String

func (x *UpdateUserinfoReply) String() string

func (*UpdateUserinfoReply) Validate

func (m *UpdateUserinfoReply) Validate() error

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

func (m *UpdateUserinfoReply) ValidateAll() error

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

type UpdateUserinfoReplyMultiError

type UpdateUserinfoReplyMultiError []error

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

func (UpdateUserinfoReplyMultiError) AllErrors

func (m UpdateUserinfoReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserinfoReplyMultiError) Error

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

type UpdateUserinfoReplyValidationError

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

UpdateUserinfoReplyValidationError is the validation error returned by UpdateUserinfoReply.Validate if the designated constraints aren't met.

func (UpdateUserinfoReplyValidationError) Cause

Cause function returns cause value.

func (UpdateUserinfoReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserinfoReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserinfoReplyValidationError) Field

Field function returns field value.

func (UpdateUserinfoReplyValidationError) Key

Key function returns key value.

func (UpdateUserinfoReplyValidationError) Reason

Reason function returns reason value.

type UpdateUserinfoRequest

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

func (*UpdateUserinfoRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserinfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserinfoRequest) GetId

func (x *UpdateUserinfoRequest) GetId() uint32

func (*UpdateUserinfoRequest) ProtoMessage

func (*UpdateUserinfoRequest) ProtoMessage()

func (*UpdateUserinfoRequest) ProtoReflect

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

func (*UpdateUserinfoRequest) Reset

func (x *UpdateUserinfoRequest) Reset()

func (*UpdateUserinfoRequest) String

func (x *UpdateUserinfoRequest) String() string

func (*UpdateUserinfoRequest) Validate

func (m *UpdateUserinfoRequest) Validate() error

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

func (m *UpdateUserinfoRequest) ValidateAll() error

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

type UpdateUserinfoRequestMultiError

type UpdateUserinfoRequestMultiError []error

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

func (UpdateUserinfoRequestMultiError) AllErrors

func (m UpdateUserinfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserinfoRequestMultiError) Error

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

type UpdateUserinfoRequestValidationError

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

UpdateUserinfoRequestValidationError is the validation error returned by UpdateUserinfoRequest.Validate if the designated constraints aren't met.

func (UpdateUserinfoRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserinfoRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserinfoRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserinfoRequestValidationError) Field

Field function returns field value.

func (UpdateUserinfoRequestValidationError) Key

Key function returns key value.

func (UpdateUserinfoRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserinfoRequest_Info

type UpdateUserinfoRequest_Info struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserinfoRequest_Info) Descriptor deprecated

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

Deprecated: Use UpdateUserinfoRequest_Info.ProtoReflect.Descriptor instead.

func (*UpdateUserinfoRequest_Info) GetField

func (x *UpdateUserinfoRequest_Info) GetField() string

func (*UpdateUserinfoRequest_Info) GetValue

func (x *UpdateUserinfoRequest_Info) GetValue() string

func (*UpdateUserinfoRequest_Info) ProtoMessage

func (*UpdateUserinfoRequest_Info) ProtoMessage()

func (*UpdateUserinfoRequest_Info) ProtoReflect

func (*UpdateUserinfoRequest_Info) Reset

func (x *UpdateUserinfoRequest_Info) Reset()

func (*UpdateUserinfoRequest_Info) String

func (x *UpdateUserinfoRequest_Info) String() string

func (*UpdateUserinfoRequest_Info) Validate

func (m *UpdateUserinfoRequest_Info) Validate() error

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

func (m *UpdateUserinfoRequest_Info) ValidateAll() error

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

type UpdateUserinfoRequest_InfoMultiError

type UpdateUserinfoRequest_InfoMultiError []error

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

func (UpdateUserinfoRequest_InfoMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateUserinfoRequest_InfoMultiError) Error

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

type UpdateUserinfoRequest_InfoValidationError

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

UpdateUserinfoRequest_InfoValidationError is the validation error returned by UpdateUserinfoRequest_Info.Validate if the designated constraints aren't met.

func (UpdateUserinfoRequest_InfoValidationError) Cause

Cause function returns cause value.

func (UpdateUserinfoRequest_InfoValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserinfoRequest_InfoValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserinfoRequest_InfoValidationError) Field

Field function returns field value.

func (UpdateUserinfoRequest_InfoValidationError) Key

Key function returns key value.

func (UpdateUserinfoRequest_InfoValidationError) Reason

Reason function returns reason value.

type UserClient

type UserClient interface {
	// GetCurrentUser 获取当前用户信息
	GetCurrentUser(ctx context.Context, in *GetCurrentUserRequest, opts ...grpc.CallOption) (*UserObject, error)
	// UpdateCurrentUserPassword 更新当前用户密码
	UpdateCurrentUserPassword(ctx context.Context, in *UpdateCurrentUserPasswordRequest, opts ...grpc.CallOption) (*UpdateCurrentUserPasswordReply, error)
	// UpdateCurrentUserSetting 更新当前用户设置
	UpdateCurrentUserSetting(ctx context.Context, in *UpdateCurrentUserSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// UpdateCurrentUserSetting 更新当前用户设置
	UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetUser 获取用户信息
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserObject, error)
	// ListUser 获取用户信息列表
	ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error)
	// CreateUser 创建用户信息
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error)
	// UpdateUser 更新用户信息
	ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// UpdateUser 更新用户信息
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error)
	// DeleteUser 删除用户信息
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserReply, error)
	// UpdateUserinfo 更新用户信息
	UpdateUserinfo(ctx context.Context, in *UpdateUserinfoRequest, opts ...grpc.CallOption) (*UpdateUserinfoReply, error)
	// OfflineUser 下线用户信息
	OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserHTTPClient

type UserHTTPClient interface {
	CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserReply, err error)
	DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *DeleteUserReply, err error)
	GetCurrentUser(ctx context.Context, req *GetCurrentUserRequest, opts ...http.CallOption) (rsp *UserObject, err error)
	GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *UserObject, err error)
	ListUser(ctx context.Context, req *ListUserRequest, opts ...http.CallOption) (rsp *ListUserReply, err error)
	OfflineUser(ctx context.Context, req *OfflineUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	ResetPassword(ctx context.Context, req *ResetPasswordRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateCurrentUser(ctx context.Context, req *UpdateCurrentUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateCurrentUserPassword(ctx context.Context, req *UpdateCurrentUserPasswordRequest, opts ...http.CallOption) (rsp *UpdateCurrentUserPasswordReply, err error)
	UpdateCurrentUserSetting(ctx context.Context, req *UpdateCurrentUserSettingRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UpdateUserReply, err error)
	UpdateUserinfo(ctx context.Context, req *UpdateUserinfoRequest, opts ...http.CallOption) (rsp *UpdateUserinfoReply, err error)
}

func NewUserHTTPClient

func NewUserHTTPClient(client *http.Client) UserHTTPClient

type UserHTTPClientImpl

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

func (*UserHTTPClientImpl) CreateUser

func (*UserHTTPClientImpl) DeleteUser

func (*UserHTTPClientImpl) GetCurrentUser

func (c *UserHTTPClientImpl) GetCurrentUser(ctx context.Context, in *GetCurrentUserRequest, opts ...http.CallOption) (*UserObject, error)

func (*UserHTTPClientImpl) GetUser

func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*UserObject, error)

func (*UserHTTPClientImpl) ListUser

func (*UserHTTPClientImpl) OfflineUser

func (c *UserHTTPClientImpl) OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*UserHTTPClientImpl) ResetPassword

func (c *UserHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*UserHTTPClientImpl) UpdateCurrentUser

func (c *UserHTTPClientImpl) UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*UserHTTPClientImpl) UpdateCurrentUserPassword

func (*UserHTTPClientImpl) UpdateCurrentUserSetting

func (c *UserHTTPClientImpl) UpdateCurrentUserSetting(ctx context.Context, in *UpdateCurrentUserSettingRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*UserHTTPClientImpl) UpdateUser

func (*UserHTTPClientImpl) UpdateUserinfo

type UserHTTPServer

type UserHTTPServer interface {
	// CreateUser CreateUser 创建用户信息
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
	// DeleteUser DeleteUser 删除用户信息
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
	// GetCurrentUser GetCurrentUser 获取当前用户信息
	GetCurrentUser(context.Context, *GetCurrentUserRequest) (*UserObject, error)
	// GetUser GetUser 获取用户信息
	GetUser(context.Context, *GetUserRequest) (*UserObject, error)
	// ListUser ListUser 获取用户信息列表
	ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
	// OfflineUser OfflineUser 下线用户信息
	OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
	// ResetPassword UpdateUser 更新用户信息
	ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error)
	// UpdateCurrentUser UpdateCurrentUserSetting 更新当前用户设置
	UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
	// UpdateCurrentUserPassword UpdateCurrentUserPassword 更新当前用户密码
	UpdateCurrentUserPassword(context.Context, *UpdateCurrentUserPasswordRequest) (*UpdateCurrentUserPasswordReply, error)
	// UpdateCurrentUserSetting UpdateCurrentUserSetting 更新当前用户设置
	UpdateCurrentUserSetting(context.Context, *UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)
	// UpdateUser UpdateUser 更新用户信息
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
	// UpdateUserinfo UpdateUserinfo 更新用户信息
	UpdateUserinfo(context.Context, *UpdateUserinfoRequest) (*UpdateUserinfoReply, error)
}

type UserObject

type UserObject struct {
	Id        uint32                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Nickname  string                 `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Username  string                 `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Avatar    string                 `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Email     string                 `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Phone     string                 `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"`
	Status    *bool                  `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
	LoggedAt  uint32                 `protobuf:"varint,8,opt,name=loggedAt,proto3" json:"loggedAt,omitempty"`
	CreatedAt uint32                 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt uint32                 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	Setting   string                 `protobuf:"bytes,11,opt,name=setting,proto3" json:"setting,omitempty"`
	Infos     map[string]string      `` /* 152-byte string literal not displayed */
	UserDepts []*UserObject_UserDept `protobuf:"bytes,13,rep,name=userDepts,proto3" json:"userDepts,omitempty"`
	// contains filtered or unexported fields
}

func (*UserObject) Descriptor deprecated

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

Deprecated: Use UserObject.ProtoReflect.Descriptor instead.

func (*UserObject) GetAvatar

func (x *UserObject) GetAvatar() string

func (*UserObject) GetCreatedAt

func (x *UserObject) GetCreatedAt() uint32

func (*UserObject) GetEmail

func (x *UserObject) GetEmail() string

func (*UserObject) GetId

func (x *UserObject) GetId() uint32

func (*UserObject) GetInfos

func (x *UserObject) GetInfos() map[string]string

func (*UserObject) GetLoggedAt

func (x *UserObject) GetLoggedAt() uint32

func (*UserObject) GetNickname

func (x *UserObject) GetNickname() string

func (*UserObject) GetPhone

func (x *UserObject) GetPhone() string

func (*UserObject) GetSetting

func (x *UserObject) GetSetting() string

func (*UserObject) GetStatus

func (x *UserObject) GetStatus() bool

func (*UserObject) GetUpdatedAt

func (x *UserObject) GetUpdatedAt() uint32

func (*UserObject) GetUserDepts

func (x *UserObject) GetUserDepts() []*UserObject_UserDept

func (*UserObject) GetUsername

func (x *UserObject) GetUsername() string

func (*UserObject) ProtoMessage

func (*UserObject) ProtoMessage()

func (*UserObject) ProtoReflect

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

func (*UserObject) Reset

func (x *UserObject) Reset()

func (*UserObject) String

func (x *UserObject) String() string

func (*UserObject) Validate

func (m *UserObject) Validate() error

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

func (m *UserObject) ValidateAll() error

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

type UserObjectMultiError

type UserObjectMultiError []error

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

func (UserObjectMultiError) AllErrors

func (m UserObjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserObjectMultiError) Error

func (m UserObjectMultiError) Error() string

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

type UserObjectValidationError

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

UserObjectValidationError is the validation error returned by UserObject.Validate if the designated constraints aren't met.

func (UserObjectValidationError) Cause

func (e UserObjectValidationError) Cause() error

Cause function returns cause value.

func (UserObjectValidationError) Error

Error satisfies the builtin error interface

func (UserObjectValidationError) ErrorName

func (e UserObjectValidationError) ErrorName() string

ErrorName returns error name.

func (UserObjectValidationError) Field

Field function returns field value.

func (UserObjectValidationError) Key

Key function returns key value.

func (UserObjectValidationError) Reason

func (e UserObjectValidationError) Reason() string

Reason function returns reason value.

type UserObject_Dept

type UserObject_Dept struct {
	Id   uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Main bool   `protobuf:"varint,4,opt,name=main,proto3" json:"main,omitempty"`
	// contains filtered or unexported fields
}

func (*UserObject_Dept) Descriptor deprecated

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

Deprecated: Use UserObject_Dept.ProtoReflect.Descriptor instead.

func (*UserObject_Dept) GetId

func (x *UserObject_Dept) GetId() uint32
func (x *UserObject_Dept) GetLogo() string

func (*UserObject_Dept) GetMain

func (x *UserObject_Dept) GetMain() bool

func (*UserObject_Dept) GetName

func (x *UserObject_Dept) GetName() string

func (*UserObject_Dept) ProtoMessage

func (*UserObject_Dept) ProtoMessage()

func (*UserObject_Dept) ProtoReflect

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

func (*UserObject_Dept) Reset

func (x *UserObject_Dept) Reset()

func (*UserObject_Dept) String

func (x *UserObject_Dept) String() string

func (*UserObject_Dept) Validate

func (m *UserObject_Dept) Validate() error

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

func (m *UserObject_Dept) ValidateAll() error

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

type UserObject_DeptMultiError

type UserObject_DeptMultiError []error

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

func (UserObject_DeptMultiError) AllErrors

func (m UserObject_DeptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserObject_DeptMultiError) Error

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

type UserObject_DeptValidationError

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

UserObject_DeptValidationError is the validation error returned by UserObject_Dept.Validate if the designated constraints aren't met.

func (UserObject_DeptValidationError) Cause

Cause function returns cause value.

func (UserObject_DeptValidationError) Error

Error satisfies the builtin error interface

func (UserObject_DeptValidationError) ErrorName

func (e UserObject_DeptValidationError) ErrorName() string

ErrorName returns error name.

func (UserObject_DeptValidationError) Field

Field function returns field value.

func (UserObject_DeptValidationError) Key

Key function returns key value.

func (UserObject_DeptValidationError) Reason

Reason function returns reason value.

type UserObject_Job

type UserObject_Job struct {
	Id   uint32 `protobuf:"varint,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 (*UserObject_Job) Descriptor deprecated

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

Deprecated: Use UserObject_Job.ProtoReflect.Descriptor instead.

func (*UserObject_Job) GetId

func (x *UserObject_Job) GetId() uint32

func (*UserObject_Job) GetName

func (x *UserObject_Job) GetName() string

func (*UserObject_Job) ProtoMessage

func (*UserObject_Job) ProtoMessage()

func (*UserObject_Job) ProtoReflect

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

func (*UserObject_Job) Reset

func (x *UserObject_Job) Reset()

func (*UserObject_Job) String

func (x *UserObject_Job) String() string

func (*UserObject_Job) Validate

func (m *UserObject_Job) Validate() error

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

func (m *UserObject_Job) ValidateAll() error

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

type UserObject_JobMultiError

type UserObject_JobMultiError []error

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

func (UserObject_JobMultiError) AllErrors

func (m UserObject_JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserObject_JobMultiError) Error

func (m UserObject_JobMultiError) Error() string

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

type UserObject_JobValidationError

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

UserObject_JobValidationError is the validation error returned by UserObject_Job.Validate if the designated constraints aren't met.

func (UserObject_JobValidationError) Cause

Cause function returns cause value.

func (UserObject_JobValidationError) Error

Error satisfies the builtin error interface

func (UserObject_JobValidationError) ErrorName

func (e UserObject_JobValidationError) ErrorName() string

ErrorName returns error name.

func (UserObject_JobValidationError) Field

Field function returns field value.

func (UserObject_JobValidationError) Key

Key function returns key value.

func (UserObject_JobValidationError) Reason

Reason function returns reason value.

type UserObject_UserDept

type UserObject_UserDept struct {
	DeptId uint32           `protobuf:"varint,1,opt,name=deptId,proto3" json:"deptId,omitempty"`
	JobId  uint32           `protobuf:"varint,2,opt,name=jobId,proto3" json:"jobId,omitempty"`
	Dept   *UserObject_Dept `protobuf:"bytes,3,opt,name=dept,proto3" json:"dept,omitempty"`
	Job    *UserObject_Job  `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
	// contains filtered or unexported fields
}

func (*UserObject_UserDept) Descriptor deprecated

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

Deprecated: Use UserObject_UserDept.ProtoReflect.Descriptor instead.

func (*UserObject_UserDept) GetDept

func (x *UserObject_UserDept) GetDept() *UserObject_Dept

func (*UserObject_UserDept) GetDeptId

func (x *UserObject_UserDept) GetDeptId() uint32

func (*UserObject_UserDept) GetJob

func (x *UserObject_UserDept) GetJob() *UserObject_Job

func (*UserObject_UserDept) GetJobId

func (x *UserObject_UserDept) GetJobId() uint32

func (*UserObject_UserDept) ProtoMessage

func (*UserObject_UserDept) ProtoMessage()

func (*UserObject_UserDept) ProtoReflect

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

func (*UserObject_UserDept) Reset

func (x *UserObject_UserDept) Reset()

func (*UserObject_UserDept) String

func (x *UserObject_UserDept) String() string

func (*UserObject_UserDept) Validate

func (m *UserObject_UserDept) Validate() error

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

func (m *UserObject_UserDept) ValidateAll() error

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

type UserObject_UserDeptMultiError

type UserObject_UserDeptMultiError []error

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

func (UserObject_UserDeptMultiError) AllErrors

func (m UserObject_UserDeptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserObject_UserDeptMultiError) Error

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

type UserObject_UserDeptValidationError

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

UserObject_UserDeptValidationError is the validation error returned by UserObject_UserDept.Validate if the designated constraints aren't met.

func (UserObject_UserDeptValidationError) Cause

Cause function returns cause value.

func (UserObject_UserDeptValidationError) Error

Error satisfies the builtin error interface

func (UserObject_UserDeptValidationError) ErrorName

ErrorName returns error name.

func (UserObject_UserDeptValidationError) Field

Field function returns field value.

func (UserObject_UserDeptValidationError) Key

Key function returns key value.

func (UserObject_UserDeptValidationError) Reason

Reason function returns reason value.

type UserServer

type UserServer interface {
	// GetCurrentUser 获取当前用户信息
	GetCurrentUser(context.Context, *GetCurrentUserRequest) (*UserObject, error)
	// UpdateCurrentUserPassword 更新当前用户密码
	UpdateCurrentUserPassword(context.Context, *UpdateCurrentUserPasswordRequest) (*UpdateCurrentUserPasswordReply, error)
	// UpdateCurrentUserSetting 更新当前用户设置
	UpdateCurrentUserSetting(context.Context, *UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)
	// UpdateCurrentUserSetting 更新当前用户设置
	UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
	// GetUser 获取用户信息
	GetUser(context.Context, *GetUserRequest) (*UserObject, error)
	// ListUser 获取用户信息列表
	ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
	// CreateUser 创建用户信息
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
	// UpdateUser 更新用户信息
	ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error)
	// UpdateUser 更新用户信息
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
	// DeleteUser 删除用户信息
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
	// UpdateUserinfo 更新用户信息
	UpdateUserinfo(context.Context, *UpdateUserinfoRequest) (*UpdateUserinfoReply, error)
	// OfflineUser 下线用户信息
	OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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