role

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

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

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

Documentation

Index

Constants

View Source
const (
	Role_GetRole_FullMethodName         = "/manager.api.role.Role/GetRole"
	Role_ListCurrentRole_FullMethodName = "/manager.api.role.Role/ListCurrentRole"
	Role_CreateRole_FullMethodName      = "/manager.api.role.Role/CreateRole"
	Role_UpdateRole_FullMethodName      = "/manager.api.role.Role/UpdateRole"
	Role_DeleteRole_FullMethodName      = "/manager.api.role.Role/DeleteRole"
)
View Source
const (
	OperationRoleCreateRole      = "/manager.api.role.Role/CreateRole"
	OperationRoleDeleteRole      = "/manager.api.role.Role/DeleteRole"
	OperationRoleGetRole         = "/manager.api.role.Role/GetRole"
	OperationRoleListCurrentRole = "/manager.api.role.Role/ListCurrentRole"
	OperationRoleUpdateRole      = "/manager.api.role.Role/UpdateRole"
)

Variables

View Source
var File_api_role_proto_role_proto protoreflect.FileDescriptor
View Source
var File_api_role_proto_role_service_proto protoreflect.FileDescriptor
View Source
var Role_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.role.Role",
	HandlerType: (*RoleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRole",
			Handler:    _Role_GetRole_Handler,
		},
		{
			MethodName: "ListCurrentRole",
			Handler:    _Role_ListCurrentRole_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _Role_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _Role_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _Role_DeleteRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/role/proto/role_service.proto",
}

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

Functions

func RegisterRoleHTTPServer

func RegisterRoleHTTPServer(s *http.Server, srv RoleHTTPServer)

func RegisterRoleServer

func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)

Types

type CreateRoleReply

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

func (*CreateRoleReply) Descriptor deprecated

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

Deprecated: Use CreateRoleReply.ProtoReflect.Descriptor instead.

func (*CreateRoleReply) GetId

func (x *CreateRoleReply) GetId() uint32

func (*CreateRoleReply) ProtoMessage

func (*CreateRoleReply) ProtoMessage()

func (*CreateRoleReply) ProtoReflect

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

func (*CreateRoleReply) Reset

func (x *CreateRoleReply) Reset()

func (*CreateRoleReply) String

func (x *CreateRoleReply) String() string

func (*CreateRoleReply) Validate

func (m *CreateRoleReply) Validate() error

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

func (m *CreateRoleReply) ValidateAll() error

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

type CreateRoleReplyMultiError

type CreateRoleReplyMultiError []error

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

func (CreateRoleReplyMultiError) AllErrors

func (m CreateRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleReplyMultiError) Error

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

type CreateRoleReplyValidationError

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

CreateRoleReplyValidationError is the validation error returned by CreateRoleReply.Validate if the designated constraints aren't met.

func (CreateRoleReplyValidationError) Cause

Cause function returns cause value.

func (CreateRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleReplyValidationError) ErrorName

func (e CreateRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRoleReplyValidationError) Field

Field function returns field value.

func (CreateRoleReplyValidationError) Key

Key function returns key value.

func (CreateRoleReplyValidationError) Reason

Reason function returns reason value.

type CreateRoleRequest

type CreateRoleRequest struct {
	ParentId    uint32 `protobuf:"varint,1,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Keyword     string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetDescription

func (x *CreateRoleRequest) GetDescription() string

func (*CreateRoleRequest) GetKeyword

func (x *CreateRoleRequest) GetKeyword() string

func (*CreateRoleRequest) GetName

func (x *CreateRoleRequest) GetName() string

func (*CreateRoleRequest) GetParentId

func (x *CreateRoleRequest) GetParentId() uint32

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

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

Cause function returns cause value.

func (CreateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleRequestValidationError) Field

Field function returns field value.

func (CreateRoleRequestValidationError) Key

Key function returns key value.

func (CreateRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteRoleReply

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

func (*DeleteRoleReply) Descriptor deprecated

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

Deprecated: Use DeleteRoleReply.ProtoReflect.Descriptor instead.

func (*DeleteRoleReply) ProtoMessage

func (*DeleteRoleReply) ProtoMessage()

func (*DeleteRoleReply) ProtoReflect

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

func (*DeleteRoleReply) Reset

func (x *DeleteRoleReply) Reset()

func (*DeleteRoleReply) String

func (x *DeleteRoleReply) String() string

func (*DeleteRoleReply) Validate

func (m *DeleteRoleReply) Validate() error

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

func (m *DeleteRoleReply) ValidateAll() error

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

type DeleteRoleReplyMultiError

type DeleteRoleReplyMultiError []error

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

func (DeleteRoleReplyMultiError) AllErrors

func (m DeleteRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleReplyMultiError) Error

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

type DeleteRoleReplyValidationError

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

DeleteRoleReplyValidationError is the validation error returned by DeleteRoleReply.Validate if the designated constraints aren't met.

func (DeleteRoleReplyValidationError) Cause

Cause function returns cause value.

func (DeleteRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleReplyValidationError) ErrorName

func (e DeleteRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRoleReplyValidationError) Field

Field function returns field value.

func (DeleteRoleReplyValidationError) Key

Key function returns key value.

func (DeleteRoleReplyValidationError) Reason

Reason function returns reason value.

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"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) 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

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

Cause function returns cause value.

func (DeleteRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleRequestValidationError) Field

Field function returns field value.

func (DeleteRoleRequestValidationError) Key

Key function returns key value.

func (DeleteRoleRequestValidationError) Reason

Reason function returns reason value.

type GetRoleReply

type GetRoleReply struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    uint32  `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string  `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Status      *bool   `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleReply) Descriptor deprecated

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

Deprecated: Use GetRoleReply.ProtoReflect.Descriptor instead.

func (*GetRoleReply) GetCreatedAt

func (x *GetRoleReply) GetCreatedAt() uint32

func (*GetRoleReply) GetDescription

func (x *GetRoleReply) GetDescription() string

func (*GetRoleReply) GetId

func (x *GetRoleReply) GetId() uint32

func (*GetRoleReply) GetKeyword

func (x *GetRoleReply) GetKeyword() string

func (*GetRoleReply) GetName

func (x *GetRoleReply) GetName() string

func (*GetRoleReply) GetParentId

func (x *GetRoleReply) GetParentId() uint32

func (*GetRoleReply) GetStatus

func (x *GetRoleReply) GetStatus() bool

func (*GetRoleReply) GetUpdatedAt

func (x *GetRoleReply) GetUpdatedAt() uint32

func (*GetRoleReply) ProtoMessage

func (*GetRoleReply) ProtoMessage()

func (*GetRoleReply) ProtoReflect

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

func (*GetRoleReply) Reset

func (x *GetRoleReply) Reset()

func (*GetRoleReply) String

func (x *GetRoleReply) String() string

func (*GetRoleReply) Validate

func (m *GetRoleReply) Validate() error

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

func (m *GetRoleReply) ValidateAll() error

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

type GetRoleReplyMultiError

type GetRoleReplyMultiError []error

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

func (GetRoleReplyMultiError) AllErrors

func (m GetRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleReplyMultiError) Error

func (m GetRoleReplyMultiError) Error() string

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

type GetRoleReplyValidationError

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

GetRoleReplyValidationError is the validation error returned by GetRoleReply.Validate if the designated constraints aren't met.

func (GetRoleReplyValidationError) Cause

Cause function returns cause value.

func (GetRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (GetRoleReplyValidationError) ErrorName

func (e GetRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleReplyValidationError) Field

Field function returns field value.

func (GetRoleReplyValidationError) Key

Key function returns key value.

func (GetRoleReplyValidationError) Reason

Reason function returns reason value.

type GetRoleRequest

type GetRoleRequest struct {
	Id      *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,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) GetKeyword

func (x *GetRoleRequest) GetKeyword() string

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

Cause function returns cause value.

func (GetRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleRequestValidationError) ErrorName

func (e GetRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleRequestValidationError) Field

Field function returns field value.

func (GetRoleRequestValidationError) Key

Key function returns key value.

func (GetRoleRequestValidationError) Reason

Reason function returns reason value.

type ListRoleReply

type ListRoleReply struct {
	List []*ListRoleReply_Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleReply) Descriptor deprecated

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

Deprecated: Use ListRoleReply.ProtoReflect.Descriptor instead.

func (*ListRoleReply) GetList

func (x *ListRoleReply) GetList() []*ListRoleReply_Role

func (*ListRoleReply) ProtoMessage

func (*ListRoleReply) ProtoMessage()

func (*ListRoleReply) ProtoReflect

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

func (*ListRoleReply) Reset

func (x *ListRoleReply) Reset()

func (*ListRoleReply) String

func (x *ListRoleReply) String() string

func (*ListRoleReply) Validate

func (m *ListRoleReply) Validate() error

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

func (m *ListRoleReply) ValidateAll() error

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

type ListRoleReplyMultiError

type ListRoleReplyMultiError []error

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

func (ListRoleReplyMultiError) AllErrors

func (m ListRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleReplyMultiError) Error

func (m ListRoleReplyMultiError) Error() string

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

type ListRoleReplyValidationError

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

ListRoleReplyValidationError is the validation error returned by ListRoleReply.Validate if the designated constraints aren't met.

func (ListRoleReplyValidationError) Cause

Cause function returns cause value.

func (ListRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (ListRoleReplyValidationError) ErrorName

func (e ListRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleReplyValidationError) Field

Field function returns field value.

func (ListRoleReplyValidationError) Key

Key function returns key value.

func (ListRoleReplyValidationError) Reason

Reason function returns reason value.

type ListRoleReply_Role

type ListRoleReply_Role struct {
	Id          uint32                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    uint32                `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name        string                `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string                `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Status      *bool                 `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Description *string               `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Children    []*ListRoleReply_Role `protobuf:"bytes,7,rep,name=children,proto3" json:"children,omitempty"`
	CreatedAt   uint32                `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32                `protobuf:"varint,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleReply_Role) Descriptor deprecated

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

Deprecated: Use ListRoleReply_Role.ProtoReflect.Descriptor instead.

func (*ListRoleReply_Role) GetChildren

func (x *ListRoleReply_Role) GetChildren() []*ListRoleReply_Role

func (*ListRoleReply_Role) GetCreatedAt

func (x *ListRoleReply_Role) GetCreatedAt() uint32

func (*ListRoleReply_Role) GetDescription

func (x *ListRoleReply_Role) GetDescription() string

func (*ListRoleReply_Role) GetId

func (x *ListRoleReply_Role) GetId() uint32

func (*ListRoleReply_Role) GetKeyword

func (x *ListRoleReply_Role) GetKeyword() string

func (*ListRoleReply_Role) GetName

func (x *ListRoleReply_Role) GetName() string

func (*ListRoleReply_Role) GetParentId

func (x *ListRoleReply_Role) GetParentId() uint32

func (*ListRoleReply_Role) GetStatus

func (x *ListRoleReply_Role) GetStatus() bool

func (*ListRoleReply_Role) GetUpdatedAt

func (x *ListRoleReply_Role) GetUpdatedAt() uint32

func (*ListRoleReply_Role) ProtoMessage

func (*ListRoleReply_Role) ProtoMessage()

func (*ListRoleReply_Role) ProtoReflect

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

func (*ListRoleReply_Role) Reset

func (x *ListRoleReply_Role) Reset()

func (*ListRoleReply_Role) String

func (x *ListRoleReply_Role) String() string

func (*ListRoleReply_Role) Validate

func (m *ListRoleReply_Role) Validate() error

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

func (m *ListRoleReply_Role) ValidateAll() error

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

type ListRoleReply_RoleMultiError

type ListRoleReply_RoleMultiError []error

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

func (ListRoleReply_RoleMultiError) AllErrors

func (m ListRoleReply_RoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleReply_RoleMultiError) Error

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

type ListRoleReply_RoleValidationError

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

ListRoleReply_RoleValidationError is the validation error returned by ListRoleReply_Role.Validate if the designated constraints aren't met.

func (ListRoleReply_RoleValidationError) Cause

Cause function returns cause value.

func (ListRoleReply_RoleValidationError) Error

Error satisfies the builtin error interface

func (ListRoleReply_RoleValidationError) ErrorName

ErrorName returns error name.

func (ListRoleReply_RoleValidationError) Field

Field function returns field value.

func (ListRoleReply_RoleValidationError) Key

Key function returns key value.

func (ListRoleReply_RoleValidationError) Reason

Reason function returns reason value.

type ListRoleRequest

type ListRoleRequest struct {
	Keyword *string `protobuf:"bytes,1,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Name    *uint32 `protobuf:"varint,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Status  *bool   `protobuf:"varint,3,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleRequest) Descriptor deprecated

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

Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.

func (*ListRoleRequest) GetKeyword

func (x *ListRoleRequest) GetKeyword() string

func (*ListRoleRequest) GetName

func (x *ListRoleRequest) GetName() uint32

func (*ListRoleRequest) GetStatus

func (x *ListRoleRequest) GetStatus() bool

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

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

Cause function returns cause value.

func (ListRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoleRequestValidationError) ErrorName

func (e ListRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleRequestValidationError) Field

Field function returns field value.

func (ListRoleRequestValidationError) Key

Key function returns key value.

func (ListRoleRequestValidationError) Reason

Reason function returns reason value.

type RoleClient

type RoleClient interface {
	// GetRole 获取角色信息
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleReply, error)
	// ListRole 获取角色信息列表
	ListCurrentRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleReply, error)
	// CreateRole 创建角色信息
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleReply, error)
	// UpdateRole 更新角色信息
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleReply, error)
	// DeleteRole 删除角色信息
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleReply, error)
}

RoleClient is the client API for Role 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 NewRoleClient

func NewRoleClient(cc grpc.ClientConnInterface) RoleClient

type RoleHTTPClient

type RoleHTTPClient interface {
	CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *CreateRoleReply, err error)
	DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *DeleteRoleReply, err error)
	GetRole(ctx context.Context, req *GetRoleRequest, opts ...http.CallOption) (rsp *GetRoleReply, err error)
	ListCurrentRole(ctx context.Context, req *ListRoleRequest, opts ...http.CallOption) (rsp *ListRoleReply, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *UpdateRoleReply, err error)
}

func NewRoleHTTPClient

func NewRoleHTTPClient(client *http.Client) RoleHTTPClient

type RoleHTTPClientImpl

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

func (*RoleHTTPClientImpl) CreateRole

func (*RoleHTTPClientImpl) DeleteRole

func (*RoleHTTPClientImpl) GetRole

func (*RoleHTTPClientImpl) ListCurrentRole

func (c *RoleHTTPClientImpl) ListCurrentRole(ctx context.Context, in *ListRoleRequest, opts ...http.CallOption) (*ListRoleReply, error)

func (*RoleHTTPClientImpl) UpdateRole

type RoleHTTPServer

type RoleHTTPServer interface {
	// CreateRole CreateRole 创建角色信息
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
	// DeleteRole DeleteRole 删除角色信息
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
	// GetRole GetRole 获取角色信息
	GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
	// ListCurrentRole ListRole 获取角色信息列表
	ListCurrentRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
	// UpdateRole UpdateRole 更新角色信息
	UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
}

type RoleServer

type RoleServer interface {
	// GetRole 获取角色信息
	GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
	// ListRole 获取角色信息列表
	ListCurrentRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
	// CreateRole 创建角色信息
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
	// UpdateRole 更新角色信息
	UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
	// DeleteRole 删除角色信息
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
	// contains filtered or unexported methods
}

RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility

type UnimplementedRoleServer

type UnimplementedRoleServer struct{}

UnimplementedRoleServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServer) CreateRole

func (UnimplementedRoleServer) DeleteRole

func (UnimplementedRoleServer) GetRole

func (UnimplementedRoleServer) ListCurrentRole

func (UnimplementedRoleServer) UpdateRole

type UnsafeRoleServer

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

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

type UpdateRoleReply

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

func (*UpdateRoleReply) Descriptor deprecated

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

Deprecated: Use UpdateRoleReply.ProtoReflect.Descriptor instead.

func (*UpdateRoleReply) ProtoMessage

func (*UpdateRoleReply) ProtoMessage()

func (*UpdateRoleReply) ProtoReflect

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

func (*UpdateRoleReply) Reset

func (x *UpdateRoleReply) Reset()

func (*UpdateRoleReply) String

func (x *UpdateRoleReply) String() string

func (*UpdateRoleReply) Validate

func (m *UpdateRoleReply) Validate() error

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

func (m *UpdateRoleReply) ValidateAll() error

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

type UpdateRoleReplyMultiError

type UpdateRoleReplyMultiError []error

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

func (UpdateRoleReplyMultiError) AllErrors

func (m UpdateRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleReplyMultiError) Error

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

type UpdateRoleReplyValidationError

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

UpdateRoleReplyValidationError is the validation error returned by UpdateRoleReply.Validate if the designated constraints aren't met.

func (UpdateRoleReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleReplyValidationError) ErrorName

func (e UpdateRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRoleReplyValidationError) Field

Field function returns field value.

func (UpdateRoleReplyValidationError) Key

Key function returns key value.

func (UpdateRoleReplyValidationError) Reason

Reason function returns reason value.

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    *uint32 `protobuf:"varint,2,opt,name=parentId,proto3,oneof" json:"parentId,omitempty"`
	Name        *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Status      *bool   `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetDescription

func (x *UpdateRoleRequest) GetDescription() string

func (*UpdateRoleRequest) GetId

func (x *UpdateRoleRequest) GetId() uint32

func (*UpdateRoleRequest) GetName

func (x *UpdateRoleRequest) GetName() string

func (*UpdateRoleRequest) GetParentId

func (x *UpdateRoleRequest) GetParentId() uint32

func (*UpdateRoleRequest) GetStatus

func (x *UpdateRoleRequest) GetStatus() bool

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

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

Cause function returns cause value.

func (UpdateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleRequestValidationError) Field

Field function returns field value.

func (UpdateRoleRequestValidationError) Key

Key function returns key value.

func (UpdateRoleRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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