Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorUnspecified(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func IsUnspecified(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterDeptServiceServer(s grpc.ServiceRegistrar, srv DeptServiceServer)
- func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)
- func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)
- func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type Authority
- type CreateDeptRequest
- func (*CreateDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeptRequest) GetDept() *Dept
- func (x *CreateDeptRequest) GetOperatorId() uint32
- func (*CreateDeptRequest) ProtoMessage()
- func (x *CreateDeptRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeptRequest) Reset()
- func (x *CreateDeptRequest) String() string
- func (m *CreateDeptRequest) Validate() error
- func (m *CreateDeptRequest) ValidateAll() error
- type CreateDeptRequestMultiError
- type CreateDeptRequestValidationError
- func (e CreateDeptRequestValidationError) Cause() error
- func (e CreateDeptRequestValidationError) Error() string
- func (e CreateDeptRequestValidationError) ErrorName() string
- func (e CreateDeptRequestValidationError) Field() string
- func (e CreateDeptRequestValidationError) Key() bool
- func (e CreateDeptRequestValidationError) Reason() string
- type CreateDeptResponse
- func (*CreateDeptResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateDeptResponse) ProtoMessage()
- func (x *CreateDeptResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDeptResponse) Reset()
- func (x *CreateDeptResponse) String() string
- func (m *CreateDeptResponse) Validate() error
- func (m *CreateDeptResponse) ValidateAll() error
- type CreateDeptResponseMultiError
- type CreateDeptResponseValidationError
- func (e CreateDeptResponseValidationError) Cause() error
- func (e CreateDeptResponseValidationError) Error() string
- func (e CreateDeptResponseValidationError) ErrorName() string
- func (e CreateDeptResponseValidationError) Field() string
- func (e CreateDeptResponseValidationError) Key() bool
- func (e CreateDeptResponseValidationError) Reason() string
- type CreateMenuRequest
- func (*CreateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuRequest) GetMenu() *Menu
- func (x *CreateMenuRequest) GetOperatorId() uint32
- func (*CreateMenuRequest) ProtoMessage()
- func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMenuRequest) Reset()
- func (x *CreateMenuRequest) String() string
- func (m *CreateMenuRequest) Validate() error
- func (m *CreateMenuRequest) ValidateAll() error
- type CreateMenuRequestMultiError
- type CreateMenuRequestValidationError
- func (e CreateMenuRequestValidationError) Cause() error
- func (e CreateMenuRequestValidationError) Error() string
- func (e CreateMenuRequestValidationError) ErrorName() string
- func (e CreateMenuRequestValidationError) Field() string
- func (e CreateMenuRequestValidationError) Key() bool
- func (e CreateMenuRequestValidationError) Reason() string
- type CreateMenuResponse
- func (*CreateMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateMenuResponse) ProtoMessage()
- func (x *CreateMenuResponse) ProtoReflect() protoreflect.Message
- func (x *CreateMenuResponse) Reset()
- func (x *CreateMenuResponse) String() string
- func (m *CreateMenuResponse) Validate() error
- func (m *CreateMenuResponse) ValidateAll() error
- type CreateMenuResponseMultiError
- type CreateMenuResponseValidationError
- func (e CreateMenuResponseValidationError) Cause() error
- func (e CreateMenuResponseValidationError) Error() string
- func (e CreateMenuResponseValidationError) ErrorName() string
- func (e CreateMenuResponseValidationError) Field() string
- func (e CreateMenuResponseValidationError) Key() bool
- func (e CreateMenuResponseValidationError) Reason() string
- type CreatePostRequest
- func (*CreatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostRequest) GetOperatorId() uint32
- func (x *CreatePostRequest) GetPost() *Post
- func (*CreatePostRequest) ProtoMessage()
- func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePostRequest) Reset()
- func (x *CreatePostRequest) String() string
- func (m *CreatePostRequest) Validate() error
- func (m *CreatePostRequest) ValidateAll() error
- type CreatePostRequestMultiError
- type CreatePostRequestValidationError
- func (e CreatePostRequestValidationError) Cause() error
- func (e CreatePostRequestValidationError) Error() string
- func (e CreatePostRequestValidationError) ErrorName() string
- func (e CreatePostRequestValidationError) Field() string
- func (e CreatePostRequestValidationError) Key() bool
- func (e CreatePostRequestValidationError) Reason() string
- type CreatePostResponse
- func (*CreatePostResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreatePostResponse) ProtoMessage()
- func (x *CreatePostResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePostResponse) Reset()
- func (x *CreatePostResponse) String() string
- func (m *CreatePostResponse) Validate() error
- func (m *CreatePostResponse) ValidateAll() error
- type CreatePostResponseMultiError
- type CreatePostResponseValidationError
- func (e CreatePostResponseValidationError) Cause() error
- func (e CreatePostResponseValidationError) Error() string
- func (e CreatePostResponseValidationError) ErrorName() string
- func (e CreatePostResponseValidationError) Field() string
- func (e CreatePostResponseValidationError) Key() bool
- func (e CreatePostResponseValidationError) Reason() string
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetOperatorId() uint32
- func (x *CreateRoleRequest) GetRole() *Role
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- func (m *CreateRoleRequest) Validate() error
- func (m *CreateRoleRequest) ValidateAll() error
- type CreateRoleRequestMultiError
- type CreateRoleRequestValidationError
- func (e CreateRoleRequestValidationError) Cause() error
- func (e CreateRoleRequestValidationError) Error() string
- func (e CreateRoleRequestValidationError) ErrorName() string
- func (e CreateRoleRequestValidationError) Field() string
- func (e CreateRoleRequestValidationError) Key() bool
- func (e CreateRoleRequestValidationError) Reason() string
- type CreateRoleResponse
- func (*CreateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateRoleResponse) ProtoMessage()
- func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRoleResponse) Reset()
- func (x *CreateRoleResponse) String() string
- func (m *CreateRoleResponse) Validate() error
- func (m *CreateRoleResponse) ValidateAll() error
- type CreateRoleResponseMultiError
- type CreateRoleResponseValidationError
- func (e CreateRoleResponseValidationError) Cause() error
- func (e CreateRoleResponseValidationError) Error() string
- func (e CreateRoleResponseValidationError) ErrorName() string
- func (e CreateRoleResponseValidationError) Field() string
- func (e CreateRoleResponseValidationError) Key() bool
- func (e CreateRoleResponseValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetOperatorId() uint32
- func (x *CreateUserRequest) GetUser() *User
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- func (m *CreateUserResponse) Validate() error
- func (m *CreateUserResponse) ValidateAll() error
- type CreateUserResponseMultiError
- type CreateUserResponseValidationError
- func (e CreateUserResponseValidationError) Cause() error
- func (e CreateUserResponseValidationError) Error() string
- func (e CreateUserResponseValidationError) ErrorName() string
- func (e CreateUserResponseValidationError) Field() string
- func (e CreateUserResponseValidationError) Key() bool
- func (e CreateUserResponseValidationError) Reason() string
- type DeleteDeptRequest
- func (*DeleteDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeptRequest) GetId() uint32
- func (x *DeleteDeptRequest) GetOperatorId() uint32
- func (*DeleteDeptRequest) ProtoMessage()
- func (x *DeleteDeptRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeptRequest) Reset()
- func (x *DeleteDeptRequest) String() string
- func (m *DeleteDeptRequest) Validate() error
- func (m *DeleteDeptRequest) ValidateAll() error
- type DeleteDeptRequestMultiError
- type DeleteDeptRequestValidationError
- func (e DeleteDeptRequestValidationError) Cause() error
- func (e DeleteDeptRequestValidationError) Error() string
- func (e DeleteDeptRequestValidationError) ErrorName() string
- func (e DeleteDeptRequestValidationError) Field() string
- func (e DeleteDeptRequestValidationError) Key() bool
- func (e DeleteDeptRequestValidationError) Reason() string
- type DeleteDeptResponse
- func (*DeleteDeptResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteDeptResponse) ProtoMessage()
- func (x *DeleteDeptResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDeptResponse) Reset()
- func (x *DeleteDeptResponse) String() string
- func (m *DeleteDeptResponse) Validate() error
- func (m *DeleteDeptResponse) ValidateAll() error
- type DeleteDeptResponseMultiError
- type DeleteDeptResponseValidationError
- func (e DeleteDeptResponseValidationError) Cause() error
- func (e DeleteDeptResponseValidationError) Error() string
- func (e DeleteDeptResponseValidationError) ErrorName() string
- func (e DeleteDeptResponseValidationError) Field() string
- func (e DeleteDeptResponseValidationError) Key() bool
- func (e DeleteDeptResponseValidationError) Reason() string
- type DeleteMenuRequest
- func (*DeleteMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMenuRequest) GetId() uint32
- func (x *DeleteMenuRequest) GetOperatorId() uint32
- func (*DeleteMenuRequest) ProtoMessage()
- func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuRequest) Reset()
- func (x *DeleteMenuRequest) String() string
- func (m *DeleteMenuRequest) Validate() error
- func (m *DeleteMenuRequest) ValidateAll() error
- type DeleteMenuRequestMultiError
- type DeleteMenuRequestValidationError
- func (e DeleteMenuRequestValidationError) Cause() error
- func (e DeleteMenuRequestValidationError) Error() string
- func (e DeleteMenuRequestValidationError) ErrorName() string
- func (e DeleteMenuRequestValidationError) Field() string
- func (e DeleteMenuRequestValidationError) Key() bool
- func (e DeleteMenuRequestValidationError) Reason() string
- type DeleteMenuResponse
- func (*DeleteMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteMenuResponse) ProtoMessage()
- func (x *DeleteMenuResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuResponse) Reset()
- func (x *DeleteMenuResponse) String() string
- func (m *DeleteMenuResponse) Validate() error
- func (m *DeleteMenuResponse) ValidateAll() error
- type DeleteMenuResponseMultiError
- type DeleteMenuResponseValidationError
- func (e DeleteMenuResponseValidationError) Cause() error
- func (e DeleteMenuResponseValidationError) Error() string
- func (e DeleteMenuResponseValidationError) ErrorName() string
- func (e DeleteMenuResponseValidationError) Field() string
- func (e DeleteMenuResponseValidationError) Key() bool
- func (e DeleteMenuResponseValidationError) Reason() string
- type DeletePostRequest
- func (*DeletePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostRequest) GetId() uint32
- func (x *DeletePostRequest) GetOperatorId() uint32
- func (*DeletePostRequest) ProtoMessage()
- func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePostRequest) Reset()
- func (x *DeletePostRequest) String() string
- func (m *DeletePostRequest) Validate() error
- func (m *DeletePostRequest) ValidateAll() error
- type DeletePostRequestMultiError
- type DeletePostRequestValidationError
- func (e DeletePostRequestValidationError) Cause() error
- func (e DeletePostRequestValidationError) Error() string
- func (e DeletePostRequestValidationError) ErrorName() string
- func (e DeletePostRequestValidationError) Field() string
- func (e DeletePostRequestValidationError) Key() bool
- func (e DeletePostRequestValidationError) Reason() string
- type DeletePostResponse
- func (*DeletePostResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeletePostResponse) ProtoMessage()
- func (x *DeletePostResponse) ProtoReflect() protoreflect.Message
- func (x *DeletePostResponse) Reset()
- func (x *DeletePostResponse) String() string
- func (m *DeletePostResponse) Validate() error
- func (m *DeletePostResponse) ValidateAll() error
- type DeletePostResponseMultiError
- type DeletePostResponseValidationError
- func (e DeletePostResponseValidationError) Cause() error
- func (e DeletePostResponseValidationError) Error() string
- func (e DeletePostResponseValidationError) ErrorName() string
- func (e DeletePostResponseValidationError) Field() string
- func (e DeletePostResponseValidationError) Key() bool
- func (e DeletePostResponseValidationError) Reason() string
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetId() uint32
- func (x *DeleteRoleRequest) GetOperatorId() uint32
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- func (m *DeleteRoleRequest) Validate() error
- func (m *DeleteRoleRequest) ValidateAll() error
- type DeleteRoleRequestMultiError
- type DeleteRoleRequestValidationError
- func (e DeleteRoleRequestValidationError) Cause() error
- func (e DeleteRoleRequestValidationError) Error() string
- func (e DeleteRoleRequestValidationError) ErrorName() string
- func (e DeleteRoleRequestValidationError) Field() string
- func (e DeleteRoleRequestValidationError) Key() bool
- func (e DeleteRoleRequestValidationError) Reason() string
- type DeleteRoleResponse
- func (*DeleteRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteRoleResponse) ProtoMessage()
- func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleResponse) Reset()
- func (x *DeleteRoleResponse) String() string
- func (m *DeleteRoleResponse) Validate() error
- func (m *DeleteRoleResponse) ValidateAll() error
- type DeleteRoleResponseMultiError
- type DeleteRoleResponseValidationError
- func (e DeleteRoleResponseValidationError) Cause() error
- func (e DeleteRoleResponseValidationError) Error() string
- func (e DeleteRoleResponseValidationError) ErrorName() string
- func (e DeleteRoleResponseValidationError) Field() string
- func (e DeleteRoleResponseValidationError) Key() bool
- func (e DeleteRoleResponseValidationError) Reason() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetId() uint32
- func (x *DeleteUserRequest) GetOperatorId() uint32
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) Validate() error
- func (m *DeleteUserRequest) ValidateAll() error
- type DeleteUserRequestMultiError
- type DeleteUserRequestValidationError
- func (e DeleteUserRequestValidationError) Cause() error
- func (e DeleteUserRequestValidationError) Error() string
- func (e DeleteUserRequestValidationError) ErrorName() string
- func (e DeleteUserRequestValidationError) Field() string
- func (e DeleteUserRequestValidationError) Key() bool
- func (e DeleteUserRequestValidationError) Reason() string
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- func (m *DeleteUserResponse) Validate() error
- func (m *DeleteUserResponse) ValidateAll() error
- type DeleteUserResponseMultiError
- type DeleteUserResponseValidationError
- func (e DeleteUserResponseValidationError) Cause() error
- func (e DeleteUserResponseValidationError) Error() string
- func (e DeleteUserResponseValidationError) ErrorName() string
- func (e DeleteUserResponseValidationError) Field() string
- func (e DeleteUserResponseValidationError) Key() bool
- func (e DeleteUserResponseValidationError) Reason() string
- type Dept
- func (*Dept) Descriptor() ([]byte, []int)deprecated
- func (x *Dept) GetCreatedAt() string
- func (x *Dept) GetId() uint32
- func (x *Dept) GetLeaderId() uint32
- func (x *Dept) GetName() string
- func (x *Dept) GetParentId() uint32
- func (x *Dept) GetRemark() string
- func (x *Dept) GetSort() int32
- func (x *Dept) GetState() int32
- func (x *Dept) GetUpdatedAt() string
- func (*Dept) ProtoMessage()
- func (x *Dept) ProtoReflect() protoreflect.Message
- func (x *Dept) Reset()
- func (x *Dept) String() string
- func (m *Dept) Validate() error
- func (m *Dept) ValidateAll() error
- type DeptMultiError
- type DeptServiceClient
- type DeptServiceServer
- type DeptValidationError
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetDeptRequest
- func (*GetDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeptRequest) GetId() uint32
- func (*GetDeptRequest) ProtoMessage()
- func (x *GetDeptRequest) ProtoReflect() protoreflect.Message
- func (x *GetDeptRequest) Reset()
- func (x *GetDeptRequest) String() string
- func (m *GetDeptRequest) Validate() error
- func (m *GetDeptRequest) ValidateAll() error
- type GetDeptRequestMultiError
- type GetDeptRequestValidationError
- func (e GetDeptRequestValidationError) Cause() error
- func (e GetDeptRequestValidationError) Error() string
- func (e GetDeptRequestValidationError) ErrorName() string
- func (e GetDeptRequestValidationError) Field() string
- func (e GetDeptRequestValidationError) Key() bool
- func (e GetDeptRequestValidationError) Reason() string
- type GetDeptResponse
- func (*GetDeptResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetDeptResponse) ProtoMessage()
- func (x *GetDeptResponse) ProtoReflect() protoreflect.Message
- func (x *GetDeptResponse) Reset()
- func (x *GetDeptResponse) String() string
- func (m *GetDeptResponse) Validate() error
- func (m *GetDeptResponse) ValidateAll() error
- type GetDeptResponseMultiError
- type GetDeptResponseValidationError
- func (e GetDeptResponseValidationError) Cause() error
- func (e GetDeptResponseValidationError) Error() string
- func (e GetDeptResponseValidationError) ErrorName() string
- func (e GetDeptResponseValidationError) Field() string
- func (e GetDeptResponseValidationError) Key() bool
- func (e GetDeptResponseValidationError) Reason() string
- type GetMenuRequest
- func (*GetMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMenuRequest) GetId() uint32
- func (*GetMenuRequest) ProtoMessage()
- func (x *GetMenuRequest) ProtoReflect() protoreflect.Message
- func (x *GetMenuRequest) Reset()
- func (x *GetMenuRequest) String() string
- func (m *GetMenuRequest) Validate() error
- func (m *GetMenuRequest) ValidateAll() error
- type GetMenuRequestMultiError
- type GetMenuRequestValidationError
- func (e GetMenuRequestValidationError) Cause() error
- func (e GetMenuRequestValidationError) Error() string
- func (e GetMenuRequestValidationError) ErrorName() string
- func (e GetMenuRequestValidationError) Field() string
- func (e GetMenuRequestValidationError) Key() bool
- func (e GetMenuRequestValidationError) Reason() string
- type GetMenuResponse
- func (*GetMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetMenuResponse) ProtoMessage()
- func (x *GetMenuResponse) ProtoReflect() protoreflect.Message
- func (x *GetMenuResponse) Reset()
- func (x *GetMenuResponse) String() string
- func (m *GetMenuResponse) Validate() error
- func (m *GetMenuResponse) ValidateAll() error
- type GetMenuResponseMultiError
- type GetMenuResponseValidationError
- func (e GetMenuResponseValidationError) Cause() error
- func (e GetMenuResponseValidationError) Error() string
- func (e GetMenuResponseValidationError) ErrorName() string
- func (e GetMenuResponseValidationError) Field() string
- func (e GetMenuResponseValidationError) Key() bool
- func (e GetMenuResponseValidationError) Reason() string
- type GetPostRequest
- func (*GetPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostRequest) GetId() uint32
- func (*GetPostRequest) ProtoMessage()
- func (x *GetPostRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostRequest) Reset()
- func (x *GetPostRequest) String() string
- func (m *GetPostRequest) Validate() error
- func (m *GetPostRequest) ValidateAll() error
- type GetPostRequestMultiError
- type GetPostRequestValidationError
- func (e GetPostRequestValidationError) Cause() error
- func (e GetPostRequestValidationError) Error() string
- func (e GetPostRequestValidationError) ErrorName() string
- func (e GetPostRequestValidationError) Field() string
- func (e GetPostRequestValidationError) Key() bool
- func (e GetPostRequestValidationError) Reason() string
- type GetPostResponse
- func (*GetPostResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetPostResponse) ProtoMessage()
- func (x *GetPostResponse) ProtoReflect() protoreflect.Message
- func (x *GetPostResponse) Reset()
- func (x *GetPostResponse) String() string
- func (m *GetPostResponse) Validate() error
- func (m *GetPostResponse) ValidateAll() error
- type GetPostResponseMultiError
- type GetPostResponseValidationError
- func (e GetPostResponseValidationError) Cause() error
- func (e GetPostResponseValidationError) Error() string
- func (e GetPostResponseValidationError) ErrorName() string
- func (e GetPostResponseValidationError) Field() string
- func (e GetPostResponseValidationError) Key() bool
- func (e GetPostResponseValidationError) Reason() string
- type GetRoleRequest
- func (*GetRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleRequest) GetId() uint32
- func (*GetRoleRequest) ProtoMessage()
- func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleRequest) Reset()
- func (x *GetRoleRequest) String() string
- func (m *GetRoleRequest) Validate() error
- func (m *GetRoleRequest) ValidateAll() error
- type GetRoleRequestMultiError
- type GetRoleRequestValidationError
- func (e GetRoleRequestValidationError) Cause() error
- func (e GetRoleRequestValidationError) Error() string
- func (e GetRoleRequestValidationError) ErrorName() string
- func (e GetRoleRequestValidationError) Field() string
- func (e GetRoleRequestValidationError) Key() bool
- func (e GetRoleRequestValidationError) Reason() string
- type GetRoleResponse
- func (*GetRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetRoleResponse) ProtoMessage()
- func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
- func (x *GetRoleResponse) Reset()
- func (x *GetRoleResponse) String() string
- func (m *GetRoleResponse) Validate() error
- func (m *GetRoleResponse) ValidateAll() error
- type GetRoleResponseMultiError
- type GetRoleResponseValidationError
- func (e GetRoleResponseValidationError) Cause() error
- func (e GetRoleResponseValidationError) Error() string
- func (e GetRoleResponseValidationError) ErrorName() string
- func (e GetRoleResponseValidationError) Field() string
- func (e GetRoleResponseValidationError) Key() bool
- func (e GetRoleResponseValidationError) Reason() string
- type GetUserByNameRequest
- func (*GetUserByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByNameRequest) GetName() string
- func (*GetUserByNameRequest) ProtoMessage()
- func (x *GetUserByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserByNameRequest) Reset()
- func (x *GetUserByNameRequest) String() string
- func (m *GetUserByNameRequest) Validate() error
- func (m *GetUserByNameRequest) ValidateAll() error
- type GetUserByNameRequestMultiError
- type GetUserByNameRequestValidationError
- func (e GetUserByNameRequestValidationError) Cause() error
- func (e GetUserByNameRequestValidationError) Error() string
- func (e GetUserByNameRequestValidationError) ErrorName() string
- func (e GetUserByNameRequestValidationError) Field() string
- func (e GetUserByNameRequestValidationError) Key() bool
- func (e GetUserByNameRequestValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetId() uint32
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- func (m *GetUserResponse) Validate() error
- func (m *GetUserResponse) ValidateAll() error
- type GetUserResponseMultiError
- type GetUserResponseValidationError
- func (e GetUserResponseValidationError) Cause() error
- func (e GetUserResponseValidationError) Error() string
- func (e GetUserResponseValidationError) ErrorName() string
- func (e GetUserResponseValidationError) Field() string
- func (e GetUserResponseValidationError) Key() bool
- func (e GetUserResponseValidationError) Reason() string
- type IsAuthorizedRequest
- func (*IsAuthorizedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsAuthorizedRequest) GetAction() string
- func (x *IsAuthorizedRequest) GetProject() string
- func (x *IsAuthorizedRequest) GetResource() string
- func (x *IsAuthorizedRequest) GetSubject() string
- func (*IsAuthorizedRequest) ProtoMessage()
- func (x *IsAuthorizedRequest) ProtoReflect() protoreflect.Message
- func (x *IsAuthorizedRequest) Reset()
- func (x *IsAuthorizedRequest) String() string
- func (m *IsAuthorizedRequest) Validate() error
- func (m *IsAuthorizedRequest) ValidateAll() error
- type IsAuthorizedRequestMultiError
- type IsAuthorizedRequestValidationError
- func (e IsAuthorizedRequestValidationError) Cause() error
- func (e IsAuthorizedRequestValidationError) Error() string
- func (e IsAuthorizedRequestValidationError) ErrorName() string
- func (e IsAuthorizedRequestValidationError) Field() string
- func (e IsAuthorizedRequestValidationError) Key() bool
- func (e IsAuthorizedRequestValidationError) Reason() string
- type IsAuthorizedResponse
- func (*IsAuthorizedResponse) Descriptor() ([]byte, []int)deprecated
- func (*IsAuthorizedResponse) ProtoMessage()
- func (x *IsAuthorizedResponse) ProtoReflect() protoreflect.Message
- func (x *IsAuthorizedResponse) Reset()
- func (x *IsAuthorizedResponse) String() string
- func (m *IsAuthorizedResponse) Validate() error
- func (m *IsAuthorizedResponse) ValidateAll() error
- type IsAuthorizedResponseMultiError
- type IsAuthorizedResponseValidationError
- func (e IsAuthorizedResponseValidationError) Cause() error
- func (e IsAuthorizedResponseValidationError) Error() string
- func (e IsAuthorizedResponseValidationError) ErrorName() string
- func (e IsAuthorizedResponseValidationError) Field() string
- func (e IsAuthorizedResponseValidationError) Key() bool
- func (e IsAuthorizedResponseValidationError) Reason() string
- type ListDeptRequest
- func (*ListDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListDeptRequest) ProtoMessage()
- func (x *ListDeptRequest) ProtoReflect() protoreflect.Message
- func (x *ListDeptRequest) Reset()
- func (x *ListDeptRequest) String() string
- func (m *ListDeptRequest) Validate() error
- func (m *ListDeptRequest) ValidateAll() error
- type ListDeptRequestMultiError
- type ListDeptRequestValidationError
- func (e ListDeptRequestValidationError) Cause() error
- func (e ListDeptRequestValidationError) Error() string
- func (e ListDeptRequestValidationError) ErrorName() string
- func (e ListDeptRequestValidationError) Field() string
- func (e ListDeptRequestValidationError) Key() bool
- func (e ListDeptRequestValidationError) Reason() string
- type ListDeptResponse
- func (*ListDeptResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeptResponse) GetItems() []*Dept
- func (x *ListDeptResponse) GetTotal() int32
- func (*ListDeptResponse) ProtoMessage()
- func (x *ListDeptResponse) ProtoReflect() protoreflect.Message
- func (x *ListDeptResponse) Reset()
- func (x *ListDeptResponse) String() string
- func (m *ListDeptResponse) Validate() error
- func (m *ListDeptResponse) ValidateAll() error
- type ListDeptResponseMultiError
- type ListDeptResponseValidationError
- func (e ListDeptResponseValidationError) Cause() error
- func (e ListDeptResponseValidationError) Error() string
- func (e ListDeptResponseValidationError) ErrorName() string
- func (e ListDeptResponseValidationError) Field() string
- func (e ListDeptResponseValidationError) Key() bool
- func (e ListDeptResponseValidationError) Reason() string
- type ListMenuRequest
- func (*ListMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListMenuRequest) ProtoMessage()
- func (x *ListMenuRequest) ProtoReflect() protoreflect.Message
- func (x *ListMenuRequest) Reset()
- func (x *ListMenuRequest) String() string
- func (m *ListMenuRequest) Validate() error
- func (m *ListMenuRequest) ValidateAll() error
- type ListMenuRequestMultiError
- type ListMenuRequestValidationError
- func (e ListMenuRequestValidationError) Cause() error
- func (e ListMenuRequestValidationError) Error() string
- func (e ListMenuRequestValidationError) ErrorName() string
- func (e ListMenuRequestValidationError) Field() string
- func (e ListMenuRequestValidationError) Key() bool
- func (e ListMenuRequestValidationError) Reason() string
- type ListMenuResponse
- func (*ListMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuResponse) GetItems() []*Menu
- func (x *ListMenuResponse) GetTotal() int32
- func (*ListMenuResponse) ProtoMessage()
- func (x *ListMenuResponse) ProtoReflect() protoreflect.Message
- func (x *ListMenuResponse) Reset()
- func (x *ListMenuResponse) String() string
- func (m *ListMenuResponse) Validate() error
- func (m *ListMenuResponse) ValidateAll() error
- type ListMenuResponseMultiError
- type ListMenuResponseValidationError
- func (e ListMenuResponseValidationError) Cause() error
- func (e ListMenuResponseValidationError) Error() string
- func (e ListMenuResponseValidationError) ErrorName() string
- func (e ListMenuResponseValidationError) Field() string
- func (e ListMenuResponseValidationError) Key() bool
- func (e ListMenuResponseValidationError) Reason() string
- type ListPostRequest
- func (*ListPostRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListPostRequest) ProtoMessage()
- func (x *ListPostRequest) ProtoReflect() protoreflect.Message
- func (x *ListPostRequest) Reset()
- func (x *ListPostRequest) String() string
- func (m *ListPostRequest) Validate() error
- func (m *ListPostRequest) ValidateAll() error
- type ListPostRequestMultiError
- type ListPostRequestValidationError
- func (e ListPostRequestValidationError) Cause() error
- func (e ListPostRequestValidationError) Error() string
- func (e ListPostRequestValidationError) ErrorName() string
- func (e ListPostRequestValidationError) Field() string
- func (e ListPostRequestValidationError) Key() bool
- func (e ListPostRequestValidationError) Reason() string
- type ListPostResponse
- func (*ListPostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostResponse) GetItems() []*Post
- func (x *ListPostResponse) GetTotal() int32
- func (*ListPostResponse) ProtoMessage()
- func (x *ListPostResponse) ProtoReflect() protoreflect.Message
- func (x *ListPostResponse) Reset()
- func (x *ListPostResponse) String() string
- func (m *ListPostResponse) Validate() error
- func (m *ListPostResponse) ValidateAll() error
- type ListPostResponseMultiError
- type ListPostResponseValidationError
- func (e ListPostResponseValidationError) Cause() error
- func (e ListPostResponseValidationError) Error() string
- func (e ListPostResponseValidationError) ErrorName() string
- func (e ListPostResponseValidationError) Field() string
- func (e ListPostResponseValidationError) Key() bool
- func (e ListPostResponseValidationError) Reason() string
- type ListRoleRequest
- func (*ListRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListRoleRequest) ProtoMessage()
- func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListRoleRequest) Reset()
- func (x *ListRoleRequest) String() string
- func (m *ListRoleRequest) Validate() error
- func (m *ListRoleRequest) ValidateAll() error
- type ListRoleRequestMultiError
- type ListRoleRequestValidationError
- func (e ListRoleRequestValidationError) Cause() error
- func (e ListRoleRequestValidationError) Error() string
- func (e ListRoleRequestValidationError) ErrorName() string
- func (e ListRoleRequestValidationError) Field() string
- func (e ListRoleRequestValidationError) Key() bool
- func (e ListRoleRequestValidationError) Reason() string
- type ListRoleResponse
- func (*ListRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleResponse) GetItems() []*Role
- func (x *ListRoleResponse) GetTotal() int32
- func (*ListRoleResponse) ProtoMessage()
- func (x *ListRoleResponse) ProtoReflect() protoreflect.Message
- func (x *ListRoleResponse) Reset()
- func (x *ListRoleResponse) String() string
- func (m *ListRoleResponse) Validate() error
- func (m *ListRoleResponse) ValidateAll() error
- type ListRoleResponseMultiError
- type ListRoleResponseValidationError
- func (e ListRoleResponseValidationError) Cause() error
- func (e ListRoleResponseValidationError) Error() string
- func (e ListRoleResponseValidationError) ErrorName() string
- func (e ListRoleResponseValidationError) Field() string
- func (e ListRoleResponseValidationError) Key() bool
- func (e ListRoleResponseValidationError) Reason() string
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetFieldMask() *fieldmaskpb.FieldMask
- func (x *ListUserRequest) GetNoPaging() bool
- func (x *ListUserRequest) GetOrQuery() *User
- func (x *ListUserRequest) GetOrderBy() []string
- func (x *ListUserRequest) GetPage() int32
- func (x *ListUserRequest) GetPageSize() int32
- func (x *ListUserRequest) GetQuery() *User
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- func (m *ListUserRequest) Validate() error
- func (m *ListUserRequest) ValidateAll() error
- type ListUserRequestMultiError
- type ListUserRequestValidationError
- func (e ListUserRequestValidationError) Cause() error
- func (e ListUserRequestValidationError) Error() string
- func (e ListUserRequestValidationError) ErrorName() string
- func (e ListUserRequestValidationError) Field() string
- func (e ListUserRequestValidationError) Key() bool
- func (e ListUserRequestValidationError) Reason() string
- type ListUserResponse
- func (*ListUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserResponse) GetItems() []*User
- func (x *ListUserResponse) GetTotal() int32
- func (*ListUserResponse) ProtoMessage()
- func (x *ListUserResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserResponse) Reset()
- func (x *ListUserResponse) String() string
- func (m *ListUserResponse) Validate() error
- func (m *ListUserResponse) ValidateAll() error
- type ListUserResponseMultiError
- type ListUserResponseValidationError
- func (e ListUserResponseValidationError) Cause() error
- func (e ListUserResponseValidationError) Error() string
- func (e ListUserResponseValidationError) ErrorName() string
- func (e ListUserResponseValidationError) Field() string
- func (e ListUserResponseValidationError) Key() bool
- func (e ListUserResponseValidationError) Reason() string
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)deprecated
- func (x *Menu) GetComponent() string
- func (x *Menu) GetCreatedAt() string
- func (x *Menu) GetCurrentActiveMenu() string
- func (x *Menu) GetExtUrl() string
- func (x *Menu) GetHideBreadcrumb() bool
- func (x *Menu) GetHideMenu() bool
- func (x *Menu) GetHideTab() bool
- func (x *Menu) GetIcon() string
- func (x *Menu) GetId() uint32
- func (x *Menu) GetIsExt() bool
- func (x *Menu) GetKeepAlive() bool
- func (x *Menu) GetName() string
- func (x *Menu) GetParentId() uint32
- func (x *Menu) GetPath() string
- func (x *Menu) GetPermissions() string
- func (x *Menu) GetRedirect() string
- func (x *Menu) GetRemark() string
- func (x *Menu) GetSort() int32
- func (x *Menu) GetState() int32
- func (x *Menu) GetTitle() string
- func (x *Menu) GetType() int32
- func (x *Menu) GetUpdatedAt() string
- func (x *Menu) GetVisible() bool
- func (*Menu) ProtoMessage()
- func (x *Menu) ProtoReflect() protoreflect.Message
- func (x *Menu) Reset()
- func (x *Menu) String() string
- func (m *Menu) Validate() error
- func (m *Menu) ValidateAll() error
- type MenuMultiError
- type MenuServiceClient
- type MenuServiceServer
- type MenuValidationError
- type Post
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (x *Post) GetCreatedAt() string
- func (x *Post) GetId() uint32
- func (x *Post) GetName() string
- func (x *Post) GetRemark() string
- func (x *Post) GetSort() int32
- func (x *Post) GetState() int32
- func (x *Post) GetUpdatedAt() string
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (x *Post) String() string
- func (m *Post) Validate() error
- func (m *Post) ValidateAll() error
- type PostMultiError
- type PostServiceClient
- type PostServiceServer
- type PostValidationError
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAuth() *RegisterRequest_Auth
- func (x *RegisterRequest) GetDomain() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterRequest_Auth
- func (*RegisterRequest_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest_Auth) GetName() string
- func (x *RegisterRequest_Auth) GetPassword() string
- func (x *RegisterRequest_Auth) GetPhone() string
- func (*RegisterRequest_Auth) ProtoMessage()
- func (x *RegisterRequest_Auth) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest_Auth) Reset()
- func (x *RegisterRequest_Auth) String() string
- func (m *RegisterRequest_Auth) Validate() error
- func (m *RegisterRequest_Auth) ValidateAll() error
- type RegisterRequest_AuthMultiError
- type RegisterRequest_AuthValidationError
- func (e RegisterRequest_AuthValidationError) Cause() error
- func (e RegisterRequest_AuthValidationError) Error() string
- func (e RegisterRequest_AuthValidationError) ErrorName() string
- func (e RegisterRequest_AuthValidationError) Field() string
- func (e RegisterRequest_AuthValidationError) Key() bool
- func (e RegisterRequest_AuthValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetCode() int32
- func (x *RegisterResponse) GetMessage() string
- func (x *RegisterResponse) GetResult() *anypb.Any
- func (x *RegisterResponse) GetType() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() string
- func (x *Role) GetDataScope() int32
- func (x *Role) GetDefaultRouter() string
- func (x *Role) GetDeptCheckStrictly() int32
- func (x *Role) GetId() uint32
- func (x *Role) GetMenuCheckStrictly() int32
- func (x *Role) GetName() string
- func (x *Role) GetRemark() string
- func (x *Role) GetSort() int32
- func (x *Role) GetState() int32
- func (x *Role) GetUpdatedAt() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleMultiError
- type RoleServiceClient
- type RoleServiceServer
- type RoleValidationError
- type UnimplementedAuthServiceServer
- type UnimplementedDeptServiceServer
- func (UnimplementedDeptServiceServer) CreateDept(context.Context, *CreateDeptRequest) (*CreateDeptResponse, error)
- func (UnimplementedDeptServiceServer) DeleteDept(context.Context, *DeleteDeptRequest) (*DeleteDeptResponse, error)
- func (UnimplementedDeptServiceServer) GetDept(context.Context, *GetDeptRequest) (*Dept, error)
- func (UnimplementedDeptServiceServer) ListDept(context.Context, *pagination.PagingRequest) (*ListDeptResponse, error)
- func (UnimplementedDeptServiceServer) UpdateDept(context.Context, *UpdateDeptRequest) (*UpdateDeptResponse, error)
- type UnimplementedMenuServiceServer
- func (UnimplementedMenuServiceServer) CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuResponse, error)
- func (UnimplementedMenuServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuResponse, error)
- func (UnimplementedMenuServiceServer) GetMenu(context.Context, *GetMenuRequest) (*Menu, error)
- func (UnimplementedMenuServiceServer) ListMenu(context.Context, *pagination.PagingRequest) (*ListMenuResponse, error)
- func (UnimplementedMenuServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuResponse, error)
- type UnimplementedPostServiceServer
- func (UnimplementedPostServiceServer) CreatePost(context.Context, *CreatePostRequest) (*CreatePostResponse, error)
- func (UnimplementedPostServiceServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostResponse, error)
- func (UnimplementedPostServiceServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
- func (UnimplementedPostServiceServer) ListPost(context.Context, *pagination.PagingRequest) (*ListPostResponse, error)
- func (UnimplementedPostServiceServer) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostResponse, error)
- type UnimplementedRoleServiceServer
- func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*Role, error)
- func (UnimplementedRoleServiceServer) ListRole(context.Context, *pagination.PagingRequest) (*ListRoleResponse, error)
- func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) GetUserByName(context.Context, *GetUserByNameRequest) (*User, error)
- func (UnimplementedUserServiceServer) ListUser(context.Context, *pagination.PagingRequest) (*ListUserResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- func (UnimplementedUserServiceServer) UserExists(context.Context, *UserExistsRequest) (*UserExistsResponse, error)
- func (UnimplementedUserServiceServer) VerifyPassword(context.Context, *VerifyPasswordRequest) (*VerifyPasswordResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeDeptServiceServer
- type UnsafeMenuServiceServer
- type UnsafePostServiceServer
- type UnsafeRoleServiceServer
- type UnsafeUserServiceServer
- type UpdateDeptRequest
- func (*UpdateDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeptRequest) GetDept() *Dept
- func (x *UpdateDeptRequest) GetId() uint32
- func (x *UpdateDeptRequest) GetOperatorId() uint32
- func (*UpdateDeptRequest) ProtoMessage()
- func (x *UpdateDeptRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeptRequest) Reset()
- func (x *UpdateDeptRequest) String() string
- func (m *UpdateDeptRequest) Validate() error
- func (m *UpdateDeptRequest) ValidateAll() error
- type UpdateDeptRequestMultiError
- type UpdateDeptRequestValidationError
- func (e UpdateDeptRequestValidationError) Cause() error
- func (e UpdateDeptRequestValidationError) Error() string
- func (e UpdateDeptRequestValidationError) ErrorName() string
- func (e UpdateDeptRequestValidationError) Field() string
- func (e UpdateDeptRequestValidationError) Key() bool
- func (e UpdateDeptRequestValidationError) Reason() string
- type UpdateDeptResponse
- func (*UpdateDeptResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateDeptResponse) ProtoMessage()
- func (x *UpdateDeptResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDeptResponse) Reset()
- func (x *UpdateDeptResponse) String() string
- func (m *UpdateDeptResponse) Validate() error
- func (m *UpdateDeptResponse) ValidateAll() error
- type UpdateDeptResponseMultiError
- type UpdateDeptResponseValidationError
- func (e UpdateDeptResponseValidationError) Cause() error
- func (e UpdateDeptResponseValidationError) Error() string
- func (e UpdateDeptResponseValidationError) ErrorName() string
- func (e UpdateDeptResponseValidationError) Field() string
- func (e UpdateDeptResponseValidationError) Key() bool
- func (e UpdateDeptResponseValidationError) Reason() string
- type UpdateMenuRequest
- func (*UpdateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenuRequest) GetId() uint32
- func (x *UpdateMenuRequest) GetMenu() *Menu
- func (x *UpdateMenuRequest) GetOperatorId() uint32
- func (*UpdateMenuRequest) ProtoMessage()
- func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuRequest) Reset()
- func (x *UpdateMenuRequest) String() string
- func (m *UpdateMenuRequest) Validate() error
- func (m *UpdateMenuRequest) ValidateAll() error
- type UpdateMenuRequestMultiError
- type UpdateMenuRequestValidationError
- func (e UpdateMenuRequestValidationError) Cause() error
- func (e UpdateMenuRequestValidationError) Error() string
- func (e UpdateMenuRequestValidationError) ErrorName() string
- func (e UpdateMenuRequestValidationError) Field() string
- func (e UpdateMenuRequestValidationError) Key() bool
- func (e UpdateMenuRequestValidationError) Reason() string
- type UpdateMenuResponse
- func (*UpdateMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateMenuResponse) ProtoMessage()
- func (x *UpdateMenuResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuResponse) Reset()
- func (x *UpdateMenuResponse) String() string
- func (m *UpdateMenuResponse) Validate() error
- func (m *UpdateMenuResponse) ValidateAll() error
- type UpdateMenuResponseMultiError
- type UpdateMenuResponseValidationError
- func (e UpdateMenuResponseValidationError) Cause() error
- func (e UpdateMenuResponseValidationError) Error() string
- func (e UpdateMenuResponseValidationError) ErrorName() string
- func (e UpdateMenuResponseValidationError) Field() string
- func (e UpdateMenuResponseValidationError) Key() bool
- func (e UpdateMenuResponseValidationError) Reason() string
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetId() uint32
- func (x *UpdatePostRequest) GetOperatorId() uint32
- func (x *UpdatePostRequest) GetPost() *Post
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
- func (m *UpdatePostRequest) Validate() error
- func (m *UpdatePostRequest) ValidateAll() error
- type UpdatePostRequestMultiError
- type UpdatePostRequestValidationError
- func (e UpdatePostRequestValidationError) Cause() error
- func (e UpdatePostRequestValidationError) Error() string
- func (e UpdatePostRequestValidationError) ErrorName() string
- func (e UpdatePostRequestValidationError) Field() string
- func (e UpdatePostRequestValidationError) Key() bool
- func (e UpdatePostRequestValidationError) Reason() string
- type UpdatePostResponse
- func (*UpdatePostResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdatePostResponse) ProtoMessage()
- func (x *UpdatePostResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePostResponse) Reset()
- func (x *UpdatePostResponse) String() string
- func (m *UpdatePostResponse) Validate() error
- func (m *UpdatePostResponse) ValidateAll() error
- type UpdatePostResponseMultiError
- type UpdatePostResponseValidationError
- func (e UpdatePostResponseValidationError) Cause() error
- func (e UpdatePostResponseValidationError) Error() string
- func (e UpdatePostResponseValidationError) ErrorName() string
- func (e UpdatePostResponseValidationError) Field() string
- func (e UpdatePostResponseValidationError) Key() bool
- func (e UpdatePostResponseValidationError) Reason() string
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetId() uint32
- func (x *UpdateRoleRequest) GetOperatorId() uint32
- func (x *UpdateRoleRequest) GetRole() *Role
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- func (m *UpdateRoleRequest) Validate() error
- func (m *UpdateRoleRequest) ValidateAll() error
- type UpdateRoleRequestMultiError
- type UpdateRoleRequestValidationError
- func (e UpdateRoleRequestValidationError) Cause() error
- func (e UpdateRoleRequestValidationError) Error() string
- func (e UpdateRoleRequestValidationError) ErrorName() string
- func (e UpdateRoleRequestValidationError) Field() string
- func (e UpdateRoleRequestValidationError) Key() bool
- func (e UpdateRoleRequestValidationError) Reason() string
- type UpdateRoleResponse
- func (*UpdateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRoleResponse) ProtoMessage()
- func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleResponse) Reset()
- func (x *UpdateRoleResponse) String() string
- func (m *UpdateRoleResponse) Validate() error
- func (m *UpdateRoleResponse) ValidateAll() error
- type UpdateRoleResponseMultiError
- type UpdateRoleResponseValidationError
- func (e UpdateRoleResponseValidationError) Cause() error
- func (e UpdateRoleResponseValidationError) Error() string
- func (e UpdateRoleResponseValidationError) ErrorName() string
- func (e UpdateRoleResponseValidationError) Field() string
- func (e UpdateRoleResponseValidationError) Key() bool
- func (e UpdateRoleResponseValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetId() uint32
- func (x *UpdateUserRequest) GetOperatorId() uint32
- func (x *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type UpdateUserResponse
- func (*UpdateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserResponse) ProtoMessage()
- func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserResponse) Reset()
- func (x *UpdateUserResponse) String() string
- func (m *UpdateUserResponse) Validate() error
- func (m *UpdateUserResponse) ValidateAll() error
- type UpdateUserResponseMultiError
- type UpdateUserResponseValidationError
- func (e UpdateUserResponseValidationError) Cause() error
- func (e UpdateUserResponseValidationError) Error() string
- func (e UpdateUserResponseValidationError) ErrorName() string
- func (e UpdateUserResponseValidationError) Field() string
- func (e UpdateUserResponseValidationError) Key() bool
- func (e UpdateUserResponseValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAuthority() int32
- func (x *User) GetAvatar() string
- func (x *User) GetBirthday() string
- func (x *User) GetCreatedAt() string
- func (x *User) GetCreatorId() uint32
- func (x *User) GetDescription() string
- func (x *User) GetEmail() string
- func (x *User) GetGender() int32
- func (x *User) GetId() uint32
- func (x *User) GetName() string
- func (x *User) GetNickName() string
- func (x *User) GetPassword() string
- func (x *User) GetPhone() string
- func (x *User) GetRealName() string
- func (x *User) GetState() int32
- func (x *User) GetUpdatedAt() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserExistsRequest
- func (*UserExistsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserExistsRequest) GetName() string
- func (*UserExistsRequest) ProtoMessage()
- func (x *UserExistsRequest) ProtoReflect() protoreflect.Message
- func (x *UserExistsRequest) Reset()
- func (x *UserExistsRequest) String() string
- func (m *UserExistsRequest) Validate() error
- func (m *UserExistsRequest) ValidateAll() error
- type UserExistsRequestMultiError
- type UserExistsRequestValidationError
- func (e UserExistsRequestValidationError) Cause() error
- func (e UserExistsRequestValidationError) Error() string
- func (e UserExistsRequestValidationError) ErrorName() string
- func (e UserExistsRequestValidationError) Field() string
- func (e UserExistsRequestValidationError) Key() bool
- func (e UserExistsRequestValidationError) Reason() string
- type UserExistsResponse
- func (*UserExistsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserExistsResponse) GetExist() bool
- func (*UserExistsResponse) ProtoMessage()
- func (x *UserExistsResponse) ProtoReflect() protoreflect.Message
- func (x *UserExistsResponse) Reset()
- func (x *UserExistsResponse) String() string
- func (m *UserExistsResponse) Validate() error
- func (m *UserExistsResponse) ValidateAll() error
- type UserExistsResponseMultiError
- type UserExistsResponseValidationError
- func (e UserExistsResponseValidationError) Cause() error
- func (e UserExistsResponseValidationError) Error() string
- func (e UserExistsResponseValidationError) ErrorName() string
- func (e UserExistsResponseValidationError) Field() string
- func (e UserExistsResponseValidationError) Key() bool
- func (e UserExistsResponseValidationError) Reason() string
- type UserMultiError
- type UserServiceClient
- type UserServiceServer
- type UserValidationError
- type VerifyPassword
- func (VerifyPassword) Descriptor() protoreflect.EnumDescriptor
- func (x VerifyPassword) Enum() *VerifyPassword
- func (VerifyPassword) EnumDescriptor() ([]byte, []int)deprecated
- func (x VerifyPassword) Number() protoreflect.EnumNumber
- func (x VerifyPassword) String() string
- func (VerifyPassword) Type() protoreflect.EnumType
- type VerifyPasswordRequest
- func (*VerifyPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordRequest) GetName() string
- func (x *VerifyPasswordRequest) GetPassword() string
- func (*VerifyPasswordRequest) ProtoMessage()
- func (x *VerifyPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordRequest) Reset()
- func (x *VerifyPasswordRequest) String() string
- func (m *VerifyPasswordRequest) Validate() error
- func (m *VerifyPasswordRequest) ValidateAll() error
- type VerifyPasswordRequestMultiError
- type VerifyPasswordRequestValidationError
- func (e VerifyPasswordRequestValidationError) Cause() error
- func (e VerifyPasswordRequestValidationError) Error() string
- func (e VerifyPasswordRequestValidationError) ErrorName() string
- func (e VerifyPasswordRequestValidationError) Field() string
- func (e VerifyPasswordRequestValidationError) Key() bool
- func (e VerifyPasswordRequestValidationError) Reason() string
- type VerifyPasswordResponse
- func (*VerifyPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordResponse) GetResult() VerifyPassword
- func (*VerifyPasswordResponse) ProtoMessage()
- func (x *VerifyPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordResponse) Reset()
- func (x *VerifyPasswordResponse) String() string
- func (m *VerifyPasswordResponse) Validate() error
- func (m *VerifyPasswordResponse) ValidateAll() error
- type VerifyPasswordResponseMultiError
- type VerifyPasswordResponseValidationError
- func (e VerifyPasswordResponseValidationError) Cause() error
- func (e VerifyPasswordResponseValidationError) Error() string
- func (e VerifyPasswordResponseValidationError) ErrorName() string
- func (e VerifyPasswordResponseValidationError) Field() string
- func (e VerifyPasswordResponseValidationError) Key() bool
- func (e VerifyPasswordResponseValidationError) Reason() string
Constants ¶
const ( AuthService_Register_FullMethodName = "/core.service.v1.AuthService/Register" AuthService_IsAuthorized_FullMethodName = "/core.service.v1.AuthService/IsAuthorized" )
const ( DeptService_CreateDept_FullMethodName = "/core.service.v1.DeptService/CreateDept" DeptService_UpdateDept_FullMethodName = "/core.service.v1.DeptService/UpdateDept" DeptService_DeleteDept_FullMethodName = "/core.service.v1.DeptService/DeleteDept" DeptService_GetDept_FullMethodName = "/core.service.v1.DeptService/GetDept" DeptService_ListDept_FullMethodName = "/core.service.v1.DeptService/ListDept" )
const ( MenuService_CreateMenu_FullMethodName = "/core.service.v1.MenuService/CreateMenu" MenuService_UpdateMenu_FullMethodName = "/core.service.v1.MenuService/UpdateMenu" MenuService_DeleteMenu_FullMethodName = "/core.service.v1.MenuService/DeleteMenu" MenuService_GetMenu_FullMethodName = "/core.service.v1.MenuService/GetMenu" MenuService_ListMenu_FullMethodName = "/core.service.v1.MenuService/ListMenu" )
const ( PostService_CreatePost_FullMethodName = "/core.service.v1.PostService/CreatePost" PostService_UpdatePost_FullMethodName = "/core.service.v1.PostService/UpdatePost" PostService_DeletePost_FullMethodName = "/core.service.v1.PostService/DeletePost" PostService_GetPost_FullMethodName = "/core.service.v1.PostService/GetPost" PostService_ListPost_FullMethodName = "/core.service.v1.PostService/ListPost" )
const ( RoleService_CreateRole_FullMethodName = "/core.service.v1.RoleService/CreateRole" RoleService_UpdateRole_FullMethodName = "/core.service.v1.RoleService/UpdateRole" RoleService_DeleteRole_FullMethodName = "/core.service.v1.RoleService/DeleteRole" RoleService_GetRole_FullMethodName = "/core.service.v1.RoleService/GetRole" RoleService_ListRole_FullMethodName = "/core.service.v1.RoleService/ListRole" )
const ( UserService_CreateUser_FullMethodName = "/core.service.v1.UserService/CreateUser" UserService_UpdateUser_FullMethodName = "/core.service.v1.UserService/UpdateUser" UserService_DeleteUser_FullMethodName = "/core.service.v1.UserService/DeleteUser" UserService_GetUser_FullMethodName = "/core.service.v1.UserService/GetUser" UserService_ListUser_FullMethodName = "/core.service.v1.UserService/ListUser" UserService_GetUserByName_FullMethodName = "/core.service.v1.UserService/GetUserByName" UserService_VerifyPassword_FullMethodName = "/core.service.v1.UserService/VerifyPassword" UserService_UserExists_FullMethodName = "/core.service.v1.UserService/UserExists" )
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "UNSPECIFIED", 11: "USER_NOT_FOUND", } ErrorReason_value = map[string]int32{ "UNSPECIFIED": 0, "USER_NOT_FOUND": 11, } )
Enum value maps for ErrorReason.
var ( VerifyPassword_name = map[int32]string{ 0: "VERIFY_PASSWORD_UNSPECIFIED", 1: "VERIFY_PASSWORD_SUCCESS", 2: "VERIFY_PASSWORD_ACCOUNT_NOT_EXISTS", 3: "VERIFY_PASSWORD_WRONG_PASSWORD", 4: "VERIFY_PASSWORD_FREEZE", 5: "VERIFY_PASSWORD_DELETED", } VerifyPassword_value = map[string]int32{ "VERIFY_PASSWORD_UNSPECIFIED": 0, "VERIFY_PASSWORD_SUCCESS": 1, "VERIFY_PASSWORD_ACCOUNT_NOT_EXISTS": 2, "VERIFY_PASSWORD_WRONG_PASSWORD": 3, "VERIFY_PASSWORD_FREEZE": 4, "VERIFY_PASSWORD_DELETED": 5, } )
Enum value maps for VerifyPassword.
var ( Authority_name = map[int32]string{ 0: "AUTHORITY_UNSPECIFIED", 1: "AUTHORITY_SYS_ADMIN", 2: "AUTHORITY_CUSTOMER_USER", 3: "AUTHORITY_GUEST_USER", } Authority_value = map[string]int32{ "AUTHORITY_UNSPECIFIED": 0, "AUTHORITY_SYS_ADMIN": 1, "AUTHORITY_CUSTOMER_USER": 2, "AUTHORITY_GUEST_USER": 3, } )
Enum value maps for Authority.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.service.v1.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "IsAuthorized", Handler: _AuthService_IsAuthorized_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/service/v1/auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DeptService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.service.v1.DeptService", HandlerType: (*DeptServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDept", Handler: _DeptService_CreateDept_Handler, }, { MethodName: "UpdateDept", Handler: _DeptService_UpdateDept_Handler, }, { MethodName: "DeleteDept", Handler: _DeptService_DeleteDept_Handler, }, { MethodName: "GetDept", Handler: _DeptService_GetDept_Handler, }, { MethodName: "ListDept", Handler: _DeptService_ListDept_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/service/v1/dept.proto", }
DeptService_ServiceDesc is the grpc.ServiceDesc for DeptService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_core_service_v1_auth_proto protoreflect.FileDescriptor
var File_core_service_v1_dept_proto protoreflect.FileDescriptor
var File_core_service_v1_error_reason_proto protoreflect.FileDescriptor
var File_core_service_v1_post_proto protoreflect.FileDescriptor
var File_core_service_v1_role_proto protoreflect.FileDescriptor
var File_core_service_v1_user_proto protoreflect.FileDescriptor
var MenuService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.service.v1.MenuService", HandlerType: (*MenuServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateMenu", Handler: _MenuService_CreateMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _MenuService_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _MenuService_DeleteMenu_Handler, }, { MethodName: "GetMenu", Handler: _MenuService_GetMenu_Handler, }, { MethodName: "ListMenu", Handler: _MenuService_ListMenu_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/service/v1/menu.proto", }
MenuService_ServiceDesc is the grpc.ServiceDesc for MenuService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PostService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.service.v1.PostService", HandlerType: (*PostServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreatePost", Handler: _PostService_CreatePost_Handler, }, { MethodName: "UpdatePost", Handler: _PostService_UpdatePost_Handler, }, { MethodName: "DeletePost", Handler: _PostService_DeletePost_Handler, }, { MethodName: "GetPost", Handler: _PostService_GetPost_Handler, }, { MethodName: "ListPost", Handler: _PostService_ListPost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/service/v1/post.proto", }
PostService_ServiceDesc is the grpc.ServiceDesc for PostService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RoleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.service.v1.RoleService", HandlerType: (*RoleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _RoleService_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _RoleService_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _RoleService_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _RoleService_GetRole_Handler, }, { MethodName: "ListRole", Handler: _RoleService_ListRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/service/v1/role.proto", }
RoleService_ServiceDesc is the grpc.ServiceDesc for RoleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.service.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "ListUser", Handler: _UserService_ListUser_Handler, }, { MethodName: "GetUserByName", Handler: _UserService_GetUserByName_Handler, }, { MethodName: "VerifyPassword", Handler: _UserService_VerifyPassword_Handler, }, { MethodName: "UserExists", Handler: _UserService_UserExists_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/service/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 ErrorUnspecified ¶
func ErrorUserNotFound ¶
func IsUnspecified ¶
func IsUserNotFound ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterDeptServiceServer ¶
func RegisterDeptServiceServer(s grpc.ServiceRegistrar, srv DeptServiceServer)
func RegisterMenuServiceServer ¶
func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)
func RegisterPostServiceServer ¶
func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)
func RegisterRoleServiceServer ¶
func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // 注册 - 暂保留 Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) // 鉴权 IsAuthorized(ctx context.Context, in *IsAuthorizedRequest, opts ...grpc.CallOption) (*IsAuthorizedResponse, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { // 注册 - 暂保留 Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // 鉴权 IsAuthorized(context.Context, *IsAuthorizedRequest) (*IsAuthorizedResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type Authority ¶
type Authority int32
用户权限
func (Authority) Descriptor ¶
func (Authority) Descriptor() protoreflect.EnumDescriptor
func (Authority) EnumDescriptor
deprecated
func (Authority) Number ¶
func (x Authority) Number() protoreflect.EnumNumber
func (Authority) Type ¶
func (Authority) Type() protoreflect.EnumType
type CreateDeptRequest ¶
type CreateDeptRequest struct { Dept *Dept `protobuf:"bytes,1,opt,name=dept,proto3" json:"dept,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*CreateDeptRequest) Descriptor
deprecated
func (*CreateDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeptRequest.ProtoReflect.Descriptor instead.
func (*CreateDeptRequest) GetDept ¶
func (x *CreateDeptRequest) GetDept() *Dept
func (*CreateDeptRequest) GetOperatorId ¶
func (x *CreateDeptRequest) GetOperatorId() uint32
func (*CreateDeptRequest) ProtoMessage ¶
func (*CreateDeptRequest) ProtoMessage()
func (*CreateDeptRequest) ProtoReflect ¶
func (x *CreateDeptRequest) ProtoReflect() protoreflect.Message
func (*CreateDeptRequest) Reset ¶
func (x *CreateDeptRequest) Reset()
func (*CreateDeptRequest) String ¶
func (x *CreateDeptRequest) String() string
func (*CreateDeptRequest) Validate ¶
func (m *CreateDeptRequest) Validate() error
Validate checks the field values on CreateDeptRequest 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 (*CreateDeptRequest) ValidateAll ¶
func (m *CreateDeptRequest) ValidateAll() error
ValidateAll checks the field values on CreateDeptRequest 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 CreateDeptRequestMultiError, or nil if none found.
type CreateDeptRequestMultiError ¶
type CreateDeptRequestMultiError []error
CreateDeptRequestMultiError is an error wrapping multiple validation errors returned by CreateDeptRequest.ValidateAll() if the designated constraints aren't met.
func (CreateDeptRequestMultiError) AllErrors ¶
func (m CreateDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDeptRequestMultiError) Error ¶
func (m CreateDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDeptRequestValidationError ¶
type CreateDeptRequestValidationError struct {
// contains filtered or unexported fields
}
CreateDeptRequestValidationError is the validation error returned by CreateDeptRequest.Validate if the designated constraints aren't met.
func (CreateDeptRequestValidationError) Cause ¶
func (e CreateDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDeptRequestValidationError) Error ¶
func (e CreateDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeptRequestValidationError) ErrorName ¶
func (e CreateDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeptRequestValidationError) Field ¶
func (e CreateDeptRequestValidationError) Field() string
Field function returns field value.
func (CreateDeptRequestValidationError) Key ¶
func (e CreateDeptRequestValidationError) Key() bool
Key function returns key value.
func (CreateDeptRequestValidationError) Reason ¶
func (e CreateDeptRequestValidationError) Reason() string
Reason function returns reason value.
type CreateDeptResponse ¶
type CreateDeptResponse struct {
// contains filtered or unexported fields
}
func (*CreateDeptResponse) Descriptor
deprecated
func (*CreateDeptResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeptResponse.ProtoReflect.Descriptor instead.
func (*CreateDeptResponse) ProtoMessage ¶
func (*CreateDeptResponse) ProtoMessage()
func (*CreateDeptResponse) ProtoReflect ¶
func (x *CreateDeptResponse) ProtoReflect() protoreflect.Message
func (*CreateDeptResponse) Reset ¶
func (x *CreateDeptResponse) Reset()
func (*CreateDeptResponse) String ¶
func (x *CreateDeptResponse) String() string
func (*CreateDeptResponse) Validate ¶
func (m *CreateDeptResponse) Validate() error
Validate checks the field values on CreateDeptResponse 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 (*CreateDeptResponse) ValidateAll ¶
func (m *CreateDeptResponse) ValidateAll() error
ValidateAll checks the field values on CreateDeptResponse 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 CreateDeptResponseMultiError, or nil if none found.
type CreateDeptResponseMultiError ¶
type CreateDeptResponseMultiError []error
CreateDeptResponseMultiError is an error wrapping multiple validation errors returned by CreateDeptResponse.ValidateAll() if the designated constraints aren't met.
func (CreateDeptResponseMultiError) AllErrors ¶
func (m CreateDeptResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDeptResponseMultiError) Error ¶
func (m CreateDeptResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDeptResponseValidationError ¶
type CreateDeptResponseValidationError struct {
// contains filtered or unexported fields
}
CreateDeptResponseValidationError is the validation error returned by CreateDeptResponse.Validate if the designated constraints aren't met.
func (CreateDeptResponseValidationError) Cause ¶
func (e CreateDeptResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateDeptResponseValidationError) Error ¶
func (e CreateDeptResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeptResponseValidationError) ErrorName ¶
func (e CreateDeptResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeptResponseValidationError) Field ¶
func (e CreateDeptResponseValidationError) Field() string
Field function returns field value.
func (CreateDeptResponseValidationError) Key ¶
func (e CreateDeptResponseValidationError) Key() bool
Key function returns key value.
func (CreateDeptResponseValidationError) Reason ¶
func (e CreateDeptResponseValidationError) Reason() string
Reason function returns reason value.
type CreateMenuRequest ¶
type CreateMenuRequest struct { Menu *Menu `protobuf:"bytes,1,opt,name=menu,proto3" json:"menu,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*CreateMenuRequest) Descriptor
deprecated
func (*CreateMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuRequest.ProtoReflect.Descriptor instead.
func (*CreateMenuRequest) GetMenu ¶
func (x *CreateMenuRequest) GetMenu() *Menu
func (*CreateMenuRequest) GetOperatorId ¶
func (x *CreateMenuRequest) GetOperatorId() uint32
func (*CreateMenuRequest) ProtoMessage ¶
func (*CreateMenuRequest) ProtoMessage()
func (*CreateMenuRequest) ProtoReflect ¶
func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message
func (*CreateMenuRequest) Reset ¶
func (x *CreateMenuRequest) Reset()
func (*CreateMenuRequest) String ¶
func (x *CreateMenuRequest) String() string
func (*CreateMenuRequest) Validate ¶
func (m *CreateMenuRequest) Validate() error
Validate checks the field values on CreateMenuRequest 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 (*CreateMenuRequest) ValidateAll ¶
func (m *CreateMenuRequest) ValidateAll() error
ValidateAll checks the field values on CreateMenuRequest 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 CreateMenuRequestMultiError, or nil if none found.
type CreateMenuRequestMultiError ¶
type CreateMenuRequestMultiError []error
CreateMenuRequestMultiError is an error wrapping multiple validation errors returned by CreateMenuRequest.ValidateAll() if the designated constraints aren't met.
func (CreateMenuRequestMultiError) AllErrors ¶
func (m CreateMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuRequestMultiError) Error ¶
func (m CreateMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuRequestValidationError ¶
type CreateMenuRequestValidationError struct {
// contains filtered or unexported fields
}
CreateMenuRequestValidationError is the validation error returned by CreateMenuRequest.Validate if the designated constraints aren't met.
func (CreateMenuRequestValidationError) Cause ¶
func (e CreateMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuRequestValidationError) Error ¶
func (e CreateMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuRequestValidationError) ErrorName ¶
func (e CreateMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuRequestValidationError) Field ¶
func (e CreateMenuRequestValidationError) Field() string
Field function returns field value.
func (CreateMenuRequestValidationError) Key ¶
func (e CreateMenuRequestValidationError) Key() bool
Key function returns key value.
func (CreateMenuRequestValidationError) Reason ¶
func (e CreateMenuRequestValidationError) Reason() string
Reason function returns reason value.
type CreateMenuResponse ¶
type CreateMenuResponse struct {
// contains filtered or unexported fields
}
func (*CreateMenuResponse) Descriptor
deprecated
func (*CreateMenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuResponse.ProtoReflect.Descriptor instead.
func (*CreateMenuResponse) ProtoMessage ¶
func (*CreateMenuResponse) ProtoMessage()
func (*CreateMenuResponse) ProtoReflect ¶
func (x *CreateMenuResponse) ProtoReflect() protoreflect.Message
func (*CreateMenuResponse) Reset ¶
func (x *CreateMenuResponse) Reset()
func (*CreateMenuResponse) String ¶
func (x *CreateMenuResponse) String() string
func (*CreateMenuResponse) Validate ¶
func (m *CreateMenuResponse) Validate() error
Validate checks the field values on CreateMenuResponse 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 (*CreateMenuResponse) ValidateAll ¶
func (m *CreateMenuResponse) ValidateAll() error
ValidateAll checks the field values on CreateMenuResponse 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 CreateMenuResponseMultiError, or nil if none found.
type CreateMenuResponseMultiError ¶
type CreateMenuResponseMultiError []error
CreateMenuResponseMultiError is an error wrapping multiple validation errors returned by CreateMenuResponse.ValidateAll() if the designated constraints aren't met.
func (CreateMenuResponseMultiError) AllErrors ¶
func (m CreateMenuResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuResponseMultiError) Error ¶
func (m CreateMenuResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuResponseValidationError ¶
type CreateMenuResponseValidationError struct {
// contains filtered or unexported fields
}
CreateMenuResponseValidationError is the validation error returned by CreateMenuResponse.Validate if the designated constraints aren't met.
func (CreateMenuResponseValidationError) Cause ¶
func (e CreateMenuResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuResponseValidationError) Error ¶
func (e CreateMenuResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuResponseValidationError) ErrorName ¶
func (e CreateMenuResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuResponseValidationError) Field ¶
func (e CreateMenuResponseValidationError) Field() string
Field function returns field value.
func (CreateMenuResponseValidationError) Key ¶
func (e CreateMenuResponseValidationError) Key() bool
Key function returns key value.
func (CreateMenuResponseValidationError) Reason ¶
func (e CreateMenuResponseValidationError) Reason() string
Reason function returns reason value.
type CreatePostRequest ¶
type CreatePostRequest struct { Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*CreatePostRequest) Descriptor
deprecated
func (*CreatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.
func (*CreatePostRequest) GetOperatorId ¶
func (x *CreatePostRequest) GetOperatorId() uint32
func (*CreatePostRequest) GetPost ¶
func (x *CreatePostRequest) GetPost() *Post
func (*CreatePostRequest) ProtoMessage ¶
func (*CreatePostRequest) ProtoMessage()
func (*CreatePostRequest) ProtoReflect ¶
func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
func (*CreatePostRequest) Reset ¶
func (x *CreatePostRequest) Reset()
func (*CreatePostRequest) String ¶
func (x *CreatePostRequest) String() string
func (*CreatePostRequest) Validate ¶
func (m *CreatePostRequest) Validate() error
Validate checks the field values on CreatePostRequest 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 (*CreatePostRequest) ValidateAll ¶
func (m *CreatePostRequest) ValidateAll() error
ValidateAll checks the field values on CreatePostRequest 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 CreatePostRequestMultiError, or nil if none found.
type CreatePostRequestMultiError ¶
type CreatePostRequestMultiError []error
CreatePostRequestMultiError is an error wrapping multiple validation errors returned by CreatePostRequest.ValidateAll() if the designated constraints aren't met.
func (CreatePostRequestMultiError) AllErrors ¶
func (m CreatePostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePostRequestMultiError) Error ¶
func (m CreatePostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePostRequestValidationError ¶
type CreatePostRequestValidationError struct {
// contains filtered or unexported fields
}
CreatePostRequestValidationError is the validation error returned by CreatePostRequest.Validate if the designated constraints aren't met.
func (CreatePostRequestValidationError) Cause ¶
func (e CreatePostRequestValidationError) Cause() error
Cause function returns cause value.
func (CreatePostRequestValidationError) Error ¶
func (e CreatePostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePostRequestValidationError) ErrorName ¶
func (e CreatePostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePostRequestValidationError) Field ¶
func (e CreatePostRequestValidationError) Field() string
Field function returns field value.
func (CreatePostRequestValidationError) Key ¶
func (e CreatePostRequestValidationError) Key() bool
Key function returns key value.
func (CreatePostRequestValidationError) Reason ¶
func (e CreatePostRequestValidationError) Reason() string
Reason function returns reason value.
type CreatePostResponse ¶
type CreatePostResponse struct {
// contains filtered or unexported fields
}
func (*CreatePostResponse) Descriptor
deprecated
func (*CreatePostResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostResponse.ProtoReflect.Descriptor instead.
func (*CreatePostResponse) ProtoMessage ¶
func (*CreatePostResponse) ProtoMessage()
func (*CreatePostResponse) ProtoReflect ¶
func (x *CreatePostResponse) ProtoReflect() protoreflect.Message
func (*CreatePostResponse) Reset ¶
func (x *CreatePostResponse) Reset()
func (*CreatePostResponse) String ¶
func (x *CreatePostResponse) String() string
func (*CreatePostResponse) Validate ¶
func (m *CreatePostResponse) Validate() error
Validate checks the field values on CreatePostResponse 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 (*CreatePostResponse) ValidateAll ¶
func (m *CreatePostResponse) ValidateAll() error
ValidateAll checks the field values on CreatePostResponse 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 CreatePostResponseMultiError, or nil if none found.
type CreatePostResponseMultiError ¶
type CreatePostResponseMultiError []error
CreatePostResponseMultiError is an error wrapping multiple validation errors returned by CreatePostResponse.ValidateAll() if the designated constraints aren't met.
func (CreatePostResponseMultiError) AllErrors ¶
func (m CreatePostResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePostResponseMultiError) Error ¶
func (m CreatePostResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePostResponseValidationError ¶
type CreatePostResponseValidationError struct {
// contains filtered or unexported fields
}
CreatePostResponseValidationError is the validation error returned by CreatePostResponse.Validate if the designated constraints aren't met.
func (CreatePostResponseValidationError) Cause ¶
func (e CreatePostResponseValidationError) Cause() error
Cause function returns cause value.
func (CreatePostResponseValidationError) Error ¶
func (e CreatePostResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePostResponseValidationError) ErrorName ¶
func (e CreatePostResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePostResponseValidationError) Field ¶
func (e CreatePostResponseValidationError) Field() string
Field function returns field value.
func (CreatePostResponseValidationError) Key ¶
func (e CreatePostResponseValidationError) Key() bool
Key function returns key value.
func (CreatePostResponseValidationError) Reason ¶
func (e CreatePostResponseValidationError) Reason() string
Reason function returns reason value.
type CreateRoleRequest ¶
type CreateRoleRequest struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetOperatorId ¶
func (x *CreateRoleRequest) GetOperatorId() uint32
func (*CreateRoleRequest) GetRole ¶
func (x *CreateRoleRequest) GetRole() *Role
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶
func (m *CreateRoleRequest) Validate() error
Validate checks the field values on CreateRoleRequest 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 (*CreateRoleRequest) ValidateAll ¶
func (m *CreateRoleRequest) ValidateAll() error
ValidateAll checks the field values on CreateRoleRequest 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 CreateRoleRequestMultiError, or nil if none found.
type CreateRoleRequestMultiError ¶
type CreateRoleRequestMultiError []error
CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRoleRequestMultiError) AllErrors ¶
func (m CreateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleRequestMultiError) Error ¶
func (m CreateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleRequestValidationError ¶
type CreateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.
func (CreateRoleRequestValidationError) Cause ¶
func (e CreateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleRequestValidationError) Error ¶
func (e CreateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleRequestValidationError) ErrorName ¶
func (e CreateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleRequestValidationError) Field ¶
func (e CreateRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateRoleRequestValidationError) Key ¶
func (e CreateRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateRoleRequestValidationError) Reason ¶
func (e CreateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRoleResponse ¶
type CreateRoleResponse struct {
// contains filtered or unexported fields
}
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
func (*CreateRoleResponse) Validate ¶
func (m *CreateRoleResponse) Validate() error
Validate checks the field values on CreateRoleResponse 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 (*CreateRoleResponse) ValidateAll ¶
func (m *CreateRoleResponse) ValidateAll() error
ValidateAll checks the field values on CreateRoleResponse 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 CreateRoleResponseMultiError, or nil if none found.
type CreateRoleResponseMultiError ¶
type CreateRoleResponseMultiError []error
CreateRoleResponseMultiError is an error wrapping multiple validation errors returned by CreateRoleResponse.ValidateAll() if the designated constraints aren't met.
func (CreateRoleResponseMultiError) AllErrors ¶
func (m CreateRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleResponseMultiError) Error ¶
func (m CreateRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleResponseValidationError ¶
type CreateRoleResponseValidationError struct {
// contains filtered or unexported fields
}
CreateRoleResponseValidationError is the validation error returned by CreateRoleResponse.Validate if the designated constraints aren't met.
func (CreateRoleResponseValidationError) Cause ¶
func (e CreateRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleResponseValidationError) Error ¶
func (e CreateRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleResponseValidationError) ErrorName ¶
func (e CreateRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleResponseValidationError) Field ¶
func (e CreateRoleResponseValidationError) Field() string
Field function returns field value.
func (CreateRoleResponseValidationError) Key ¶
func (e CreateRoleResponseValidationError) Key() bool
Key function returns key value.
func (CreateRoleResponseValidationError) Reason ¶
func (e CreateRoleResponseValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetOperatorId ¶
func (x *CreateUserRequest) GetOperatorId() uint32
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
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 ¶
func (m CreateUserRequestMultiError) Error() string
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 ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserResponse ¶
type CreateUserResponse struct {
// contains filtered or unexported fields
}
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
func (*CreateUserResponse) Validate ¶
func (m *CreateUserResponse) Validate() error
Validate checks the field values on CreateUserResponse 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 (*CreateUserResponse) ValidateAll ¶
func (m *CreateUserResponse) ValidateAll() error
ValidateAll checks the field values on CreateUserResponse 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 CreateUserResponseMultiError, or nil if none found.
type CreateUserResponseMultiError ¶
type CreateUserResponseMultiError []error
CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.
func (CreateUserResponseMultiError) AllErrors ¶
func (m CreateUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserResponseMultiError) Error ¶
func (m CreateUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserResponseValidationError ¶
type CreateUserResponseValidationError struct {
// contains filtered or unexported fields
}
CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.
func (CreateUserResponseValidationError) Cause ¶
func (e CreateUserResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateUserResponseValidationError) Error ¶
func (e CreateUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserResponseValidationError) ErrorName ¶
func (e CreateUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserResponseValidationError) Field ¶
func (e CreateUserResponseValidationError) Field() string
Field function returns field value.
func (CreateUserResponseValidationError) Key ¶
func (e CreateUserResponseValidationError) Key() bool
Key function returns key value.
func (CreateUserResponseValidationError) Reason ¶
func (e CreateUserResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteDeptRequest ¶
type DeleteDeptRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDeptRequest) Descriptor
deprecated
func (*DeleteDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeptRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeptRequest) GetId ¶
func (x *DeleteDeptRequest) GetId() uint32
func (*DeleteDeptRequest) GetOperatorId ¶
func (x *DeleteDeptRequest) GetOperatorId() uint32
func (*DeleteDeptRequest) ProtoMessage ¶
func (*DeleteDeptRequest) ProtoMessage()
func (*DeleteDeptRequest) ProtoReflect ¶
func (x *DeleteDeptRequest) ProtoReflect() protoreflect.Message
func (*DeleteDeptRequest) Reset ¶
func (x *DeleteDeptRequest) Reset()
func (*DeleteDeptRequest) String ¶
func (x *DeleteDeptRequest) String() string
func (*DeleteDeptRequest) Validate ¶
func (m *DeleteDeptRequest) Validate() error
Validate checks the field values on DeleteDeptRequest 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 (*DeleteDeptRequest) ValidateAll ¶
func (m *DeleteDeptRequest) ValidateAll() error
ValidateAll checks the field values on DeleteDeptRequest 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 DeleteDeptRequestMultiError, or nil if none found.
type DeleteDeptRequestMultiError ¶
type DeleteDeptRequestMultiError []error
DeleteDeptRequestMultiError is an error wrapping multiple validation errors returned by DeleteDeptRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteDeptRequestMultiError) AllErrors ¶
func (m DeleteDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDeptRequestMultiError) Error ¶
func (m DeleteDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDeptRequestValidationError ¶
type DeleteDeptRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteDeptRequestValidationError is the validation error returned by DeleteDeptRequest.Validate if the designated constraints aren't met.
func (DeleteDeptRequestValidationError) Cause ¶
func (e DeleteDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDeptRequestValidationError) Error ¶
func (e DeleteDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDeptRequestValidationError) ErrorName ¶
func (e DeleteDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDeptRequestValidationError) Field ¶
func (e DeleteDeptRequestValidationError) Field() string
Field function returns field value.
func (DeleteDeptRequestValidationError) Key ¶
func (e DeleteDeptRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDeptRequestValidationError) Reason ¶
func (e DeleteDeptRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDeptResponse ¶
type DeleteDeptResponse struct {
// contains filtered or unexported fields
}
func (*DeleteDeptResponse) Descriptor
deprecated
func (*DeleteDeptResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeptResponse.ProtoReflect.Descriptor instead.
func (*DeleteDeptResponse) ProtoMessage ¶
func (*DeleteDeptResponse) ProtoMessage()
func (*DeleteDeptResponse) ProtoReflect ¶
func (x *DeleteDeptResponse) ProtoReflect() protoreflect.Message
func (*DeleteDeptResponse) Reset ¶
func (x *DeleteDeptResponse) Reset()
func (*DeleteDeptResponse) String ¶
func (x *DeleteDeptResponse) String() string
func (*DeleteDeptResponse) Validate ¶
func (m *DeleteDeptResponse) Validate() error
Validate checks the field values on DeleteDeptResponse 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 (*DeleteDeptResponse) ValidateAll ¶
func (m *DeleteDeptResponse) ValidateAll() error
ValidateAll checks the field values on DeleteDeptResponse 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 DeleteDeptResponseMultiError, or nil if none found.
type DeleteDeptResponseMultiError ¶
type DeleteDeptResponseMultiError []error
DeleteDeptResponseMultiError is an error wrapping multiple validation errors returned by DeleteDeptResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteDeptResponseMultiError) AllErrors ¶
func (m DeleteDeptResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDeptResponseMultiError) Error ¶
func (m DeleteDeptResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDeptResponseValidationError ¶
type DeleteDeptResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteDeptResponseValidationError is the validation error returned by DeleteDeptResponse.Validate if the designated constraints aren't met.
func (DeleteDeptResponseValidationError) Cause ¶
func (e DeleteDeptResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteDeptResponseValidationError) Error ¶
func (e DeleteDeptResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDeptResponseValidationError) ErrorName ¶
func (e DeleteDeptResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDeptResponseValidationError) Field ¶
func (e DeleteDeptResponseValidationError) Field() string
Field function returns field value.
func (DeleteDeptResponseValidationError) Key ¶
func (e DeleteDeptResponseValidationError) Key() bool
Key function returns key value.
func (DeleteDeptResponseValidationError) Reason ¶
func (e DeleteDeptResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteMenuRequest ¶
type DeleteMenuRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMenuRequest) Descriptor
deprecated
func (*DeleteMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuRequest.ProtoReflect.Descriptor instead.
func (*DeleteMenuRequest) GetId ¶
func (x *DeleteMenuRequest) GetId() uint32
func (*DeleteMenuRequest) GetOperatorId ¶
func (x *DeleteMenuRequest) GetOperatorId() uint32
func (*DeleteMenuRequest) ProtoMessage ¶
func (*DeleteMenuRequest) ProtoMessage()
func (*DeleteMenuRequest) ProtoReflect ¶
func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message
func (*DeleteMenuRequest) Reset ¶
func (x *DeleteMenuRequest) Reset()
func (*DeleteMenuRequest) String ¶
func (x *DeleteMenuRequest) String() string
func (*DeleteMenuRequest) Validate ¶
func (m *DeleteMenuRequest) Validate() error
Validate checks the field values on DeleteMenuRequest 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 (*DeleteMenuRequest) ValidateAll ¶
func (m *DeleteMenuRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMenuRequest 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 DeleteMenuRequestMultiError, or nil if none found.
type DeleteMenuRequestMultiError ¶
type DeleteMenuRequestMultiError []error
DeleteMenuRequestMultiError is an error wrapping multiple validation errors returned by DeleteMenuRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMenuRequestMultiError) AllErrors ¶
func (m DeleteMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMenuRequestMultiError) Error ¶
func (m DeleteMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMenuRequestValidationError ¶
type DeleteMenuRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMenuRequestValidationError is the validation error returned by DeleteMenuRequest.Validate if the designated constraints aren't met.
func (DeleteMenuRequestValidationError) Cause ¶
func (e DeleteMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMenuRequestValidationError) Error ¶
func (e DeleteMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMenuRequestValidationError) ErrorName ¶
func (e DeleteMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMenuRequestValidationError) Field ¶
func (e DeleteMenuRequestValidationError) Field() string
Field function returns field value.
func (DeleteMenuRequestValidationError) Key ¶
func (e DeleteMenuRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMenuRequestValidationError) Reason ¶
func (e DeleteMenuRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMenuResponse ¶
type DeleteMenuResponse struct {
// contains filtered or unexported fields
}
func (*DeleteMenuResponse) Descriptor
deprecated
func (*DeleteMenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuResponse.ProtoReflect.Descriptor instead.
func (*DeleteMenuResponse) ProtoMessage ¶
func (*DeleteMenuResponse) ProtoMessage()
func (*DeleteMenuResponse) ProtoReflect ¶
func (x *DeleteMenuResponse) ProtoReflect() protoreflect.Message
func (*DeleteMenuResponse) Reset ¶
func (x *DeleteMenuResponse) Reset()
func (*DeleteMenuResponse) String ¶
func (x *DeleteMenuResponse) String() string
func (*DeleteMenuResponse) Validate ¶
func (m *DeleteMenuResponse) Validate() error
Validate checks the field values on DeleteMenuResponse 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 (*DeleteMenuResponse) ValidateAll ¶
func (m *DeleteMenuResponse) ValidateAll() error
ValidateAll checks the field values on DeleteMenuResponse 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 DeleteMenuResponseMultiError, or nil if none found.
type DeleteMenuResponseMultiError ¶
type DeleteMenuResponseMultiError []error
DeleteMenuResponseMultiError is an error wrapping multiple validation errors returned by DeleteMenuResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteMenuResponseMultiError) AllErrors ¶
func (m DeleteMenuResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMenuResponseMultiError) Error ¶
func (m DeleteMenuResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMenuResponseValidationError ¶
type DeleteMenuResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteMenuResponseValidationError is the validation error returned by DeleteMenuResponse.Validate if the designated constraints aren't met.
func (DeleteMenuResponseValidationError) Cause ¶
func (e DeleteMenuResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteMenuResponseValidationError) Error ¶
func (e DeleteMenuResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMenuResponseValidationError) ErrorName ¶
func (e DeleteMenuResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMenuResponseValidationError) Field ¶
func (e DeleteMenuResponseValidationError) Field() string
Field function returns field value.
func (DeleteMenuResponseValidationError) Key ¶
func (e DeleteMenuResponseValidationError) Key() bool
Key function returns key value.
func (DeleteMenuResponseValidationError) Reason ¶
func (e DeleteMenuResponseValidationError) Reason() string
Reason function returns reason value.
type DeletePostRequest ¶
type DeletePostRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*DeletePostRequest) Descriptor
deprecated
func (*DeletePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.
func (*DeletePostRequest) GetId ¶
func (x *DeletePostRequest) GetId() uint32
func (*DeletePostRequest) GetOperatorId ¶
func (x *DeletePostRequest) GetOperatorId() uint32
func (*DeletePostRequest) ProtoMessage ¶
func (*DeletePostRequest) ProtoMessage()
func (*DeletePostRequest) ProtoReflect ¶
func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
func (*DeletePostRequest) Reset ¶
func (x *DeletePostRequest) Reset()
func (*DeletePostRequest) String ¶
func (x *DeletePostRequest) String() string
func (*DeletePostRequest) Validate ¶
func (m *DeletePostRequest) Validate() error
Validate checks the field values on DeletePostRequest 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 (*DeletePostRequest) ValidateAll ¶
func (m *DeletePostRequest) ValidateAll() error
ValidateAll checks the field values on DeletePostRequest 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 DeletePostRequestMultiError, or nil if none found.
type DeletePostRequestMultiError ¶
type DeletePostRequestMultiError []error
DeletePostRequestMultiError is an error wrapping multiple validation errors returned by DeletePostRequest.ValidateAll() if the designated constraints aren't met.
func (DeletePostRequestMultiError) AllErrors ¶
func (m DeletePostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePostRequestMultiError) Error ¶
func (m DeletePostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePostRequestValidationError ¶
type DeletePostRequestValidationError struct {
// contains filtered or unexported fields
}
DeletePostRequestValidationError is the validation error returned by DeletePostRequest.Validate if the designated constraints aren't met.
func (DeletePostRequestValidationError) Cause ¶
func (e DeletePostRequestValidationError) Cause() error
Cause function returns cause value.
func (DeletePostRequestValidationError) Error ¶
func (e DeletePostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePostRequestValidationError) ErrorName ¶
func (e DeletePostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePostRequestValidationError) Field ¶
func (e DeletePostRequestValidationError) Field() string
Field function returns field value.
func (DeletePostRequestValidationError) Key ¶
func (e DeletePostRequestValidationError) Key() bool
Key function returns key value.
func (DeletePostRequestValidationError) Reason ¶
func (e DeletePostRequestValidationError) Reason() string
Reason function returns reason value.
type DeletePostResponse ¶
type DeletePostResponse struct {
// contains filtered or unexported fields
}
func (*DeletePostResponse) Descriptor
deprecated
func (*DeletePostResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostResponse.ProtoReflect.Descriptor instead.
func (*DeletePostResponse) ProtoMessage ¶
func (*DeletePostResponse) ProtoMessage()
func (*DeletePostResponse) ProtoReflect ¶
func (x *DeletePostResponse) ProtoReflect() protoreflect.Message
func (*DeletePostResponse) Reset ¶
func (x *DeletePostResponse) Reset()
func (*DeletePostResponse) String ¶
func (x *DeletePostResponse) String() string
func (*DeletePostResponse) Validate ¶
func (m *DeletePostResponse) Validate() error
Validate checks the field values on DeletePostResponse 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 (*DeletePostResponse) ValidateAll ¶
func (m *DeletePostResponse) ValidateAll() error
ValidateAll checks the field values on DeletePostResponse 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 DeletePostResponseMultiError, or nil if none found.
type DeletePostResponseMultiError ¶
type DeletePostResponseMultiError []error
DeletePostResponseMultiError is an error wrapping multiple validation errors returned by DeletePostResponse.ValidateAll() if the designated constraints aren't met.
func (DeletePostResponseMultiError) AllErrors ¶
func (m DeletePostResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePostResponseMultiError) Error ¶
func (m DeletePostResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePostResponseValidationError ¶
type DeletePostResponseValidationError struct {
// contains filtered or unexported fields
}
DeletePostResponseValidationError is the validation error returned by DeletePostResponse.Validate if the designated constraints aren't met.
func (DeletePostResponseValidationError) Cause ¶
func (e DeletePostResponseValidationError) Cause() error
Cause function returns cause value.
func (DeletePostResponseValidationError) Error ¶
func (e DeletePostResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePostResponseValidationError) ErrorName ¶
func (e DeletePostResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePostResponseValidationError) Field ¶
func (e DeletePostResponseValidationError) Field() string
Field function returns field value.
func (DeletePostResponseValidationError) Key ¶
func (e DeletePostResponseValidationError) Key() bool
Key function returns key value.
func (DeletePostResponseValidationError) Reason ¶
func (e DeletePostResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetId ¶
func (x *DeleteRoleRequest) GetId() uint32
func (*DeleteRoleRequest) GetOperatorId ¶
func (x *DeleteRoleRequest) GetOperatorId() uint32
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
func (*DeleteRoleRequest) Validate ¶
func (m *DeleteRoleRequest) Validate() error
Validate checks the field values on DeleteRoleRequest 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 (*DeleteRoleRequest) ValidateAll ¶
func (m *DeleteRoleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRoleRequest 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 DeleteRoleRequestMultiError, or nil if none found.
type DeleteRoleRequestMultiError ¶
type DeleteRoleRequestMultiError []error
DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleRequestMultiError) AllErrors ¶
func (m DeleteRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleRequestMultiError) Error ¶
func (m DeleteRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleRequestValidationError ¶
type DeleteRoleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.
func (DeleteRoleRequestValidationError) Cause ¶
func (e DeleteRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleRequestValidationError) Error ¶
func (e DeleteRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleRequestValidationError) ErrorName ¶
func (e DeleteRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleRequestValidationError) Field ¶
func (e DeleteRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteRoleRequestValidationError) Key ¶
func (e DeleteRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRoleRequestValidationError) Reason ¶
func (e DeleteRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
func (*DeleteRoleResponse) Validate ¶
func (m *DeleteRoleResponse) Validate() error
Validate checks the field values on DeleteRoleResponse 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 (*DeleteRoleResponse) ValidateAll ¶
func (m *DeleteRoleResponse) ValidateAll() error
ValidateAll checks the field values on DeleteRoleResponse 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 DeleteRoleResponseMultiError, or nil if none found.
type DeleteRoleResponseMultiError ¶
type DeleteRoleResponseMultiError []error
DeleteRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteRoleResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleResponseMultiError) AllErrors ¶
func (m DeleteRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleResponseMultiError) Error ¶
func (m DeleteRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleResponseValidationError ¶
type DeleteRoleResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleResponseValidationError is the validation error returned by DeleteRoleResponse.Validate if the designated constraints aren't met.
func (DeleteRoleResponseValidationError) Cause ¶
func (e DeleteRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleResponseValidationError) Error ¶
func (e DeleteRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleResponseValidationError) ErrorName ¶
func (e DeleteRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleResponseValidationError) Field ¶
func (e DeleteRoleResponseValidationError) Field() string
Field function returns field value.
func (DeleteRoleResponseValidationError) Key ¶
func (e DeleteRoleResponseValidationError) Key() bool
Key function returns key value.
func (DeleteRoleResponseValidationError) Reason ¶
func (e DeleteRoleResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_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) GetOperatorId ¶
func (x *DeleteUserRequest) GetOperatorId() 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 ¶
func (m DeleteUserRequestMultiError) Error() string
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 ¶
func (e DeleteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRequestValidationError) Error ¶
func (e DeleteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRequestValidationError) ErrorName ¶
func (e DeleteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRequestValidationError) Field ¶
func (e DeleteUserRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRequestValidationError) Key ¶
func (e DeleteUserRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRequestValidationError) Reason ¶
func (e DeleteUserRequestValidationError) Reason() string
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 ¶
func (m DeleteUserResponseMultiError) Error() string
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 ¶
func (e DeleteUserResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserResponseValidationError) Error ¶
func (e DeleteUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserResponseValidationError) ErrorName ¶
func (e DeleteUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserResponseValidationError) Field ¶
func (e DeleteUserResponseValidationError) Field() string
Field function returns field value.
func (DeleteUserResponseValidationError) Key ¶
func (e DeleteUserResponseValidationError) Key() bool
Key function returns key value.
func (DeleteUserResponseValidationError) Reason ¶
func (e DeleteUserResponseValidationError) Reason() string
Reason function returns reason value.
type Dept ¶
type Dept struct { CreatedAt *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` Sort *int32 `protobuf:"varint,5,opt,name=sort,proto3,oneof" json:"sort,omitempty"` State *int32 `protobuf:"varint,6,opt,name=state,proto3,oneof" json:"state,omitempty"` Remark *string `protobuf:"bytes,7,opt,name=remark,proto3,oneof" json:"remark,omitempty"` ParentId *uint32 `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` LeaderId *uint32 `protobuf:"varint,9,opt,name=leader_id,json=leaderId,proto3,oneof" json:"leader_id,omitempty"` // contains filtered or unexported fields }
部门模块
func (*Dept) Descriptor
deprecated
func (*Dept) GetCreatedAt ¶
func (*Dept) GetLeaderId ¶
func (*Dept) GetParentId ¶
func (*Dept) GetUpdatedAt ¶
func (*Dept) ProtoMessage ¶
func (*Dept) ProtoMessage()
func (*Dept) ProtoReflect ¶
func (x *Dept) ProtoReflect() protoreflect.Message
func (*Dept) Validate ¶
Validate checks the field values on 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 (*Dept) ValidateAll ¶
ValidateAll checks the field values on 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 DeptMultiError, or nil if none found.
type DeptMultiError ¶
type DeptMultiError []error
DeptMultiError is an error wrapping multiple validation errors returned by Dept.ValidateAll() if the designated constraints aren't met.
func (DeptMultiError) AllErrors ¶
func (m DeptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeptMultiError) Error ¶
func (m DeptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeptServiceClient ¶
type DeptServiceClient interface { CreateDept(ctx context.Context, in *CreateDeptRequest, opts ...grpc.CallOption) (*CreateDeptResponse, error) UpdateDept(ctx context.Context, in *UpdateDeptRequest, opts ...grpc.CallOption) (*UpdateDeptResponse, error) DeleteDept(ctx context.Context, in *DeleteDeptRequest, opts ...grpc.CallOption) (*DeleteDeptResponse, error) GetDept(ctx context.Context, in *GetDeptRequest, opts ...grpc.CallOption) (*Dept, error) ListDept(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListDeptResponse, error) }
DeptServiceClient is the client API for DeptService 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 NewDeptServiceClient ¶
func NewDeptServiceClient(cc grpc.ClientConnInterface) DeptServiceClient
type DeptServiceServer ¶
type DeptServiceServer interface { CreateDept(context.Context, *CreateDeptRequest) (*CreateDeptResponse, error) UpdateDept(context.Context, *UpdateDeptRequest) (*UpdateDeptResponse, error) DeleteDept(context.Context, *DeleteDeptRequest) (*DeleteDeptResponse, error) GetDept(context.Context, *GetDeptRequest) (*Dept, error) ListDept(context.Context, *pagination.PagingRequest) (*ListDeptResponse, error) // contains filtered or unexported methods }
DeptServiceServer is the server API for DeptService service. All implementations must embed UnimplementedDeptServiceServer for forward compatibility
type DeptValidationError ¶
type DeptValidationError struct {
// contains filtered or unexported fields
}
DeptValidationError is the validation error returned by Dept.Validate if the designated constraints aren't met.
func (DeptValidationError) Cause ¶
func (e DeptValidationError) Cause() error
Cause function returns cause value.
func (DeptValidationError) Error ¶
func (e DeptValidationError) Error() string
Error satisfies the builtin error interface
func (DeptValidationError) ErrorName ¶
func (e DeptValidationError) ErrorName() string
ErrorName returns error name.
func (DeptValidationError) Field ¶
func (e DeptValidationError) Field() string
Field function returns field value.
func (DeptValidationError) Key ¶
func (e DeptValidationError) Key() bool
Key function returns key value.
func (DeptValidationError) Reason ¶
func (e DeptValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_UNSPECIFIED ErrorReason = 0 ErrorReason_USER_NOT_FOUND ErrorReason = 11 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetDeptRequest ¶
type GetDeptRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetDeptRequest) Descriptor
deprecated
func (*GetDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeptRequest.ProtoReflect.Descriptor instead.
func (*GetDeptRequest) GetId ¶
func (x *GetDeptRequest) GetId() uint32
func (*GetDeptRequest) ProtoMessage ¶
func (*GetDeptRequest) ProtoMessage()
func (*GetDeptRequest) ProtoReflect ¶
func (x *GetDeptRequest) ProtoReflect() protoreflect.Message
func (*GetDeptRequest) Reset ¶
func (x *GetDeptRequest) Reset()
func (*GetDeptRequest) String ¶
func (x *GetDeptRequest) String() string
func (*GetDeptRequest) Validate ¶
func (m *GetDeptRequest) Validate() error
Validate checks the field values on GetDeptRequest 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 (*GetDeptRequest) ValidateAll ¶
func (m *GetDeptRequest) ValidateAll() error
ValidateAll checks the field values on GetDeptRequest 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 GetDeptRequestMultiError, or nil if none found.
type GetDeptRequestMultiError ¶
type GetDeptRequestMultiError []error
GetDeptRequestMultiError is an error wrapping multiple validation errors returned by GetDeptRequest.ValidateAll() if the designated constraints aren't met.
func (GetDeptRequestMultiError) AllErrors ¶
func (m GetDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDeptRequestMultiError) Error ¶
func (m GetDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDeptRequestValidationError ¶
type GetDeptRequestValidationError struct {
// contains filtered or unexported fields
}
GetDeptRequestValidationError is the validation error returned by GetDeptRequest.Validate if the designated constraints aren't met.
func (GetDeptRequestValidationError) Cause ¶
func (e GetDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDeptRequestValidationError) Error ¶
func (e GetDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDeptRequestValidationError) ErrorName ¶
func (e GetDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDeptRequestValidationError) Field ¶
func (e GetDeptRequestValidationError) Field() string
Field function returns field value.
func (GetDeptRequestValidationError) Key ¶
func (e GetDeptRequestValidationError) Key() bool
Key function returns key value.
func (GetDeptRequestValidationError) Reason ¶
func (e GetDeptRequestValidationError) Reason() string
Reason function returns reason value.
type GetDeptResponse ¶
type GetDeptResponse struct {
// contains filtered or unexported fields
}
func (*GetDeptResponse) Descriptor
deprecated
func (*GetDeptResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDeptResponse.ProtoReflect.Descriptor instead.
func (*GetDeptResponse) ProtoMessage ¶
func (*GetDeptResponse) ProtoMessage()
func (*GetDeptResponse) ProtoReflect ¶
func (x *GetDeptResponse) ProtoReflect() protoreflect.Message
func (*GetDeptResponse) Reset ¶
func (x *GetDeptResponse) Reset()
func (*GetDeptResponse) String ¶
func (x *GetDeptResponse) String() string
func (*GetDeptResponse) Validate ¶
func (m *GetDeptResponse) Validate() error
Validate checks the field values on GetDeptResponse 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 (*GetDeptResponse) ValidateAll ¶
func (m *GetDeptResponse) ValidateAll() error
ValidateAll checks the field values on GetDeptResponse 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 GetDeptResponseMultiError, or nil if none found.
type GetDeptResponseMultiError ¶
type GetDeptResponseMultiError []error
GetDeptResponseMultiError is an error wrapping multiple validation errors returned by GetDeptResponse.ValidateAll() if the designated constraints aren't met.
func (GetDeptResponseMultiError) AllErrors ¶
func (m GetDeptResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDeptResponseMultiError) Error ¶
func (m GetDeptResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDeptResponseValidationError ¶
type GetDeptResponseValidationError struct {
// contains filtered or unexported fields
}
GetDeptResponseValidationError is the validation error returned by GetDeptResponse.Validate if the designated constraints aren't met.
func (GetDeptResponseValidationError) Cause ¶
func (e GetDeptResponseValidationError) Cause() error
Cause function returns cause value.
func (GetDeptResponseValidationError) Error ¶
func (e GetDeptResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetDeptResponseValidationError) ErrorName ¶
func (e GetDeptResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetDeptResponseValidationError) Field ¶
func (e GetDeptResponseValidationError) Field() string
Field function returns field value.
func (GetDeptResponseValidationError) Key ¶
func (e GetDeptResponseValidationError) Key() bool
Key function returns key value.
func (GetDeptResponseValidationError) Reason ¶
func (e GetDeptResponseValidationError) Reason() string
Reason function returns reason value.
type GetMenuRequest ¶
type GetMenuRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMenuRequest) Descriptor
deprecated
func (*GetMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMenuRequest.ProtoReflect.Descriptor instead.
func (*GetMenuRequest) GetId ¶
func (x *GetMenuRequest) GetId() uint32
func (*GetMenuRequest) ProtoMessage ¶
func (*GetMenuRequest) ProtoMessage()
func (*GetMenuRequest) ProtoReflect ¶
func (x *GetMenuRequest) ProtoReflect() protoreflect.Message
func (*GetMenuRequest) Reset ¶
func (x *GetMenuRequest) Reset()
func (*GetMenuRequest) String ¶
func (x *GetMenuRequest) String() string
func (*GetMenuRequest) Validate ¶
func (m *GetMenuRequest) Validate() error
Validate checks the field values on GetMenuRequest 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 (*GetMenuRequest) ValidateAll ¶
func (m *GetMenuRequest) ValidateAll() error
ValidateAll checks the field values on GetMenuRequest 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 GetMenuRequestMultiError, or nil if none found.
type GetMenuRequestMultiError ¶
type GetMenuRequestMultiError []error
GetMenuRequestMultiError is an error wrapping multiple validation errors returned by GetMenuRequest.ValidateAll() if the designated constraints aren't met.
func (GetMenuRequestMultiError) AllErrors ¶
func (m GetMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMenuRequestMultiError) Error ¶
func (m GetMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMenuRequestValidationError ¶
type GetMenuRequestValidationError struct {
// contains filtered or unexported fields
}
GetMenuRequestValidationError is the validation error returned by GetMenuRequest.Validate if the designated constraints aren't met.
func (GetMenuRequestValidationError) Cause ¶
func (e GetMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMenuRequestValidationError) Error ¶
func (e GetMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMenuRequestValidationError) ErrorName ¶
func (e GetMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMenuRequestValidationError) Field ¶
func (e GetMenuRequestValidationError) Field() string
Field function returns field value.
func (GetMenuRequestValidationError) Key ¶
func (e GetMenuRequestValidationError) Key() bool
Key function returns key value.
func (GetMenuRequestValidationError) Reason ¶
func (e GetMenuRequestValidationError) Reason() string
Reason function returns reason value.
type GetMenuResponse ¶
type GetMenuResponse struct {
// contains filtered or unexported fields
}
func (*GetMenuResponse) Descriptor
deprecated
func (*GetMenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMenuResponse.ProtoReflect.Descriptor instead.
func (*GetMenuResponse) ProtoMessage ¶
func (*GetMenuResponse) ProtoMessage()
func (*GetMenuResponse) ProtoReflect ¶
func (x *GetMenuResponse) ProtoReflect() protoreflect.Message
func (*GetMenuResponse) Reset ¶
func (x *GetMenuResponse) Reset()
func (*GetMenuResponse) String ¶
func (x *GetMenuResponse) String() string
func (*GetMenuResponse) Validate ¶
func (m *GetMenuResponse) Validate() error
Validate checks the field values on GetMenuResponse 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 (*GetMenuResponse) ValidateAll ¶
func (m *GetMenuResponse) ValidateAll() error
ValidateAll checks the field values on GetMenuResponse 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 GetMenuResponseMultiError, or nil if none found.
type GetMenuResponseMultiError ¶
type GetMenuResponseMultiError []error
GetMenuResponseMultiError is an error wrapping multiple validation errors returned by GetMenuResponse.ValidateAll() if the designated constraints aren't met.
func (GetMenuResponseMultiError) AllErrors ¶
func (m GetMenuResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMenuResponseMultiError) Error ¶
func (m GetMenuResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMenuResponseValidationError ¶
type GetMenuResponseValidationError struct {
// contains filtered or unexported fields
}
GetMenuResponseValidationError is the validation error returned by GetMenuResponse.Validate if the designated constraints aren't met.
func (GetMenuResponseValidationError) Cause ¶
func (e GetMenuResponseValidationError) Cause() error
Cause function returns cause value.
func (GetMenuResponseValidationError) Error ¶
func (e GetMenuResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetMenuResponseValidationError) ErrorName ¶
func (e GetMenuResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetMenuResponseValidationError) Field ¶
func (e GetMenuResponseValidationError) Field() string
Field function returns field value.
func (GetMenuResponseValidationError) Key ¶
func (e GetMenuResponseValidationError) Key() bool
Key function returns key value.
func (GetMenuResponseValidationError) Reason ¶
func (e GetMenuResponseValidationError) Reason() string
Reason function returns reason value.
type GetPostRequest ¶
type GetPostRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetPostRequest) Descriptor
deprecated
func (*GetPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) GetId ¶
func (x *GetPostRequest) GetId() uint32
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) ProtoReflect ¶
func (x *GetPostRequest) ProtoReflect() protoreflect.Message
func (*GetPostRequest) Reset ¶
func (x *GetPostRequest) Reset()
func (*GetPostRequest) String ¶
func (x *GetPostRequest) String() string
func (*GetPostRequest) Validate ¶
func (m *GetPostRequest) Validate() error
Validate checks the field values on GetPostRequest 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 (*GetPostRequest) ValidateAll ¶
func (m *GetPostRequest) ValidateAll() error
ValidateAll checks the field values on GetPostRequest 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 GetPostRequestMultiError, or nil if none found.
type GetPostRequestMultiError ¶
type GetPostRequestMultiError []error
GetPostRequestMultiError is an error wrapping multiple validation errors returned by GetPostRequest.ValidateAll() if the designated constraints aren't met.
func (GetPostRequestMultiError) AllErrors ¶
func (m GetPostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPostRequestMultiError) Error ¶
func (m GetPostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPostRequestValidationError ¶
type GetPostRequestValidationError struct {
// contains filtered or unexported fields
}
GetPostRequestValidationError is the validation error returned by GetPostRequest.Validate if the designated constraints aren't met.
func (GetPostRequestValidationError) Cause ¶
func (e GetPostRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPostRequestValidationError) Error ¶
func (e GetPostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPostRequestValidationError) ErrorName ¶
func (e GetPostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPostRequestValidationError) Field ¶
func (e GetPostRequestValidationError) Field() string
Field function returns field value.
func (GetPostRequestValidationError) Key ¶
func (e GetPostRequestValidationError) Key() bool
Key function returns key value.
func (GetPostRequestValidationError) Reason ¶
func (e GetPostRequestValidationError) Reason() string
Reason function returns reason value.
type GetPostResponse ¶
type GetPostResponse struct {
// contains filtered or unexported fields
}
func (*GetPostResponse) Descriptor
deprecated
func (*GetPostResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPostResponse.ProtoReflect.Descriptor instead.
func (*GetPostResponse) ProtoMessage ¶
func (*GetPostResponse) ProtoMessage()
func (*GetPostResponse) ProtoReflect ¶
func (x *GetPostResponse) ProtoReflect() protoreflect.Message
func (*GetPostResponse) Reset ¶
func (x *GetPostResponse) Reset()
func (*GetPostResponse) String ¶
func (x *GetPostResponse) String() string
func (*GetPostResponse) Validate ¶
func (m *GetPostResponse) Validate() error
Validate checks the field values on GetPostResponse 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 (*GetPostResponse) ValidateAll ¶
func (m *GetPostResponse) ValidateAll() error
ValidateAll checks the field values on GetPostResponse 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 GetPostResponseMultiError, or nil if none found.
type GetPostResponseMultiError ¶
type GetPostResponseMultiError []error
GetPostResponseMultiError is an error wrapping multiple validation errors returned by GetPostResponse.ValidateAll() if the designated constraints aren't met.
func (GetPostResponseMultiError) AllErrors ¶
func (m GetPostResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPostResponseMultiError) Error ¶
func (m GetPostResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPostResponseValidationError ¶
type GetPostResponseValidationError struct {
// contains filtered or unexported fields
}
GetPostResponseValidationError is the validation error returned by GetPostResponse.Validate if the designated constraints aren't met.
func (GetPostResponseValidationError) Cause ¶
func (e GetPostResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPostResponseValidationError) Error ¶
func (e GetPostResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPostResponseValidationError) ErrorName ¶
func (e GetPostResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPostResponseValidationError) Field ¶
func (e GetPostResponseValidationError) Field() string
Field function returns field value.
func (GetPostResponseValidationError) Key ¶
func (e GetPostResponseValidationError) Key() bool
Key function returns key value.
func (GetPostResponseValidationError) Reason ¶
func (e GetPostResponseValidationError) Reason() string
Reason function returns reason value.
type GetRoleRequest ¶
type GetRoleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() uint32
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
func (*GetRoleRequest) Validate ¶
func (m *GetRoleRequest) Validate() error
Validate checks the field values on GetRoleRequest 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 (*GetRoleRequest) ValidateAll ¶
func (m *GetRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetRoleRequest 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 GetRoleRequestMultiError, or nil if none found.
type GetRoleRequestMultiError ¶
type GetRoleRequestMultiError []error
GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetRoleRequestMultiError) AllErrors ¶
func (m GetRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleRequestMultiError) Error ¶
func (m GetRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleRequestValidationError ¶
type GetRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.
func (GetRoleRequestValidationError) Cause ¶
func (e GetRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRoleRequestValidationError) Error ¶
func (e GetRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleRequestValidationError) ErrorName ¶
func (e GetRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleRequestValidationError) Field ¶
func (e GetRoleRequestValidationError) Field() string
Field function returns field value.
func (GetRoleRequestValidationError) Key ¶
func (e GetRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetRoleRequestValidationError) Reason ¶
func (e GetRoleRequestValidationError) Reason() string
Reason function returns reason value.
type GetRoleResponse ¶
type GetRoleResponse struct {
// contains filtered or unexported fields
}
func (*GetRoleResponse) Descriptor
deprecated
func (*GetRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) ProtoReflect ¶
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
func (*GetRoleResponse) Reset ¶
func (x *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (x *GetRoleResponse) String() string
func (*GetRoleResponse) Validate ¶
func (m *GetRoleResponse) Validate() error
Validate checks the field values on GetRoleResponse 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 (*GetRoleResponse) ValidateAll ¶
func (m *GetRoleResponse) ValidateAll() error
ValidateAll checks the field values on GetRoleResponse 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 GetRoleResponseMultiError, or nil if none found.
type GetRoleResponseMultiError ¶
type GetRoleResponseMultiError []error
GetRoleResponseMultiError is an error wrapping multiple validation errors returned by GetRoleResponse.ValidateAll() if the designated constraints aren't met.
func (GetRoleResponseMultiError) AllErrors ¶
func (m GetRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleResponseMultiError) Error ¶
func (m GetRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleResponseValidationError ¶
type GetRoleResponseValidationError struct {
// contains filtered or unexported fields
}
GetRoleResponseValidationError is the validation error returned by GetRoleResponse.Validate if the designated constraints aren't met.
func (GetRoleResponseValidationError) Cause ¶
func (e GetRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (GetRoleResponseValidationError) Error ¶
func (e GetRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleResponseValidationError) ErrorName ¶
func (e GetRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleResponseValidationError) Field ¶
func (e GetRoleResponseValidationError) Field() string
Field function returns field value.
func (GetRoleResponseValidationError) Key ¶
func (e GetRoleResponseValidationError) Key() bool
Key function returns key value.
func (GetRoleResponseValidationError) Reason ¶
func (e GetRoleResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserByNameRequest ¶
type GetUserByNameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetUserByNameRequest) Descriptor
deprecated
func (*GetUserByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByNameRequest.ProtoReflect.Descriptor instead.
func (*GetUserByNameRequest) GetName ¶
func (x *GetUserByNameRequest) GetName() string
func (*GetUserByNameRequest) ProtoMessage ¶
func (*GetUserByNameRequest) ProtoMessage()
func (*GetUserByNameRequest) ProtoReflect ¶
func (x *GetUserByNameRequest) ProtoReflect() protoreflect.Message
func (*GetUserByNameRequest) Reset ¶
func (x *GetUserByNameRequest) Reset()
func (*GetUserByNameRequest) String ¶
func (x *GetUserByNameRequest) String() string
func (*GetUserByNameRequest) Validate ¶
func (m *GetUserByNameRequest) Validate() error
Validate checks the field values on GetUserByNameRequest 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 (*GetUserByNameRequest) ValidateAll ¶
func (m *GetUserByNameRequest) ValidateAll() error
ValidateAll checks the field values on GetUserByNameRequest 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 GetUserByNameRequestMultiError, or nil if none found.
type GetUserByNameRequestMultiError ¶
type GetUserByNameRequestMultiError []error
GetUserByNameRequestMultiError is an error wrapping multiple validation errors returned by GetUserByNameRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserByNameRequestMultiError) AllErrors ¶
func (m GetUserByNameRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserByNameRequestMultiError) Error ¶
func (m GetUserByNameRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserByNameRequestValidationError ¶
type GetUserByNameRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserByNameRequestValidationError is the validation error returned by GetUserByNameRequest.Validate if the designated constraints aren't met.
func (GetUserByNameRequestValidationError) Cause ¶
func (e GetUserByNameRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserByNameRequestValidationError) Error ¶
func (e GetUserByNameRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserByNameRequestValidationError) ErrorName ¶
func (e GetUserByNameRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserByNameRequestValidationError) Field ¶
func (e GetUserByNameRequestValidationError) Field() string
Field function returns field value.
func (GetUserByNameRequestValidationError) Key ¶
func (e GetUserByNameRequestValidationError) Key() bool
Key function returns key value.
func (GetUserByNameRequestValidationError) Reason ¶
func (e GetUserByNameRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() uint32
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 ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserResponse ¶
type GetUserResponse struct {
// contains filtered or unexported fields
}
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
func (*GetUserResponse) Validate ¶
func (m *GetUserResponse) Validate() error
Validate checks the field values on GetUserResponse 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 (*GetUserResponse) ValidateAll ¶
func (m *GetUserResponse) ValidateAll() error
ValidateAll checks the field values on GetUserResponse 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 GetUserResponseMultiError, or nil if none found.
type GetUserResponseMultiError ¶
type GetUserResponseMultiError []error
GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserResponseMultiError) AllErrors ¶
func (m GetUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserResponseMultiError) Error ¶
func (m GetUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserResponseValidationError ¶
type GetUserResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.
func (GetUserResponseValidationError) Cause ¶
func (e GetUserResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserResponseValidationError) Error ¶
func (e GetUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserResponseValidationError) ErrorName ¶
func (e GetUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserResponseValidationError) Field ¶
func (e GetUserResponseValidationError) Field() string
Field function returns field value.
func (GetUserResponseValidationError) Key ¶
func (e GetUserResponseValidationError) Key() bool
Key function returns key value.
func (GetUserResponseValidationError) Reason ¶
func (e GetUserResponseValidationError) Reason() string
Reason function returns reason value.
type IsAuthorizedRequest ¶
type IsAuthorizedRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
鉴权 - 请求
func (*IsAuthorizedRequest) Descriptor
deprecated
func (*IsAuthorizedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsAuthorizedRequest.ProtoReflect.Descriptor instead.
func (*IsAuthorizedRequest) GetAction ¶
func (x *IsAuthorizedRequest) GetAction() string
func (*IsAuthorizedRequest) GetProject ¶
func (x *IsAuthorizedRequest) GetProject() string
func (*IsAuthorizedRequest) GetResource ¶
func (x *IsAuthorizedRequest) GetResource() string
func (*IsAuthorizedRequest) GetSubject ¶
func (x *IsAuthorizedRequest) GetSubject() string
func (*IsAuthorizedRequest) ProtoMessage ¶
func (*IsAuthorizedRequest) ProtoMessage()
func (*IsAuthorizedRequest) ProtoReflect ¶
func (x *IsAuthorizedRequest) ProtoReflect() protoreflect.Message
func (*IsAuthorizedRequest) Reset ¶
func (x *IsAuthorizedRequest) Reset()
func (*IsAuthorizedRequest) String ¶
func (x *IsAuthorizedRequest) String() string
func (*IsAuthorizedRequest) Validate ¶
func (m *IsAuthorizedRequest) Validate() error
Validate checks the field values on IsAuthorizedRequest 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 (*IsAuthorizedRequest) ValidateAll ¶
func (m *IsAuthorizedRequest) ValidateAll() error
ValidateAll checks the field values on IsAuthorizedRequest 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 IsAuthorizedRequestMultiError, or nil if none found.
type IsAuthorizedRequestMultiError ¶
type IsAuthorizedRequestMultiError []error
IsAuthorizedRequestMultiError is an error wrapping multiple validation errors returned by IsAuthorizedRequest.ValidateAll() if the designated constraints aren't met.
func (IsAuthorizedRequestMultiError) AllErrors ¶
func (m IsAuthorizedRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsAuthorizedRequestMultiError) Error ¶
func (m IsAuthorizedRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsAuthorizedRequestValidationError ¶
type IsAuthorizedRequestValidationError struct {
// contains filtered or unexported fields
}
IsAuthorizedRequestValidationError is the validation error returned by IsAuthorizedRequest.Validate if the designated constraints aren't met.
func (IsAuthorizedRequestValidationError) Cause ¶
func (e IsAuthorizedRequestValidationError) Cause() error
Cause function returns cause value.
func (IsAuthorizedRequestValidationError) Error ¶
func (e IsAuthorizedRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IsAuthorizedRequestValidationError) ErrorName ¶
func (e IsAuthorizedRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IsAuthorizedRequestValidationError) Field ¶
func (e IsAuthorizedRequestValidationError) Field() string
Field function returns field value.
func (IsAuthorizedRequestValidationError) Key ¶
func (e IsAuthorizedRequestValidationError) Key() bool
Key function returns key value.
func (IsAuthorizedRequestValidationError) Reason ¶
func (e IsAuthorizedRequestValidationError) Reason() string
Reason function returns reason value.
type IsAuthorizedResponse ¶
type IsAuthorizedResponse struct {
// contains filtered or unexported fields
}
鉴权 - 回应
func (*IsAuthorizedResponse) Descriptor
deprecated
func (*IsAuthorizedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsAuthorizedResponse.ProtoReflect.Descriptor instead.
func (*IsAuthorizedResponse) ProtoMessage ¶
func (*IsAuthorizedResponse) ProtoMessage()
func (*IsAuthorizedResponse) ProtoReflect ¶
func (x *IsAuthorizedResponse) ProtoReflect() protoreflect.Message
func (*IsAuthorizedResponse) Reset ¶
func (x *IsAuthorizedResponse) Reset()
func (*IsAuthorizedResponse) String ¶
func (x *IsAuthorizedResponse) String() string
func (*IsAuthorizedResponse) Validate ¶
func (m *IsAuthorizedResponse) Validate() error
Validate checks the field values on IsAuthorizedResponse 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 (*IsAuthorizedResponse) ValidateAll ¶
func (m *IsAuthorizedResponse) ValidateAll() error
ValidateAll checks the field values on IsAuthorizedResponse 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 IsAuthorizedResponseMultiError, or nil if none found.
type IsAuthorizedResponseMultiError ¶
type IsAuthorizedResponseMultiError []error
IsAuthorizedResponseMultiError is an error wrapping multiple validation errors returned by IsAuthorizedResponse.ValidateAll() if the designated constraints aren't met.
func (IsAuthorizedResponseMultiError) AllErrors ¶
func (m IsAuthorizedResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsAuthorizedResponseMultiError) Error ¶
func (m IsAuthorizedResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsAuthorizedResponseValidationError ¶
type IsAuthorizedResponseValidationError struct {
// contains filtered or unexported fields
}
IsAuthorizedResponseValidationError is the validation error returned by IsAuthorizedResponse.Validate if the designated constraints aren't met.
func (IsAuthorizedResponseValidationError) Cause ¶
func (e IsAuthorizedResponseValidationError) Cause() error
Cause function returns cause value.
func (IsAuthorizedResponseValidationError) Error ¶
func (e IsAuthorizedResponseValidationError) Error() string
Error satisfies the builtin error interface
func (IsAuthorizedResponseValidationError) ErrorName ¶
func (e IsAuthorizedResponseValidationError) ErrorName() string
ErrorName returns error name.
func (IsAuthorizedResponseValidationError) Field ¶
func (e IsAuthorizedResponseValidationError) Field() string
Field function returns field value.
func (IsAuthorizedResponseValidationError) Key ¶
func (e IsAuthorizedResponseValidationError) Key() bool
Key function returns key value.
func (IsAuthorizedResponseValidationError) Reason ¶
func (e IsAuthorizedResponseValidationError) Reason() string
Reason function returns reason value.
type ListDeptRequest ¶
type ListDeptRequest struct {
// contains filtered or unexported fields
}
func (*ListDeptRequest) Descriptor
deprecated
func (*ListDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDeptRequest.ProtoReflect.Descriptor instead.
func (*ListDeptRequest) ProtoMessage ¶
func (*ListDeptRequest) ProtoMessage()
func (*ListDeptRequest) ProtoReflect ¶
func (x *ListDeptRequest) ProtoReflect() protoreflect.Message
func (*ListDeptRequest) Reset ¶
func (x *ListDeptRequest) Reset()
func (*ListDeptRequest) String ¶
func (x *ListDeptRequest) String() string
func (*ListDeptRequest) Validate ¶
func (m *ListDeptRequest) Validate() error
Validate checks the field values on ListDeptRequest 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 (*ListDeptRequest) ValidateAll ¶
func (m *ListDeptRequest) ValidateAll() error
ValidateAll checks the field values on ListDeptRequest 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 ListDeptRequestMultiError, or nil if none found.
type ListDeptRequestMultiError ¶
type ListDeptRequestMultiError []error
ListDeptRequestMultiError is an error wrapping multiple validation errors returned by ListDeptRequest.ValidateAll() if the designated constraints aren't met.
func (ListDeptRequestMultiError) AllErrors ¶
func (m ListDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDeptRequestMultiError) Error ¶
func (m ListDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDeptRequestValidationError ¶
type ListDeptRequestValidationError struct {
// contains filtered or unexported fields
}
ListDeptRequestValidationError is the validation error returned by ListDeptRequest.Validate if the designated constraints aren't met.
func (ListDeptRequestValidationError) Cause ¶
func (e ListDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (ListDeptRequestValidationError) Error ¶
func (e ListDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListDeptRequestValidationError) ErrorName ¶
func (e ListDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListDeptRequestValidationError) Field ¶
func (e ListDeptRequestValidationError) Field() string
Field function returns field value.
func (ListDeptRequestValidationError) Key ¶
func (e ListDeptRequestValidationError) Key() bool
Key function returns key value.
func (ListDeptRequestValidationError) Reason ¶
func (e ListDeptRequestValidationError) Reason() string
Reason function returns reason value.
type ListDeptResponse ¶
type ListDeptResponse struct { Items []*Dept `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListDeptResponse) Descriptor
deprecated
func (*ListDeptResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDeptResponse.ProtoReflect.Descriptor instead.
func (*ListDeptResponse) GetItems ¶
func (x *ListDeptResponse) GetItems() []*Dept
func (*ListDeptResponse) GetTotal ¶
func (x *ListDeptResponse) GetTotal() int32
func (*ListDeptResponse) ProtoMessage ¶
func (*ListDeptResponse) ProtoMessage()
func (*ListDeptResponse) ProtoReflect ¶
func (x *ListDeptResponse) ProtoReflect() protoreflect.Message
func (*ListDeptResponse) Reset ¶
func (x *ListDeptResponse) Reset()
func (*ListDeptResponse) String ¶
func (x *ListDeptResponse) String() string
func (*ListDeptResponse) Validate ¶
func (m *ListDeptResponse) Validate() error
Validate checks the field values on ListDeptResponse 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 (*ListDeptResponse) ValidateAll ¶
func (m *ListDeptResponse) ValidateAll() error
ValidateAll checks the field values on ListDeptResponse 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 ListDeptResponseMultiError, or nil if none found.
type ListDeptResponseMultiError ¶
type ListDeptResponseMultiError []error
ListDeptResponseMultiError is an error wrapping multiple validation errors returned by ListDeptResponse.ValidateAll() if the designated constraints aren't met.
func (ListDeptResponseMultiError) AllErrors ¶
func (m ListDeptResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDeptResponseMultiError) Error ¶
func (m ListDeptResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDeptResponseValidationError ¶
type ListDeptResponseValidationError struct {
// contains filtered or unexported fields
}
ListDeptResponseValidationError is the validation error returned by ListDeptResponse.Validate if the designated constraints aren't met.
func (ListDeptResponseValidationError) Cause ¶
func (e ListDeptResponseValidationError) Cause() error
Cause function returns cause value.
func (ListDeptResponseValidationError) Error ¶
func (e ListDeptResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListDeptResponseValidationError) ErrorName ¶
func (e ListDeptResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListDeptResponseValidationError) Field ¶
func (e ListDeptResponseValidationError) Field() string
Field function returns field value.
func (ListDeptResponseValidationError) Key ¶
func (e ListDeptResponseValidationError) Key() bool
Key function returns key value.
func (ListDeptResponseValidationError) Reason ¶
func (e ListDeptResponseValidationError) Reason() string
Reason function returns reason value.
type ListMenuRequest ¶
type ListMenuRequest struct {
// contains filtered or unexported fields
}
func (*ListMenuRequest) Descriptor
deprecated
func (*ListMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuRequest.ProtoReflect.Descriptor instead.
func (*ListMenuRequest) ProtoMessage ¶
func (*ListMenuRequest) ProtoMessage()
func (*ListMenuRequest) ProtoReflect ¶
func (x *ListMenuRequest) ProtoReflect() protoreflect.Message
func (*ListMenuRequest) Reset ¶
func (x *ListMenuRequest) Reset()
func (*ListMenuRequest) String ¶
func (x *ListMenuRequest) String() string
func (*ListMenuRequest) Validate ¶
func (m *ListMenuRequest) Validate() error
Validate checks the field values on ListMenuRequest 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 (*ListMenuRequest) ValidateAll ¶
func (m *ListMenuRequest) ValidateAll() error
ValidateAll checks the field values on ListMenuRequest 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 ListMenuRequestMultiError, or nil if none found.
type ListMenuRequestMultiError ¶
type ListMenuRequestMultiError []error
ListMenuRequestMultiError is an error wrapping multiple validation errors returned by ListMenuRequest.ValidateAll() if the designated constraints aren't met.
func (ListMenuRequestMultiError) AllErrors ¶
func (m ListMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuRequestMultiError) Error ¶
func (m ListMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuRequestValidationError ¶
type ListMenuRequestValidationError struct {
// contains filtered or unexported fields
}
ListMenuRequestValidationError is the validation error returned by ListMenuRequest.Validate if the designated constraints aren't met.
func (ListMenuRequestValidationError) Cause ¶
func (e ListMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (ListMenuRequestValidationError) Error ¶
func (e ListMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuRequestValidationError) ErrorName ¶
func (e ListMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuRequestValidationError) Field ¶
func (e ListMenuRequestValidationError) Field() string
Field function returns field value.
func (ListMenuRequestValidationError) Key ¶
func (e ListMenuRequestValidationError) Key() bool
Key function returns key value.
func (ListMenuRequestValidationError) Reason ¶
func (e ListMenuRequestValidationError) Reason() string
Reason function returns reason value.
type ListMenuResponse ¶
type ListMenuResponse struct { Items []*Menu `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListMenuResponse) Descriptor
deprecated
func (*ListMenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuResponse.ProtoReflect.Descriptor instead.
func (*ListMenuResponse) GetItems ¶
func (x *ListMenuResponse) GetItems() []*Menu
func (*ListMenuResponse) GetTotal ¶
func (x *ListMenuResponse) GetTotal() int32
func (*ListMenuResponse) ProtoMessage ¶
func (*ListMenuResponse) ProtoMessage()
func (*ListMenuResponse) ProtoReflect ¶
func (x *ListMenuResponse) ProtoReflect() protoreflect.Message
func (*ListMenuResponse) Reset ¶
func (x *ListMenuResponse) Reset()
func (*ListMenuResponse) String ¶
func (x *ListMenuResponse) String() string
func (*ListMenuResponse) Validate ¶
func (m *ListMenuResponse) Validate() error
Validate checks the field values on ListMenuResponse 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 (*ListMenuResponse) ValidateAll ¶
func (m *ListMenuResponse) ValidateAll() error
ValidateAll checks the field values on ListMenuResponse 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 ListMenuResponseMultiError, or nil if none found.
type ListMenuResponseMultiError ¶
type ListMenuResponseMultiError []error
ListMenuResponseMultiError is an error wrapping multiple validation errors returned by ListMenuResponse.ValidateAll() if the designated constraints aren't met.
func (ListMenuResponseMultiError) AllErrors ¶
func (m ListMenuResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuResponseMultiError) Error ¶
func (m ListMenuResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuResponseValidationError ¶
type ListMenuResponseValidationError struct {
// contains filtered or unexported fields
}
ListMenuResponseValidationError is the validation error returned by ListMenuResponse.Validate if the designated constraints aren't met.
func (ListMenuResponseValidationError) Cause ¶
func (e ListMenuResponseValidationError) Cause() error
Cause function returns cause value.
func (ListMenuResponseValidationError) Error ¶
func (e ListMenuResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuResponseValidationError) ErrorName ¶
func (e ListMenuResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuResponseValidationError) Field ¶
func (e ListMenuResponseValidationError) Field() string
Field function returns field value.
func (ListMenuResponseValidationError) Key ¶
func (e ListMenuResponseValidationError) Key() bool
Key function returns key value.
func (ListMenuResponseValidationError) Reason ¶
func (e ListMenuResponseValidationError) Reason() string
Reason function returns reason value.
type ListPostRequest ¶
type ListPostRequest struct {
// contains filtered or unexported fields
}
func (*ListPostRequest) Descriptor
deprecated
func (*ListPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPostRequest.ProtoReflect.Descriptor instead.
func (*ListPostRequest) ProtoMessage ¶
func (*ListPostRequest) ProtoMessage()
func (*ListPostRequest) ProtoReflect ¶
func (x *ListPostRequest) ProtoReflect() protoreflect.Message
func (*ListPostRequest) Reset ¶
func (x *ListPostRequest) Reset()
func (*ListPostRequest) String ¶
func (x *ListPostRequest) String() string
func (*ListPostRequest) Validate ¶
func (m *ListPostRequest) Validate() error
Validate checks the field values on ListPostRequest 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 (*ListPostRequest) ValidateAll ¶
func (m *ListPostRequest) ValidateAll() error
ValidateAll checks the field values on ListPostRequest 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 ListPostRequestMultiError, or nil if none found.
type ListPostRequestMultiError ¶
type ListPostRequestMultiError []error
ListPostRequestMultiError is an error wrapping multiple validation errors returned by ListPostRequest.ValidateAll() if the designated constraints aren't met.
func (ListPostRequestMultiError) AllErrors ¶
func (m ListPostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPostRequestMultiError) Error ¶
func (m ListPostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPostRequestValidationError ¶
type ListPostRequestValidationError struct {
// contains filtered or unexported fields
}
ListPostRequestValidationError is the validation error returned by ListPostRequest.Validate if the designated constraints aren't met.
func (ListPostRequestValidationError) Cause ¶
func (e ListPostRequestValidationError) Cause() error
Cause function returns cause value.
func (ListPostRequestValidationError) Error ¶
func (e ListPostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPostRequestValidationError) ErrorName ¶
func (e ListPostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPostRequestValidationError) Field ¶
func (e ListPostRequestValidationError) Field() string
Field function returns field value.
func (ListPostRequestValidationError) Key ¶
func (e ListPostRequestValidationError) Key() bool
Key function returns key value.
func (ListPostRequestValidationError) Reason ¶
func (e ListPostRequestValidationError) Reason() string
Reason function returns reason value.
type ListPostResponse ¶
type ListPostResponse struct { Items []*Post `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListPostResponse) Descriptor
deprecated
func (*ListPostResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPostResponse.ProtoReflect.Descriptor instead.
func (*ListPostResponse) GetItems ¶
func (x *ListPostResponse) GetItems() []*Post
func (*ListPostResponse) GetTotal ¶
func (x *ListPostResponse) GetTotal() int32
func (*ListPostResponse) ProtoMessage ¶
func (*ListPostResponse) ProtoMessage()
func (*ListPostResponse) ProtoReflect ¶
func (x *ListPostResponse) ProtoReflect() protoreflect.Message
func (*ListPostResponse) Reset ¶
func (x *ListPostResponse) Reset()
func (*ListPostResponse) String ¶
func (x *ListPostResponse) String() string
func (*ListPostResponse) Validate ¶
func (m *ListPostResponse) Validate() error
Validate checks the field values on ListPostResponse 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 (*ListPostResponse) ValidateAll ¶
func (m *ListPostResponse) ValidateAll() error
ValidateAll checks the field values on ListPostResponse 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 ListPostResponseMultiError, or nil if none found.
type ListPostResponseMultiError ¶
type ListPostResponseMultiError []error
ListPostResponseMultiError is an error wrapping multiple validation errors returned by ListPostResponse.ValidateAll() if the designated constraints aren't met.
func (ListPostResponseMultiError) AllErrors ¶
func (m ListPostResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPostResponseMultiError) Error ¶
func (m ListPostResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPostResponseValidationError ¶
type ListPostResponseValidationError struct {
// contains filtered or unexported fields
}
ListPostResponseValidationError is the validation error returned by ListPostResponse.Validate if the designated constraints aren't met.
func (ListPostResponseValidationError) Cause ¶
func (e ListPostResponseValidationError) Cause() error
Cause function returns cause value.
func (ListPostResponseValidationError) Error ¶
func (e ListPostResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListPostResponseValidationError) ErrorName ¶
func (e ListPostResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListPostResponseValidationError) Field ¶
func (e ListPostResponseValidationError) Field() string
Field function returns field value.
func (ListPostResponseValidationError) Key ¶
func (e ListPostResponseValidationError) Key() bool
Key function returns key value.
func (ListPostResponseValidationError) Reason ¶
func (e ListPostResponseValidationError) Reason() string
Reason function returns reason value.
type ListRoleRequest ¶
type ListRoleRequest struct {
// contains filtered or unexported fields
}
func (*ListRoleRequest) Descriptor
deprecated
func (*ListRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.
func (*ListRoleRequest) ProtoMessage ¶
func (*ListRoleRequest) ProtoMessage()
func (*ListRoleRequest) ProtoReflect ¶
func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
func (*ListRoleRequest) Reset ¶
func (x *ListRoleRequest) Reset()
func (*ListRoleRequest) String ¶
func (x *ListRoleRequest) String() string
func (*ListRoleRequest) Validate ¶
func (m *ListRoleRequest) Validate() error
Validate checks the field values on ListRoleRequest 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 (*ListRoleRequest) ValidateAll ¶
func (m *ListRoleRequest) ValidateAll() error
ValidateAll checks the field values on ListRoleRequest 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 ListRoleRequestMultiError, or nil if none found.
type ListRoleRequestMultiError ¶
type ListRoleRequestMultiError []error
ListRoleRequestMultiError is an error wrapping multiple validation errors returned by ListRoleRequest.ValidateAll() if the designated constraints aren't met.
func (ListRoleRequestMultiError) AllErrors ¶
func (m ListRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleRequestMultiError) Error ¶
func (m ListRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleRequestValidationError ¶
type ListRoleRequestValidationError struct {
// contains filtered or unexported fields
}
ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.
func (ListRoleRequestValidationError) Cause ¶
func (e ListRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRoleRequestValidationError) Error ¶
func (e ListRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleRequestValidationError) ErrorName ¶
func (e ListRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleRequestValidationError) Field ¶
func (e ListRoleRequestValidationError) Field() string
Field function returns field value.
func (ListRoleRequestValidationError) Key ¶
func (e ListRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListRoleRequestValidationError) Reason ¶
func (e ListRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListRoleResponse ¶
type ListRoleResponse struct { Items []*Role `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListRoleResponse) Descriptor
deprecated
func (*ListRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleResponse.ProtoReflect.Descriptor instead.
func (*ListRoleResponse) GetItems ¶
func (x *ListRoleResponse) GetItems() []*Role
func (*ListRoleResponse) GetTotal ¶
func (x *ListRoleResponse) GetTotal() int32
func (*ListRoleResponse) ProtoMessage ¶
func (*ListRoleResponse) ProtoMessage()
func (*ListRoleResponse) ProtoReflect ¶
func (x *ListRoleResponse) ProtoReflect() protoreflect.Message
func (*ListRoleResponse) Reset ¶
func (x *ListRoleResponse) Reset()
func (*ListRoleResponse) String ¶
func (x *ListRoleResponse) String() string
func (*ListRoleResponse) Validate ¶
func (m *ListRoleResponse) Validate() error
Validate checks the field values on ListRoleResponse 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 (*ListRoleResponse) ValidateAll ¶
func (m *ListRoleResponse) ValidateAll() error
ValidateAll checks the field values on ListRoleResponse 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 ListRoleResponseMultiError, or nil if none found.
type ListRoleResponseMultiError ¶
type ListRoleResponseMultiError []error
ListRoleResponseMultiError is an error wrapping multiple validation errors returned by ListRoleResponse.ValidateAll() if the designated constraints aren't met.
func (ListRoleResponseMultiError) AllErrors ¶
func (m ListRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleResponseMultiError) Error ¶
func (m ListRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleResponseValidationError ¶
type ListRoleResponseValidationError struct {
// contains filtered or unexported fields
}
ListRoleResponseValidationError is the validation error returned by ListRoleResponse.Validate if the designated constraints aren't met.
func (ListRoleResponseValidationError) Cause ¶
func (e ListRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRoleResponseValidationError) Error ¶
func (e ListRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleResponseValidationError) ErrorName ¶
func (e ListRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleResponseValidationError) Field ¶
func (e ListRoleResponseValidationError) Field() string
Field function returns field value.
func (ListRoleResponseValidationError) Key ¶
func (e ListRoleResponseValidationError) Key() bool
Key function returns key value.
func (ListRoleResponseValidationError) Reason ¶
func (e ListRoleResponseValidationError) Reason() string
Reason function returns reason value.
type ListUserRequest ¶
type ListUserRequest struct { // 当前页码 Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"` // 每页的行数 PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` // 与过滤参数 Query *User `protobuf:"bytes,3,opt,name=query,proto3,oneof" json:"query,omitempty"` // 或过滤参数 OrQuery *User `protobuf:"bytes,4,opt,name=or_query,json=orQuery,proto3,oneof" json:"or_query,omitempty"` // 排序条件 OrderBy []string `protobuf:"bytes,5,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // 是否不分页 NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=noPaging,proto3,oneof" json:"no_paging,omitempty"` // 字段掩码 FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // contains filtered or unexported fields }
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetFieldMask ¶
func (x *ListUserRequest) GetFieldMask() *fieldmaskpb.FieldMask
func (*ListUserRequest) GetNoPaging ¶
func (x *ListUserRequest) GetNoPaging() bool
func (*ListUserRequest) GetOrQuery ¶
func (x *ListUserRequest) GetOrQuery() *User
func (*ListUserRequest) GetOrderBy ¶
func (x *ListUserRequest) GetOrderBy() []string
func (*ListUserRequest) GetPage ¶
func (x *ListUserRequest) GetPage() int32
func (*ListUserRequest) GetPageSize ¶
func (x *ListUserRequest) GetPageSize() int32
func (*ListUserRequest) GetQuery ¶
func (x *ListUserRequest) GetQuery() *User
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 ¶
func (m ListUserRequestMultiError) Error() string
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 ¶
func (e ListUserRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserRequestValidationError) Error ¶
func (e ListUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserRequestValidationError) ErrorName ¶
func (e ListUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserRequestValidationError) Field ¶
func (e ListUserRequestValidationError) Field() string
Field function returns field value.
func (ListUserRequestValidationError) Key ¶
func (e ListUserRequestValidationError) Key() bool
Key function returns key value.
func (ListUserRequestValidationError) Reason ¶
func (e ListUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserResponse ¶
type ListUserResponse struct { Items []*User `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListUserResponse) Descriptor
deprecated
func (*ListUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.
func (*ListUserResponse) GetItems ¶
func (x *ListUserResponse) GetItems() []*User
func (*ListUserResponse) GetTotal ¶
func (x *ListUserResponse) GetTotal() int32
func (*ListUserResponse) ProtoMessage ¶
func (*ListUserResponse) ProtoMessage()
func (*ListUserResponse) ProtoReflect ¶
func (x *ListUserResponse) ProtoReflect() protoreflect.Message
func (*ListUserResponse) Reset ¶
func (x *ListUserResponse) Reset()
func (*ListUserResponse) String ¶
func (x *ListUserResponse) String() string
func (*ListUserResponse) Validate ¶
func (m *ListUserResponse) Validate() error
Validate checks the field values on ListUserResponse 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 (*ListUserResponse) ValidateAll ¶
func (m *ListUserResponse) ValidateAll() error
ValidateAll checks the field values on ListUserResponse 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 ListUserResponseMultiError, or nil if none found.
type ListUserResponseMultiError ¶
type ListUserResponseMultiError []error
ListUserResponseMultiError is an error wrapping multiple validation errors returned by ListUserResponse.ValidateAll() if the designated constraints aren't met.
func (ListUserResponseMultiError) AllErrors ¶
func (m ListUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserResponseMultiError) Error ¶
func (m ListUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserResponseValidationError ¶
type ListUserResponseValidationError struct {
// contains filtered or unexported fields
}
ListUserResponseValidationError is the validation error returned by ListUserResponse.Validate if the designated constraints aren't met.
func (ListUserResponseValidationError) Cause ¶
func (e ListUserResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUserResponseValidationError) Error ¶
func (e ListUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserResponseValidationError) ErrorName ¶
func (e ListUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserResponseValidationError) Field ¶
func (e ListUserResponseValidationError) Field() string
Field function returns field value.
func (ListUserResponseValidationError) Key ¶
func (e ListUserResponseValidationError) Key() bool
Key function returns key value.
func (ListUserResponseValidationError) Reason ¶
func (e ListUserResponseValidationError) Reason() string
Reason function returns reason value.
type Menu ¶
type Menu struct { CreatedAt *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` Sort *int32 `protobuf:"varint,5,opt,name=sort,proto3,oneof" json:"sort,omitempty"` State *int32 `protobuf:"varint,6,opt,name=state,proto3,oneof" json:"state,omitempty"` Remark *string `protobuf:"bytes,7,opt,name=remark,proto3,oneof" json:"remark,omitempty"` ParentId *uint32 `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` Title *string `protobuf:"bytes,9,opt,name=title,proto3,oneof" json:"title,omitempty"` Type *int32 `protobuf:"varint,10,opt,name=type,proto3,oneof" json:"type,omitempty"` Path *string `protobuf:"bytes,11,opt,name=path,proto3,oneof" json:"path,omitempty"` Component *string `protobuf:"bytes,12,opt,name=component,proto3,oneof" json:"component,omitempty"` Icon *string `protobuf:"bytes,13,opt,name=icon,proto3,oneof" json:"icon,omitempty"` IsExt *bool `protobuf:"varint,14,opt,name=is_ext,json=isExt,proto3,oneof" json:"is_ext,omitempty"` ExtUrl *string `protobuf:"bytes,15,opt,name=ext_url,json=extUrl,proto3,oneof" json:"ext_url,omitempty"` Permissions *string `protobuf:"bytes,16,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` Redirect *string `protobuf:"bytes,17,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"` CurrentActiveMenu *string `protobuf:"bytes,18,opt,name=current_active_menu,json=currentActiveMenu,proto3,oneof" json:"current_active_menu,omitempty"` KeepAlive *bool `protobuf:"varint,19,opt,name=keep_alive,json=keepAlive,proto3,oneof" json:"keep_alive,omitempty"` Visible *bool `protobuf:"varint,20,opt,name=visible,proto3,oneof" json:"visible,omitempty"` HideTab *bool `protobuf:"varint,21,opt,name=hide_tab,json=hideTab,proto3,oneof" json:"hide_tab,omitempty"` HideMenu *bool `protobuf:"varint,22,opt,name=hide_menu,json=hideMenu,proto3,oneof" json:"hide_menu,omitempty"` HideBreadcrumb *bool `protobuf:"varint,23,opt,name=hide_breadcrumb,json=hideBreadcrumb,proto3,oneof" json:"hide_breadcrumb,omitempty"` // contains filtered or unexported fields }
菜单模块
func (*Menu) Descriptor
deprecated
func (*Menu) GetComponent ¶
func (*Menu) GetCreatedAt ¶
func (*Menu) GetCurrentActiveMenu ¶
func (*Menu) GetHideBreadcrumb ¶
func (*Menu) GetHideMenu ¶
func (*Menu) GetHideTab ¶
func (*Menu) GetKeepAlive ¶
func (*Menu) GetParentId ¶
func (*Menu) GetPermissions ¶
func (*Menu) GetRedirect ¶
func (*Menu) GetUpdatedAt ¶
func (*Menu) GetVisible ¶
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
func (*Menu) Validate ¶
Validate checks the field values on Menu 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 (*Menu) ValidateAll ¶
ValidateAll checks the field values on Menu 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 MenuMultiError, or nil if none found.
type MenuMultiError ¶
type MenuMultiError []error
MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.
func (MenuMultiError) AllErrors ¶
func (m MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuMultiError) Error ¶
func (m MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuServiceClient ¶
type MenuServiceClient interface { CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...grpc.CallOption) (*CreateMenuResponse, error) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*UpdateMenuResponse, error) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*DeleteMenuResponse, error) GetMenu(ctx context.Context, in *GetMenuRequest, opts ...grpc.CallOption) (*Menu, error) ListMenu(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListMenuResponse, error) }
MenuServiceClient is the client API for MenuService 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 NewMenuServiceClient ¶
func NewMenuServiceClient(cc grpc.ClientConnInterface) MenuServiceClient
type MenuServiceServer ¶
type MenuServiceServer interface { CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuResponse, error) UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuResponse, error) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuResponse, error) GetMenu(context.Context, *GetMenuRequest) (*Menu, error) ListMenu(context.Context, *pagination.PagingRequest) (*ListMenuResponse, error) // contains filtered or unexported methods }
MenuServiceServer is the server API for MenuService service. All implementations must embed UnimplementedMenuServiceServer for forward compatibility
type MenuValidationError ¶
type MenuValidationError struct {
// contains filtered or unexported fields
}
MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.
func (MenuValidationError) Cause ¶
func (e MenuValidationError) Cause() error
Cause function returns cause value.
func (MenuValidationError) Error ¶
func (e MenuValidationError) Error() string
Error satisfies the builtin error interface
func (MenuValidationError) ErrorName ¶
func (e MenuValidationError) ErrorName() string
ErrorName returns error name.
func (MenuValidationError) Field ¶
func (e MenuValidationError) Field() string
Field function returns field value.
func (MenuValidationError) Key ¶
func (e MenuValidationError) Key() bool
Key function returns key value.
func (MenuValidationError) Reason ¶
func (e MenuValidationError) Reason() string
Reason function returns reason value.
type Post ¶
type Post struct { CreatedAt *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` State *int32 `protobuf:"varint,4,opt,name=state,proto3,oneof" json:"state,omitempty"` Remark *string `protobuf:"bytes,5,opt,name=remark,proto3,oneof" json:"remark,omitempty"` Sort *int32 `protobuf:"varint,6,opt,name=sort,proto3,oneof" json:"sort,omitempty"` Name *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
岗位模块
func (*Post) Descriptor
deprecated
func (*Post) GetCreatedAt ¶
func (*Post) GetUpdatedAt ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
func (*Post) Validate ¶
Validate checks the field values on Post 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 (*Post) ValidateAll ¶
ValidateAll checks the field values on Post 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 PostMultiError, or nil if none found.
type PostMultiError ¶
type PostMultiError []error
PostMultiError is an error wrapping multiple validation errors returned by Post.ValidateAll() if the designated constraints aren't met.
func (PostMultiError) AllErrors ¶
func (m PostMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PostMultiError) Error ¶
func (m PostMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PostServiceClient ¶
type PostServiceClient interface { CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*CreatePostResponse, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*UpdatePostResponse, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostResponse, error) GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*Post, error) ListPost(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListPostResponse, error) }
PostServiceClient is the client API for PostService 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 NewPostServiceClient ¶
func NewPostServiceClient(cc grpc.ClientConnInterface) PostServiceClient
type PostServiceServer ¶
type PostServiceServer interface { CreatePost(context.Context, *CreatePostRequest) (*CreatePostResponse, error) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostResponse, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostResponse, error) GetPost(context.Context, *GetPostRequest) (*Post, error) ListPost(context.Context, *pagination.PagingRequest) (*ListPostResponse, error) // contains filtered or unexported methods }
PostServiceServer is the server API for PostService service. All implementations must embed UnimplementedPostServiceServer for forward compatibility
type PostValidationError ¶
type PostValidationError struct {
// contains filtered or unexported fields
}
PostValidationError is the validation error returned by Post.Validate if the designated constraints aren't met.
func (PostValidationError) Cause ¶
func (e PostValidationError) Cause() error
Cause function returns cause value.
func (PostValidationError) Error ¶
func (e PostValidationError) Error() string
Error satisfies the builtin error interface
func (PostValidationError) ErrorName ¶
func (e PostValidationError) ErrorName() string
ErrorName returns error name.
func (PostValidationError) Field ¶
func (e PostValidationError) Field() string
Field function returns field value.
func (PostValidationError) Key ¶
func (e PostValidationError) Key() bool
Key function returns key value.
func (PostValidationError) Reason ¶
func (e PostValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest struct { // 请求体 Auth *RegisterRequest_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
注册 - 请求
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAuth ¶
func (x *RegisterRequest) GetAuth() *RegisterRequest_Auth
func (*RegisterRequest) GetDomain ¶
func (x *RegisterRequest) GetDomain() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest_Auth ¶
type RegisterRequest_Auth struct { // 用户名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 电话 Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest_Auth) Descriptor
deprecated
func (*RegisterRequest_Auth) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest_Auth.ProtoReflect.Descriptor instead.
func (*RegisterRequest_Auth) GetName ¶
func (x *RegisterRequest_Auth) GetName() string
func (*RegisterRequest_Auth) GetPassword ¶
func (x *RegisterRequest_Auth) GetPassword() string
func (*RegisterRequest_Auth) GetPhone ¶
func (x *RegisterRequest_Auth) GetPhone() string
func (*RegisterRequest_Auth) ProtoMessage ¶
func (*RegisterRequest_Auth) ProtoMessage()
func (*RegisterRequest_Auth) ProtoReflect ¶
func (x *RegisterRequest_Auth) ProtoReflect() protoreflect.Message
func (*RegisterRequest_Auth) Reset ¶
func (x *RegisterRequest_Auth) Reset()
func (*RegisterRequest_Auth) String ¶
func (x *RegisterRequest_Auth) String() string
func (*RegisterRequest_Auth) Validate ¶
func (m *RegisterRequest_Auth) Validate() error
Validate checks the field values on RegisterRequest_Auth with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterRequest_Auth) ValidateAll ¶
func (m *RegisterRequest_Auth) ValidateAll() error
ValidateAll checks the field values on RegisterRequest_Auth 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 RegisterRequest_AuthMultiError, or nil if none found.
type RegisterRequest_AuthMultiError ¶
type RegisterRequest_AuthMultiError []error
RegisterRequest_AuthMultiError is an error wrapping multiple validation errors returned by RegisterRequest_Auth.ValidateAll() if the designated constraints aren't met.
func (RegisterRequest_AuthMultiError) AllErrors ¶
func (m RegisterRequest_AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequest_AuthMultiError) Error ¶
func (m RegisterRequest_AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequest_AuthValidationError ¶
type RegisterRequest_AuthValidationError struct {
// contains filtered or unexported fields
}
RegisterRequest_AuthValidationError is the validation error returned by RegisterRequest_Auth.Validate if the designated constraints aren't met.
func (RegisterRequest_AuthValidationError) Cause ¶
func (e RegisterRequest_AuthValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequest_AuthValidationError) Error ¶
func (e RegisterRequest_AuthValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequest_AuthValidationError) ErrorName ¶
func (e RegisterRequest_AuthValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequest_AuthValidationError) Field ¶
func (e RegisterRequest_AuthValidationError) Field() string
Field function returns field value.
func (RegisterRequest_AuthValidationError) Key ¶
func (e RegisterRequest_AuthValidationError) Key() bool
Key function returns key value.
func (RegisterRequest_AuthValidationError) Reason ¶
func (e RegisterRequest_AuthValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Result *anypb.Any `protobuf:"bytes,3,opt,name=result,proto3,oneof" json:"result,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
注册 - 回应
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetCode ¶
func (x *RegisterResponse) GetCode() int32
func (*RegisterResponse) GetMessage ¶
func (x *RegisterResponse) GetMessage() string
func (*RegisterResponse) GetResult ¶
func (x *RegisterResponse) GetResult() *anypb.Any
func (*RegisterResponse) GetType ¶
func (x *RegisterResponse) GetType() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll ¶
func (m *RegisterResponse) ValidateAll() error
ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.
type RegisterResponseMultiError ¶
type RegisterResponseMultiError []error
RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterResponseMultiError) AllErrors ¶
func (m RegisterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResponseMultiError) Error ¶
func (m RegisterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role struct { CreatedAt *string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` State *int32 `protobuf:"varint,4,opt,name=state,proto3,oneof" json:"state,omitempty"` Sort *int32 `protobuf:"varint,5,opt,name=sort,proto3,oneof" json:"sort,omitempty"` Remark *string `protobuf:"bytes,6,opt,name=remark,proto3,oneof" json:"remark,omitempty"` Name *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"` DefaultRouter *string `protobuf:"bytes,8,opt,name=default_router,json=defaultRouter,proto3,oneof" json:"default_router,omitempty"` MenuCheckStrictly *int32 `protobuf:"varint,9,opt,name=menu_check_strictly,json=menuCheckStrictly,proto3,oneof" json:"menu_check_strictly,omitempty"` DeptCheckStrictly *int32 `protobuf:"varint,10,opt,name=dept_check_strictly,json=deptCheckStrictly,proto3,oneof" json:"dept_check_strictly,omitempty"` DataScope *int32 `protobuf:"varint,11,opt,name=data_scope,json=dataScope,proto3,oneof" json:"data_scope,omitempty"` // contains filtered or unexported fields }
角色模块
func (*Role) Descriptor
deprecated
func (*Role) GetCreatedAt ¶
func (*Role) GetDataScope ¶
func (*Role) GetDefaultRouter ¶
func (*Role) GetDeptCheckStrictly ¶
func (*Role) GetMenuCheckStrictly ¶
func (*Role) GetUpdatedAt ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) Validate ¶
Validate checks the field values on Role 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 (*Role) ValidateAll ¶
ValidateAll checks the field values on Role 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 RoleMultiError, or nil if none found.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleServiceClient ¶
type RoleServiceClient interface { CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*Role, error) ListRole(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListRoleResponse, error) }
RoleServiceClient is the client API for RoleService 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 NewRoleServiceClient ¶
func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient
type RoleServiceServer ¶
type RoleServiceServer interface { CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) GetRole(context.Context, *GetRoleRequest) (*Role, error) ListRole(context.Context, *pagination.PagingRequest) (*ListRoleResponse, error) // contains filtered or unexported methods }
RoleServiceServer is the server API for RoleService service. All implementations must embed UnimplementedRoleServiceServer for forward compatibility
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) IsAuthorized ¶
func (UnimplementedAuthServiceServer) IsAuthorized(context.Context, *IsAuthorizedRequest) (*IsAuthorizedResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnimplementedDeptServiceServer ¶
type UnimplementedDeptServiceServer struct { }
UnimplementedDeptServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDeptServiceServer) CreateDept ¶
func (UnimplementedDeptServiceServer) CreateDept(context.Context, *CreateDeptRequest) (*CreateDeptResponse, error)
func (UnimplementedDeptServiceServer) DeleteDept ¶
func (UnimplementedDeptServiceServer) DeleteDept(context.Context, *DeleteDeptRequest) (*DeleteDeptResponse, error)
func (UnimplementedDeptServiceServer) GetDept ¶
func (UnimplementedDeptServiceServer) GetDept(context.Context, *GetDeptRequest) (*Dept, error)
func (UnimplementedDeptServiceServer) ListDept ¶
func (UnimplementedDeptServiceServer) ListDept(context.Context, *pagination.PagingRequest) (*ListDeptResponse, error)
func (UnimplementedDeptServiceServer) UpdateDept ¶
func (UnimplementedDeptServiceServer) UpdateDept(context.Context, *UpdateDeptRequest) (*UpdateDeptResponse, error)
type UnimplementedMenuServiceServer ¶
type UnimplementedMenuServiceServer struct { }
UnimplementedMenuServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMenuServiceServer) CreateMenu ¶
func (UnimplementedMenuServiceServer) CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuResponse, error)
func (UnimplementedMenuServiceServer) DeleteMenu ¶
func (UnimplementedMenuServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuResponse, error)
func (UnimplementedMenuServiceServer) GetMenu ¶
func (UnimplementedMenuServiceServer) GetMenu(context.Context, *GetMenuRequest) (*Menu, error)
func (UnimplementedMenuServiceServer) ListMenu ¶
func (UnimplementedMenuServiceServer) ListMenu(context.Context, *pagination.PagingRequest) (*ListMenuResponse, error)
func (UnimplementedMenuServiceServer) UpdateMenu ¶
func (UnimplementedMenuServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuResponse, error)
type UnimplementedPostServiceServer ¶
type UnimplementedPostServiceServer struct { }
UnimplementedPostServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPostServiceServer) CreatePost ¶
func (UnimplementedPostServiceServer) CreatePost(context.Context, *CreatePostRequest) (*CreatePostResponse, error)
func (UnimplementedPostServiceServer) DeletePost ¶
func (UnimplementedPostServiceServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostResponse, error)
func (UnimplementedPostServiceServer) GetPost ¶
func (UnimplementedPostServiceServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
func (UnimplementedPostServiceServer) ListPost ¶
func (UnimplementedPostServiceServer) ListPost(context.Context, *pagination.PagingRequest) (*ListPostResponse, error)
func (UnimplementedPostServiceServer) UpdatePost ¶
func (UnimplementedPostServiceServer) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostResponse, error)
type UnimplementedRoleServiceServer ¶
type UnimplementedRoleServiceServer struct { }
UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleServiceServer) CreateRole ¶
func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedRoleServiceServer) DeleteRole ¶
func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedRoleServiceServer) GetRole ¶
func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*Role, error)
func (UnimplementedRoleServiceServer) ListRole ¶
func (UnimplementedRoleServiceServer) ListRole(context.Context, *pagination.PagingRequest) (*ListRoleResponse, error)
func (UnimplementedRoleServiceServer) UpdateRole ¶
func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
func (UnimplementedUserServiceServer) GetUserByName ¶
func (UnimplementedUserServiceServer) GetUserByName(context.Context, *GetUserByNameRequest) (*User, error)
func (UnimplementedUserServiceServer) ListUser ¶
func (UnimplementedUserServiceServer) ListUser(context.Context, *pagination.PagingRequest) (*ListUserResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
func (UnimplementedUserServiceServer) UserExists ¶
func (UnimplementedUserServiceServer) UserExists(context.Context, *UserExistsRequest) (*UserExistsResponse, error)
func (UnimplementedUserServiceServer) VerifyPassword ¶
func (UnimplementedUserServiceServer) VerifyPassword(context.Context, *VerifyPasswordRequest) (*VerifyPasswordResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeDeptServiceServer ¶
type UnsafeDeptServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDeptServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeptServiceServer will result in compilation errors.
type UnsafeMenuServiceServer ¶
type UnsafeMenuServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMenuServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServiceServer will result in compilation errors.
type UnsafePostServiceServer ¶
type UnsafePostServiceServer interface {
// contains filtered or unexported methods
}
UnsafePostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostServiceServer will result in compilation errors.
type UnsafeRoleServiceServer ¶
type UnsafeRoleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServiceServer will result in compilation errors.
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 UpdateDeptRequest ¶
type UpdateDeptRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Dept *Dept `protobuf:"bytes,2,opt,name=dept,proto3" json:"dept,omitempty"` OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateDeptRequest) Descriptor
deprecated
func (*UpdateDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeptRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeptRequest) GetDept ¶
func (x *UpdateDeptRequest) GetDept() *Dept
func (*UpdateDeptRequest) GetId ¶
func (x *UpdateDeptRequest) GetId() uint32
func (*UpdateDeptRequest) GetOperatorId ¶
func (x *UpdateDeptRequest) GetOperatorId() uint32
func (*UpdateDeptRequest) ProtoMessage ¶
func (*UpdateDeptRequest) ProtoMessage()
func (*UpdateDeptRequest) ProtoReflect ¶
func (x *UpdateDeptRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeptRequest) Reset ¶
func (x *UpdateDeptRequest) Reset()
func (*UpdateDeptRequest) String ¶
func (x *UpdateDeptRequest) String() string
func (*UpdateDeptRequest) Validate ¶
func (m *UpdateDeptRequest) Validate() error
Validate checks the field values on UpdateDeptRequest 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 (*UpdateDeptRequest) ValidateAll ¶
func (m *UpdateDeptRequest) ValidateAll() error
ValidateAll checks the field values on UpdateDeptRequest 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 UpdateDeptRequestMultiError, or nil if none found.
type UpdateDeptRequestMultiError ¶
type UpdateDeptRequestMultiError []error
UpdateDeptRequestMultiError is an error wrapping multiple validation errors returned by UpdateDeptRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateDeptRequestMultiError) AllErrors ¶
func (m UpdateDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDeptRequestMultiError) Error ¶
func (m UpdateDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDeptRequestValidationError ¶
type UpdateDeptRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateDeptRequestValidationError is the validation error returned by UpdateDeptRequest.Validate if the designated constraints aren't met.
func (UpdateDeptRequestValidationError) Cause ¶
func (e UpdateDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDeptRequestValidationError) Error ¶
func (e UpdateDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDeptRequestValidationError) ErrorName ¶
func (e UpdateDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDeptRequestValidationError) Field ¶
func (e UpdateDeptRequestValidationError) Field() string
Field function returns field value.
func (UpdateDeptRequestValidationError) Key ¶
func (e UpdateDeptRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDeptRequestValidationError) Reason ¶
func (e UpdateDeptRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateDeptResponse ¶
type UpdateDeptResponse struct {
// contains filtered or unexported fields
}
func (*UpdateDeptResponse) Descriptor
deprecated
func (*UpdateDeptResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeptResponse.ProtoReflect.Descriptor instead.
func (*UpdateDeptResponse) ProtoMessage ¶
func (*UpdateDeptResponse) ProtoMessage()
func (*UpdateDeptResponse) ProtoReflect ¶
func (x *UpdateDeptResponse) ProtoReflect() protoreflect.Message
func (*UpdateDeptResponse) Reset ¶
func (x *UpdateDeptResponse) Reset()
func (*UpdateDeptResponse) String ¶
func (x *UpdateDeptResponse) String() string
func (*UpdateDeptResponse) Validate ¶
func (m *UpdateDeptResponse) Validate() error
Validate checks the field values on UpdateDeptResponse 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 (*UpdateDeptResponse) ValidateAll ¶
func (m *UpdateDeptResponse) ValidateAll() error
ValidateAll checks the field values on UpdateDeptResponse 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 UpdateDeptResponseMultiError, or nil if none found.
type UpdateDeptResponseMultiError ¶
type UpdateDeptResponseMultiError []error
UpdateDeptResponseMultiError is an error wrapping multiple validation errors returned by UpdateDeptResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateDeptResponseMultiError) AllErrors ¶
func (m UpdateDeptResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDeptResponseMultiError) Error ¶
func (m UpdateDeptResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDeptResponseValidationError ¶
type UpdateDeptResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateDeptResponseValidationError is the validation error returned by UpdateDeptResponse.Validate if the designated constraints aren't met.
func (UpdateDeptResponseValidationError) Cause ¶
func (e UpdateDeptResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateDeptResponseValidationError) Error ¶
func (e UpdateDeptResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDeptResponseValidationError) ErrorName ¶
func (e UpdateDeptResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDeptResponseValidationError) Field ¶
func (e UpdateDeptResponseValidationError) Field() string
Field function returns field value.
func (UpdateDeptResponseValidationError) Key ¶
func (e UpdateDeptResponseValidationError) Key() bool
Key function returns key value.
func (UpdateDeptResponseValidationError) Reason ¶
func (e UpdateDeptResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateMenuRequest ¶
type UpdateMenuRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Menu *Menu `protobuf:"bytes,2,opt,name=menu,proto3" json:"menu,omitempty"` OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateMenuRequest) Descriptor
deprecated
func (*UpdateMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenuRequest.ProtoReflect.Descriptor instead.
func (*UpdateMenuRequest) GetId ¶
func (x *UpdateMenuRequest) GetId() uint32
func (*UpdateMenuRequest) GetMenu ¶
func (x *UpdateMenuRequest) GetMenu() *Menu
func (*UpdateMenuRequest) GetOperatorId ¶
func (x *UpdateMenuRequest) GetOperatorId() uint32
func (*UpdateMenuRequest) ProtoMessage ¶
func (*UpdateMenuRequest) ProtoMessage()
func (*UpdateMenuRequest) ProtoReflect ¶
func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message
func (*UpdateMenuRequest) Reset ¶
func (x *UpdateMenuRequest) Reset()
func (*UpdateMenuRequest) String ¶
func (x *UpdateMenuRequest) String() string
func (*UpdateMenuRequest) Validate ¶
func (m *UpdateMenuRequest) Validate() error
Validate checks the field values on UpdateMenuRequest 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 (*UpdateMenuRequest) ValidateAll ¶
func (m *UpdateMenuRequest) ValidateAll() error
ValidateAll checks the field values on UpdateMenuRequest 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 UpdateMenuRequestMultiError, or nil if none found.
type UpdateMenuRequestMultiError ¶
type UpdateMenuRequestMultiError []error
UpdateMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateMenuRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuRequestMultiError) AllErrors ¶
func (m UpdateMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuRequestMultiError) Error ¶
func (m UpdateMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuRequestValidationError ¶
type UpdateMenuRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuRequestValidationError is the validation error returned by UpdateMenuRequest.Validate if the designated constraints aren't met.
func (UpdateMenuRequestValidationError) Cause ¶
func (e UpdateMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuRequestValidationError) Error ¶
func (e UpdateMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuRequestValidationError) ErrorName ¶
func (e UpdateMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuRequestValidationError) Field ¶
func (e UpdateMenuRequestValidationError) Field() string
Field function returns field value.
func (UpdateMenuRequestValidationError) Key ¶
func (e UpdateMenuRequestValidationError) Key() bool
Key function returns key value.
func (UpdateMenuRequestValidationError) Reason ¶
func (e UpdateMenuRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateMenuResponse ¶
type UpdateMenuResponse struct {
// contains filtered or unexported fields
}
func (*UpdateMenuResponse) Descriptor
deprecated
func (*UpdateMenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenuResponse.ProtoReflect.Descriptor instead.
func (*UpdateMenuResponse) ProtoMessage ¶
func (*UpdateMenuResponse) ProtoMessage()
func (*UpdateMenuResponse) ProtoReflect ¶
func (x *UpdateMenuResponse) ProtoReflect() protoreflect.Message
func (*UpdateMenuResponse) Reset ¶
func (x *UpdateMenuResponse) Reset()
func (*UpdateMenuResponse) String ¶
func (x *UpdateMenuResponse) String() string
func (*UpdateMenuResponse) Validate ¶
func (m *UpdateMenuResponse) Validate() error
Validate checks the field values on UpdateMenuResponse 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 (*UpdateMenuResponse) ValidateAll ¶
func (m *UpdateMenuResponse) ValidateAll() error
ValidateAll checks the field values on UpdateMenuResponse 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 UpdateMenuResponseMultiError, or nil if none found.
type UpdateMenuResponseMultiError ¶
type UpdateMenuResponseMultiError []error
UpdateMenuResponseMultiError is an error wrapping multiple validation errors returned by UpdateMenuResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuResponseMultiError) AllErrors ¶
func (m UpdateMenuResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuResponseMultiError) Error ¶
func (m UpdateMenuResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuResponseValidationError ¶
type UpdateMenuResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuResponseValidationError is the validation error returned by UpdateMenuResponse.Validate if the designated constraints aren't met.
func (UpdateMenuResponseValidationError) Cause ¶
func (e UpdateMenuResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuResponseValidationError) Error ¶
func (e UpdateMenuResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuResponseValidationError) ErrorName ¶
func (e UpdateMenuResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuResponseValidationError) Field ¶
func (e UpdateMenuResponseValidationError) Field() string
Field function returns field value.
func (UpdateMenuResponseValidationError) Key ¶
func (e UpdateMenuResponseValidationError) Key() bool
Key function returns key value.
func (UpdateMenuResponseValidationError) Reason ¶
func (e UpdateMenuResponseValidationError) Reason() string
Reason function returns reason value.
type UpdatePostRequest ¶
type UpdatePostRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Post *Post `protobuf:"bytes,2,opt,name=post,proto3" json:"post,omitempty"` OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostRequest) Descriptor
deprecated
func (*UpdatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostRequest) GetId ¶
func (x *UpdatePostRequest) GetId() uint32
func (*UpdatePostRequest) GetOperatorId ¶
func (x *UpdatePostRequest) GetOperatorId() uint32
func (*UpdatePostRequest) GetPost ¶
func (x *UpdatePostRequest) GetPost() *Post
func (*UpdatePostRequest) ProtoMessage ¶
func (*UpdatePostRequest) ProtoMessage()
func (*UpdatePostRequest) ProtoReflect ¶
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostRequest) Reset ¶
func (x *UpdatePostRequest) Reset()
func (*UpdatePostRequest) String ¶
func (x *UpdatePostRequest) String() string
func (*UpdatePostRequest) Validate ¶
func (m *UpdatePostRequest) Validate() error
Validate checks the field values on UpdatePostRequest 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 (*UpdatePostRequest) ValidateAll ¶
func (m *UpdatePostRequest) ValidateAll() error
ValidateAll checks the field values on UpdatePostRequest 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 UpdatePostRequestMultiError, or nil if none found.
type UpdatePostRequestMultiError ¶
type UpdatePostRequestMultiError []error
UpdatePostRequestMultiError is an error wrapping multiple validation errors returned by UpdatePostRequest.ValidateAll() if the designated constraints aren't met.
func (UpdatePostRequestMultiError) AllErrors ¶
func (m UpdatePostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePostRequestMultiError) Error ¶
func (m UpdatePostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePostRequestValidationError ¶
type UpdatePostRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePostRequestValidationError is the validation error returned by UpdatePostRequest.Validate if the designated constraints aren't met.
func (UpdatePostRequestValidationError) Cause ¶
func (e UpdatePostRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePostRequestValidationError) Error ¶
func (e UpdatePostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePostRequestValidationError) ErrorName ¶
func (e UpdatePostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePostRequestValidationError) Field ¶
func (e UpdatePostRequestValidationError) Field() string
Field function returns field value.
func (UpdatePostRequestValidationError) Key ¶
func (e UpdatePostRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePostRequestValidationError) Reason ¶
func (e UpdatePostRequestValidationError) Reason() string
Reason function returns reason value.
type UpdatePostResponse ¶
type UpdatePostResponse struct {
// contains filtered or unexported fields
}
func (*UpdatePostResponse) Descriptor
deprecated
func (*UpdatePostResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostResponse.ProtoReflect.Descriptor instead.
func (*UpdatePostResponse) ProtoMessage ¶
func (*UpdatePostResponse) ProtoMessage()
func (*UpdatePostResponse) ProtoReflect ¶
func (x *UpdatePostResponse) ProtoReflect() protoreflect.Message
func (*UpdatePostResponse) Reset ¶
func (x *UpdatePostResponse) Reset()
func (*UpdatePostResponse) String ¶
func (x *UpdatePostResponse) String() string
func (*UpdatePostResponse) Validate ¶
func (m *UpdatePostResponse) Validate() error
Validate checks the field values on UpdatePostResponse 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 (*UpdatePostResponse) ValidateAll ¶
func (m *UpdatePostResponse) ValidateAll() error
ValidateAll checks the field values on UpdatePostResponse 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 UpdatePostResponseMultiError, or nil if none found.
type UpdatePostResponseMultiError ¶
type UpdatePostResponseMultiError []error
UpdatePostResponseMultiError is an error wrapping multiple validation errors returned by UpdatePostResponse.ValidateAll() if the designated constraints aren't met.
func (UpdatePostResponseMultiError) AllErrors ¶
func (m UpdatePostResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePostResponseMultiError) Error ¶
func (m UpdatePostResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePostResponseValidationError ¶
type UpdatePostResponseValidationError struct {
// contains filtered or unexported fields
}
UpdatePostResponseValidationError is the validation error returned by UpdatePostResponse.Validate if the designated constraints aren't met.
func (UpdatePostResponseValidationError) Cause ¶
func (e UpdatePostResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdatePostResponseValidationError) Error ¶
func (e UpdatePostResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePostResponseValidationError) ErrorName ¶
func (e UpdatePostResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePostResponseValidationError) Field ¶
func (e UpdatePostResponseValidationError) Field() string
Field function returns field value.
func (UpdatePostResponseValidationError) Key ¶
func (e UpdatePostResponseValidationError) Key() bool
Key function returns key value.
func (UpdatePostResponseValidationError) Reason ¶
func (e UpdatePostResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() uint32
func (*UpdateRoleRequest) GetOperatorId ¶
func (x *UpdateRoleRequest) GetOperatorId() uint32
func (*UpdateRoleRequest) GetRole ¶
func (x *UpdateRoleRequest) GetRole() *Role
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
func (*UpdateRoleRequest) Validate ¶
func (m *UpdateRoleRequest) Validate() error
Validate checks the field values on UpdateRoleRequest 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 (*UpdateRoleRequest) ValidateAll ¶
func (m *UpdateRoleRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleRequest 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 UpdateRoleRequestMultiError, or nil if none found.
type UpdateRoleRequestMultiError ¶
type UpdateRoleRequestMultiError []error
UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleRequestMultiError) AllErrors ¶
func (m UpdateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleRequestMultiError) Error ¶
func (m UpdateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleRequestValidationError ¶
type UpdateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.
func (UpdateRoleRequestValidationError) Cause ¶
func (e UpdateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleRequestValidationError) Error ¶
func (e UpdateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleRequestValidationError) ErrorName ¶
func (e UpdateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleRequestValidationError) Field ¶
func (e UpdateRoleRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleRequestValidationError) Key ¶
func (e UpdateRoleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleRequestValidationError) Reason ¶
func (e UpdateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleResponse ¶
type UpdateRoleResponse struct {
// contains filtered or unexported fields
}
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string
func (*UpdateRoleResponse) Validate ¶
func (m *UpdateRoleResponse) Validate() error
Validate checks the field values on UpdateRoleResponse 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 (*UpdateRoleResponse) ValidateAll ¶
func (m *UpdateRoleResponse) ValidateAll() error
ValidateAll checks the field values on UpdateRoleResponse 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 UpdateRoleResponseMultiError, or nil if none found.
type UpdateRoleResponseMultiError ¶
type UpdateRoleResponseMultiError []error
UpdateRoleResponseMultiError is an error wrapping multiple validation errors returned by UpdateRoleResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleResponseMultiError) AllErrors ¶
func (m UpdateRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleResponseMultiError) Error ¶
func (m UpdateRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleResponseValidationError ¶
type UpdateRoleResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleResponseValidationError is the validation error returned by UpdateRoleResponse.Validate if the designated constraints aren't met.
func (UpdateRoleResponseValidationError) Cause ¶
func (e UpdateRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleResponseValidationError) Error ¶
func (e UpdateRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleResponseValidationError) ErrorName ¶
func (e UpdateRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleResponseValidationError) Field ¶
func (e UpdateRoleResponseValidationError) Field() string
Field function returns field value.
func (UpdateRoleResponseValidationError) Key ¶
func (e UpdateRoleResponseValidationError) Key() bool
Key function returns key value.
func (UpdateRoleResponseValidationError) Reason ¶
func (e UpdateRoleResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` OperatorId uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() uint32
func (*UpdateUserRequest) GetOperatorId ¶
func (x *UpdateUserRequest) GetOperatorId() uint32
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *User
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 ¶
func (m UpdateUserRequestMultiError) Error() string
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 ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserResponse ¶
type UpdateUserResponse struct {
// contains filtered or unexported fields
}
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
func (*UpdateUserResponse) Validate ¶
func (m *UpdateUserResponse) Validate() error
Validate checks the field values on UpdateUserResponse 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 (*UpdateUserResponse) ValidateAll ¶
func (m *UpdateUserResponse) ValidateAll() error
ValidateAll checks the field values on UpdateUserResponse 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 UpdateUserResponseMultiError, or nil if none found.
type UpdateUserResponseMultiError ¶
type UpdateUserResponseMultiError []error
UpdateUserResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateUserResponseMultiError) AllErrors ¶
func (m UpdateUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserResponseMultiError) Error ¶
func (m UpdateUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserResponseValidationError ¶
type UpdateUserResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateUserResponseValidationError is the validation error returned by UpdateUserResponse.Validate if the designated constraints aren't met.
func (UpdateUserResponseValidationError) Cause ¶
func (e UpdateUserResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserResponseValidationError) Error ¶
func (e UpdateUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserResponseValidationError) ErrorName ¶
func (e UpdateUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserResponseValidationError) Field ¶
func (e UpdateUserResponseValidationError) Field() string
Field function returns field value.
func (UpdateUserResponseValidationError) Key ¶
func (e UpdateUserResponseValidationError) Key() bool
Key function returns key value.
func (UpdateUserResponseValidationError) Reason ¶
func (e UpdateUserResponseValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` NickName *string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` RealName *string `protobuf:"bytes,5,opt,name=real_name,json=realName,proto3,oneof" json:"real_name,omitempty"` Birthday *string `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"` Gender *int32 `protobuf:"varint,7,opt,name=gender,proto3,oneof" json:"gender,omitempty"` Phone *string `protobuf:"bytes,8,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Email *string `protobuf:"bytes,9,opt,name=email,proto3,oneof" json:"email,omitempty"` Avatar *string `protobuf:"bytes,10,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` State *int32 `protobuf:"varint,11,opt,name=state,proto3,oneof" json:"state,omitempty"` CreatedAt *string `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *string `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` CreatorId *uint32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` // 创建者ID Authority *int32 `protobuf:"varint,15,opt,name=authority,proto3,oneof" json:"authority,omitempty"` // 权限 Password *string `protobuf:"bytes,16,opt,name=password,proto3,oneof" json:"password,omitempty"` Description *string `protobuf:"bytes,17,opt,name=description,proto3,oneof" json:"description,omitempty"` // 个人说明 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAuthority ¶
func (*User) GetBirthday ¶
func (*User) GetCreatedAt ¶
func (*User) GetCreatorId ¶
func (*User) GetDescription ¶
func (*User) GetNickName ¶
func (*User) GetPassword ¶
func (*User) GetRealName ¶
func (*User) GetUpdatedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
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 ¶
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 UserExistsRequest ¶
type UserExistsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
用户是否存在 - 请求
func (*UserExistsRequest) Descriptor
deprecated
func (*UserExistsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserExistsRequest.ProtoReflect.Descriptor instead.
func (*UserExistsRequest) GetName ¶
func (x *UserExistsRequest) GetName() string
func (*UserExistsRequest) ProtoMessage ¶
func (*UserExistsRequest) ProtoMessage()
func (*UserExistsRequest) ProtoReflect ¶
func (x *UserExistsRequest) ProtoReflect() protoreflect.Message
func (*UserExistsRequest) Reset ¶
func (x *UserExistsRequest) Reset()
func (*UserExistsRequest) String ¶
func (x *UserExistsRequest) String() string
func (*UserExistsRequest) Validate ¶
func (m *UserExistsRequest) Validate() error
Validate checks the field values on UserExistsRequest 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 (*UserExistsRequest) ValidateAll ¶
func (m *UserExistsRequest) ValidateAll() error
ValidateAll checks the field values on UserExistsRequest 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 UserExistsRequestMultiError, or nil if none found.
type UserExistsRequestMultiError ¶
type UserExistsRequestMultiError []error
UserExistsRequestMultiError is an error wrapping multiple validation errors returned by UserExistsRequest.ValidateAll() if the designated constraints aren't met.
func (UserExistsRequestMultiError) AllErrors ¶
func (m UserExistsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserExistsRequestMultiError) Error ¶
func (m UserExistsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserExistsRequestValidationError ¶
type UserExistsRequestValidationError struct {
// contains filtered or unexported fields
}
UserExistsRequestValidationError is the validation error returned by UserExistsRequest.Validate if the designated constraints aren't met.
func (UserExistsRequestValidationError) Cause ¶
func (e UserExistsRequestValidationError) Cause() error
Cause function returns cause value.
func (UserExistsRequestValidationError) Error ¶
func (e UserExistsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserExistsRequestValidationError) ErrorName ¶
func (e UserExistsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserExistsRequestValidationError) Field ¶
func (e UserExistsRequestValidationError) Field() string
Field function returns field value.
func (UserExistsRequestValidationError) Key ¶
func (e UserExistsRequestValidationError) Key() bool
Key function returns key value.
func (UserExistsRequestValidationError) Reason ¶
func (e UserExistsRequestValidationError) Reason() string
Reason function returns reason value.
type UserExistsResponse ¶
type UserExistsResponse struct { Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` // contains filtered or unexported fields }
用户是否存在 - 回应
func (*UserExistsResponse) Descriptor
deprecated
func (*UserExistsResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserExistsResponse.ProtoReflect.Descriptor instead.
func (*UserExistsResponse) GetExist ¶
func (x *UserExistsResponse) GetExist() bool
func (*UserExistsResponse) ProtoMessage ¶
func (*UserExistsResponse) ProtoMessage()
func (*UserExistsResponse) ProtoReflect ¶
func (x *UserExistsResponse) ProtoReflect() protoreflect.Message
func (*UserExistsResponse) Reset ¶
func (x *UserExistsResponse) Reset()
func (*UserExistsResponse) String ¶
func (x *UserExistsResponse) String() string
func (*UserExistsResponse) Validate ¶
func (m *UserExistsResponse) Validate() error
Validate checks the field values on UserExistsResponse 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 (*UserExistsResponse) ValidateAll ¶
func (m *UserExistsResponse) ValidateAll() error
ValidateAll checks the field values on UserExistsResponse 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 UserExistsResponseMultiError, or nil if none found.
type UserExistsResponseMultiError ¶
type UserExistsResponseMultiError []error
UserExistsResponseMultiError is an error wrapping multiple validation errors returned by UserExistsResponse.ValidateAll() if the designated constraints aren't met.
func (UserExistsResponseMultiError) AllErrors ¶
func (m UserExistsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserExistsResponseMultiError) Error ¶
func (m UserExistsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserExistsResponseValidationError ¶
type UserExistsResponseValidationError struct {
// contains filtered or unexported fields
}
UserExistsResponseValidationError is the validation error returned by UserExistsResponse.Validate if the designated constraints aren't met.
func (UserExistsResponseValidationError) Cause ¶
func (e UserExistsResponseValidationError) Cause() error
Cause function returns cause value.
func (UserExistsResponseValidationError) Error ¶
func (e UserExistsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserExistsResponseValidationError) ErrorName ¶
func (e UserExistsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserExistsResponseValidationError) Field ¶
func (e UserExistsResponseValidationError) Field() string
Field function returns field value.
func (UserExistsResponseValidationError) Key ¶
func (e UserExistsResponseValidationError) Key() bool
Key function returns key value.
func (UserExistsResponseValidationError) Reason ¶
func (e UserExistsResponseValidationError) 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 UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) ListUser(ctx context.Context, in *pagination.PagingRequest, opts ...grpc.CallOption) (*ListUserResponse, error) // 查询用户详情 GetUserByName(ctx context.Context, in *GetUserByNameRequest, opts ...grpc.CallOption) (*User, error) // 验证密码 VerifyPassword(ctx context.Context, in *VerifyPasswordRequest, opts ...grpc.CallOption) (*VerifyPasswordResponse, error) // 用户是否存在 UserExists(ctx context.Context, in *UserExistsRequest, opts ...grpc.CallOption) (*UserExistsResponse, 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.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) GetUser(context.Context, *GetUserRequest) (*User, error) ListUser(context.Context, *pagination.PagingRequest) (*ListUserResponse, error) // 查询用户详情 GetUserByName(context.Context, *GetUserByNameRequest) (*User, error) // 验证密码 VerifyPassword(context.Context, *VerifyPasswordRequest) (*VerifyPasswordResponse, error) // 用户是否存在 UserExists(context.Context, *UserExistsRequest) (*UserExistsResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.
type VerifyPassword ¶
type VerifyPassword int32
验证密码结果码
const ( VerifyPassword_VERIFY_PASSWORD_UNSPECIFIED VerifyPassword = 0 VerifyPassword_VERIFY_PASSWORD_SUCCESS VerifyPassword = 1 // 验证成功 VerifyPassword_VERIFY_PASSWORD_ACCOUNT_NOT_EXISTS VerifyPassword = 2 // 账号不存在 VerifyPassword_VERIFY_PASSWORD_WRONG_PASSWORD VerifyPassword = 3 // 密码错误 VerifyPassword_VERIFY_PASSWORD_FREEZE VerifyPassword = 4 // 已冻结 VerifyPassword_VERIFY_PASSWORD_DELETED VerifyPassword = 5 // 已删除 )
func (VerifyPassword) Descriptor ¶
func (VerifyPassword) Descriptor() protoreflect.EnumDescriptor
func (VerifyPassword) Enum ¶
func (x VerifyPassword) Enum() *VerifyPassword
func (VerifyPassword) EnumDescriptor
deprecated
func (VerifyPassword) EnumDescriptor() ([]byte, []int)
Deprecated: Use VerifyPassword.Descriptor instead.
func (VerifyPassword) Number ¶
func (x VerifyPassword) Number() protoreflect.EnumNumber
func (VerifyPassword) String ¶
func (x VerifyPassword) String() string
func (VerifyPassword) Type ¶
func (VerifyPassword) Type() protoreflect.EnumType
type VerifyPasswordRequest ¶
type VerifyPasswordRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
验证密码 - 请求
func (*VerifyPasswordRequest) Descriptor
deprecated
func (*VerifyPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyPasswordRequest.ProtoReflect.Descriptor instead.
func (*VerifyPasswordRequest) GetName ¶
func (x *VerifyPasswordRequest) GetName() string
func (*VerifyPasswordRequest) GetPassword ¶
func (x *VerifyPasswordRequest) GetPassword() string
func (*VerifyPasswordRequest) ProtoMessage ¶
func (*VerifyPasswordRequest) ProtoMessage()
func (*VerifyPasswordRequest) ProtoReflect ¶
func (x *VerifyPasswordRequest) ProtoReflect() protoreflect.Message
func (*VerifyPasswordRequest) Reset ¶
func (x *VerifyPasswordRequest) Reset()
func (*VerifyPasswordRequest) String ¶
func (x *VerifyPasswordRequest) String() string
func (*VerifyPasswordRequest) Validate ¶
func (m *VerifyPasswordRequest) Validate() error
Validate checks the field values on VerifyPasswordRequest 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 (*VerifyPasswordRequest) ValidateAll ¶
func (m *VerifyPasswordRequest) ValidateAll() error
ValidateAll checks the field values on VerifyPasswordRequest 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 VerifyPasswordRequestMultiError, or nil if none found.
type VerifyPasswordRequestMultiError ¶
type VerifyPasswordRequestMultiError []error
VerifyPasswordRequestMultiError is an error wrapping multiple validation errors returned by VerifyPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (VerifyPasswordRequestMultiError) AllErrors ¶
func (m VerifyPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyPasswordRequestMultiError) Error ¶
func (m VerifyPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyPasswordRequestValidationError ¶
type VerifyPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
VerifyPasswordRequestValidationError is the validation error returned by VerifyPasswordRequest.Validate if the designated constraints aren't met.
func (VerifyPasswordRequestValidationError) Cause ¶
func (e VerifyPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (VerifyPasswordRequestValidationError) Error ¶
func (e VerifyPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyPasswordRequestValidationError) ErrorName ¶
func (e VerifyPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyPasswordRequestValidationError) Field ¶
func (e VerifyPasswordRequestValidationError) Field() string
Field function returns field value.
func (VerifyPasswordRequestValidationError) Key ¶
func (e VerifyPasswordRequestValidationError) Key() bool
Key function returns key value.
func (VerifyPasswordRequestValidationError) Reason ¶
func (e VerifyPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type VerifyPasswordResponse ¶
type VerifyPasswordResponse struct { Result VerifyPassword `protobuf:"varint,1,opt,name=result,proto3,enum=core.service.v1.VerifyPassword" json:"result,omitempty"` // contains filtered or unexported fields }
验证密码 - 回应
func (*VerifyPasswordResponse) Descriptor
deprecated
func (*VerifyPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyPasswordResponse.ProtoReflect.Descriptor instead.
func (*VerifyPasswordResponse) GetResult ¶
func (x *VerifyPasswordResponse) GetResult() VerifyPassword
func (*VerifyPasswordResponse) ProtoMessage ¶
func (*VerifyPasswordResponse) ProtoMessage()
func (*VerifyPasswordResponse) ProtoReflect ¶
func (x *VerifyPasswordResponse) ProtoReflect() protoreflect.Message
func (*VerifyPasswordResponse) Reset ¶
func (x *VerifyPasswordResponse) Reset()
func (*VerifyPasswordResponse) String ¶
func (x *VerifyPasswordResponse) String() string
func (*VerifyPasswordResponse) Validate ¶
func (m *VerifyPasswordResponse) Validate() error
Validate checks the field values on VerifyPasswordResponse 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 (*VerifyPasswordResponse) ValidateAll ¶
func (m *VerifyPasswordResponse) ValidateAll() error
ValidateAll checks the field values on VerifyPasswordResponse 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 VerifyPasswordResponseMultiError, or nil if none found.
type VerifyPasswordResponseMultiError ¶
type VerifyPasswordResponseMultiError []error
VerifyPasswordResponseMultiError is an error wrapping multiple validation errors returned by VerifyPasswordResponse.ValidateAll() if the designated constraints aren't met.
func (VerifyPasswordResponseMultiError) AllErrors ¶
func (m VerifyPasswordResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyPasswordResponseMultiError) Error ¶
func (m VerifyPasswordResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyPasswordResponseValidationError ¶
type VerifyPasswordResponseValidationError struct {
// contains filtered or unexported fields
}
VerifyPasswordResponseValidationError is the validation error returned by VerifyPasswordResponse.Validate if the designated constraints aren't met.
func (VerifyPasswordResponseValidationError) Cause ¶
func (e VerifyPasswordResponseValidationError) Cause() error
Cause function returns cause value.
func (VerifyPasswordResponseValidationError) Error ¶
func (e VerifyPasswordResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyPasswordResponseValidationError) ErrorName ¶
func (e VerifyPasswordResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyPasswordResponseValidationError) Field ¶
func (e VerifyPasswordResponseValidationError) Field() string
Field function returns field value.
func (VerifyPasswordResponseValidationError) Key ¶
func (e VerifyPasswordResponseValidationError) Key() bool
Key function returns key value.
func (VerifyPasswordResponseValidationError) Reason ¶
func (e VerifyPasswordResponseValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
- auth.pb.go
- auth.pb.validate.go
- auth_grpc.pb.go
- dept.pb.go
- dept.pb.validate.go
- dept_grpc.pb.go
- error_reason.pb.go
- error_reason.pb.validate.go
- error_reason_errors.pb.go
- menu.pb.go
- menu.pb.validate.go
- menu_grpc.pb.go
- post.pb.go
- post.pb.validate.go
- post_grpc.pb.go
- role.pb.go
- role.pb.validate.go
- role_grpc.pb.go
- user.pb.go
- user.pb.validate.go
- user_grpc.pb.go