role

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const OperationRoleCreateRole = "/api.auth.role.Role/CreateRole"
View Source
const OperationRoleDeleteRole = "/api.auth.role.Role/DeleteRole"
View Source
const OperationRoleDeleteRoleNavigation = "/api.auth.role.Role/DeleteRoleNavigation"
View Source
const OperationRoleGetRole = "/api.auth.role.Role/GetRole"
View Source
const OperationRoleListRole = "/api.auth.role.Role/ListRole"
View Source
const OperationRoleListRoleNavigationByRoleIDList = "/api.auth.role.Role/ListRoleNavigationByRoleIDList"
View Source
const OperationRolePostRoleNavigation = "/api.auth.role.Role/PostRoleNavigation"
View Source
const OperationRoleUpdateRole = "/api.auth.role.Role/UpdateRole"

Variables

View Source
var File_api_auth_role_role_proto protoreflect.FileDescriptor
View Source
var Role_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.auth.role.Role",
	HandlerType: (*RoleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRole",
			Handler:    _Role_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _Role_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _Role_DeleteRole_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _Role_GetRole_Handler,
		},
		{
			MethodName: "ListRole",
			Handler:    _Role_ListRole_Handler,
		},
		{
			MethodName: "PostRoleNavigation",
			Handler:    _Role_PostRoleNavigation_Handler,
		},
		{
			MethodName: "DeleteRoleNavigation",
			Handler:    _Role_DeleteRoleNavigation_Handler,
		},
		{
			MethodName: "ListRoleNavigationByRoleIDList",
			Handler:    _Role_ListRoleNavigationByRoleIDList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/auth/role/role.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 CreateRoleNavigationRequest

type CreateRoleNavigationRequest struct {
	RoleID       string   `protobuf:"bytes,1,opt,name=roleID,proto3" json:"roleID,omitempty"`
	NavigationID []string `protobuf:"bytes,2,rep,name=navigationID,proto3" json:"navigationID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleNavigationRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleNavigationRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleNavigationRequest) GetNavigationID

func (x *CreateRoleNavigationRequest) GetNavigationID() []string

func (*CreateRoleNavigationRequest) GetRoleID

func (x *CreateRoleNavigationRequest) GetRoleID() string

func (*CreateRoleNavigationRequest) ProtoMessage

func (*CreateRoleNavigationRequest) ProtoMessage()

func (*CreateRoleNavigationRequest) ProtoReflect

func (*CreateRoleNavigationRequest) Reset

func (x *CreateRoleNavigationRequest) Reset()

func (*CreateRoleNavigationRequest) String

func (x *CreateRoleNavigationRequest) String() string

func (*CreateRoleNavigationRequest) Validate

func (m *CreateRoleNavigationRequest) Validate() error

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

func (m *CreateRoleNavigationRequest) ValidateAll() error

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

type CreateRoleNavigationRequestMultiError

type CreateRoleNavigationRequestMultiError []error

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

func (CreateRoleNavigationRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateRoleNavigationRequestMultiError) Error

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

type CreateRoleNavigationRequestValidationError

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

CreateRoleNavigationRequestValidationError is the validation error returned by CreateRoleNavigationRequest.Validate if the designated constraints aren't met.

func (CreateRoleNavigationRequestValidationError) Cause

Cause function returns cause value.

func (CreateRoleNavigationRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleNavigationRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleNavigationRequestValidationError) Field

Field function returns field value.

func (CreateRoleNavigationRequestValidationError) Key

Key function returns key value.

func (CreateRoleNavigationRequestValidationError) Reason

Reason function returns reason value.

type CreateRoleReply

type CreateRoleReply struct {
	RoleName  string `protobuf:"bytes,1,opt,name=roleName,proto3" json:"roleName,omitempty"`
	Status    bool   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	CreatedBy string `protobuf:"bytes,3,opt,name=createdBy,proto3" json:"createdBy,omitempty"`
	Id        string `protobuf:"bytes,4,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) GetCreatedBy

func (x *CreateRoleReply) GetCreatedBy() string

func (*CreateRoleReply) GetId

func (x *CreateRoleReply) GetId() string

func (*CreateRoleReply) GetRoleName

func (x *CreateRoleReply) GetRoleName() string

func (*CreateRoleReply) GetStatus

func (x *CreateRoleReply) GetStatus() bool

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 {
	RoleName string `protobuf:"bytes,1,opt,name=roleName,proto3" json:"roleName,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetRoleName

func (x *CreateRoleRequest) GetRoleName() string

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 GetRoleReply

type GetRoleReply struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"`
	Status   bool   `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	RoleType int32  `protobuf:"varint,4,opt,name=roleType,proto3" json:"roleType,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleReply) Descriptor deprecated

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

Deprecated: Use GetRoleReply.ProtoReflect.Descriptor instead.

func (*GetRoleReply) GetId

func (x *GetRoleReply) GetId() string

func (*GetRoleReply) GetRoleName

func (x *GetRoleReply) GetRoleName() string

func (*GetRoleReply) GetRoleType

func (x *GetRoleReply) GetRoleType() int32

func (*GetRoleReply) GetStatus

func (x *GetRoleReply) GetStatus() bool

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 {
	Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleRequest) Descriptor deprecated

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

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetStatus

func (x *GetRoleRequest) GetStatus() bool

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 ListRoleNavigationRequest

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

func (*ListRoleNavigationRequest) Descriptor deprecated

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

Deprecated: Use ListRoleNavigationRequest.ProtoReflect.Descriptor instead.

func (*ListRoleNavigationRequest) GetRoleID

func (x *ListRoleNavigationRequest) GetRoleID() string

func (*ListRoleNavigationRequest) ProtoMessage

func (*ListRoleNavigationRequest) ProtoMessage()

func (*ListRoleNavigationRequest) ProtoReflect

func (*ListRoleNavigationRequest) Reset

func (x *ListRoleNavigationRequest) Reset()

func (*ListRoleNavigationRequest) String

func (x *ListRoleNavigationRequest) String() string

func (*ListRoleNavigationRequest) Validate

func (m *ListRoleNavigationRequest) Validate() error

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

func (m *ListRoleNavigationRequest) ValidateAll() error

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

type ListRoleNavigationRequestMultiError

type ListRoleNavigationRequestMultiError []error

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

func (ListRoleNavigationRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListRoleNavigationRequestMultiError) Error

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

type ListRoleNavigationRequestValidationError

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

ListRoleNavigationRequestValidationError is the validation error returned by ListRoleNavigationRequest.Validate if the designated constraints aren't met.

func (ListRoleNavigationRequestValidationError) Cause

Cause function returns cause value.

func (ListRoleNavigationRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoleNavigationRequestValidationError) ErrorName

ErrorName returns error name.

func (ListRoleNavigationRequestValidationError) Field

Field function returns field value.

func (ListRoleNavigationRequestValidationError) Key

Key function returns key value.

func (ListRoleNavigationRequestValidationError) Reason

Reason function returns reason value.

type ListRoleNavigationResponse

type ListRoleNavigationResponse struct {
	Navigations []*ListRoleNavigationResponse_NavigationReply `protobuf:"bytes,1,rep,name=navigations,proto3" json:"navigations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleNavigationResponse) Descriptor deprecated

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

Deprecated: Use ListRoleNavigationResponse.ProtoReflect.Descriptor instead.

func (*ListRoleNavigationResponse) GetNavigations

func (*ListRoleNavigationResponse) ProtoMessage

func (*ListRoleNavigationResponse) ProtoMessage()

func (*ListRoleNavigationResponse) ProtoReflect

func (*ListRoleNavigationResponse) Reset

func (x *ListRoleNavigationResponse) Reset()

func (*ListRoleNavigationResponse) String

func (x *ListRoleNavigationResponse) String() string

func (*ListRoleNavigationResponse) Validate

func (m *ListRoleNavigationResponse) Validate() error

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

func (m *ListRoleNavigationResponse) ValidateAll() error

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

type ListRoleNavigationResponseMultiError

type ListRoleNavigationResponseMultiError []error

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

func (ListRoleNavigationResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListRoleNavigationResponseMultiError) Error

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

type ListRoleNavigationResponseValidationError

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

ListRoleNavigationResponseValidationError is the validation error returned by ListRoleNavigationResponse.Validate if the designated constraints aren't met.

func (ListRoleNavigationResponseValidationError) Cause

Cause function returns cause value.

func (ListRoleNavigationResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRoleNavigationResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRoleNavigationResponseValidationError) Field

Field function returns field value.

func (ListRoleNavigationResponseValidationError) Key

Key function returns key value.

func (ListRoleNavigationResponseValidationError) Reason

Reason function returns reason value.

type ListRoleNavigationResponse_NavigationReply

type ListRoleNavigationResponse_NavigationReply struct {
	NavigationName string `protobuf:"bytes,1,opt,name=navigationName,proto3" json:"navigationName,omitempty"`
	NavigationID   string `protobuf:"bytes,2,opt,name=navigationID,proto3" json:"navigationID,omitempty"`
	Id             string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	BindID         string `protobuf:"bytes,4,opt,name=bindID,proto3" json:"bindID,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleNavigationResponse_NavigationReply) Descriptor deprecated

Deprecated: Use ListRoleNavigationResponse_NavigationReply.ProtoReflect.Descriptor instead.

func (*ListRoleNavigationResponse_NavigationReply) GetBindID

func (*ListRoleNavigationResponse_NavigationReply) GetId

func (*ListRoleNavigationResponse_NavigationReply) GetNavigationID

func (*ListRoleNavigationResponse_NavigationReply) GetNavigationName

func (x *ListRoleNavigationResponse_NavigationReply) GetNavigationName() string

func (*ListRoleNavigationResponse_NavigationReply) ProtoMessage

func (*ListRoleNavigationResponse_NavigationReply) ProtoReflect

func (*ListRoleNavigationResponse_NavigationReply) Reset

func (*ListRoleNavigationResponse_NavigationReply) String

func (*ListRoleNavigationResponse_NavigationReply) Validate

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

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

type ListRoleNavigationResponse_NavigationReplyMultiError

type ListRoleNavigationResponse_NavigationReplyMultiError []error

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

func (ListRoleNavigationResponse_NavigationReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListRoleNavigationResponse_NavigationReplyMultiError) Error

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

type ListRoleNavigationResponse_NavigationReplyValidationError

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

ListRoleNavigationResponse_NavigationReplyValidationError is the validation error returned by ListRoleNavigationResponse_NavigationReply.Validate if the designated constraints aren't met.

func (ListRoleNavigationResponse_NavigationReplyValidationError) Cause

Cause function returns cause value.

func (ListRoleNavigationResponse_NavigationReplyValidationError) Error

Error satisfies the builtin error interface

func (ListRoleNavigationResponse_NavigationReplyValidationError) ErrorName

ErrorName returns error name.

func (ListRoleNavigationResponse_NavigationReplyValidationError) Field

Field function returns field value.

func (ListRoleNavigationResponse_NavigationReplyValidationError) Key

Key function returns key value.

func (ListRoleNavigationResponse_NavigationReplyValidationError) Reason

Reason function returns reason value.

type ListRoleReply

type ListRoleReply struct {
	DataList []*GetRoleReply `protobuf:"bytes,1,rep,name=dataList,proto3" json:"dataList,omitempty"`
	Total    int32           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Page     int32           `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PerPage  int32           `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleReply) Descriptor deprecated

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

Deprecated: Use ListRoleReply.ProtoReflect.Descriptor instead.

func (*ListRoleReply) GetDataList

func (x *ListRoleReply) GetDataList() []*GetRoleReply

func (*ListRoleReply) GetPage

func (x *ListRoleReply) GetPage() int32

func (*ListRoleReply) GetPerPage

func (x *ListRoleReply) GetPerPage() int32

func (*ListRoleReply) GetTotal

func (x *ListRoleReply) GetTotal() int32

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 RoleClient

type RoleClient interface {
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*api.Success, error)
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*api.Success, error)
	DeleteRole(ctx context.Context, in *api.IDListRequest, opts ...grpc.CallOption) (*api.Success, error)
	GetRole(ctx context.Context, in *api.IDRequest, opts ...grpc.CallOption) (*GetRoleReply, error)
	ListRole(ctx context.Context, in *api.PageSearch, opts ...grpc.CallOption) (*ListRoleReply, error)
	PostRoleNavigation(ctx context.Context, in *CreateRoleNavigationRequest, opts ...grpc.CallOption) (*api.Success, error)
	DeleteRoleNavigation(ctx context.Context, in *api.IDListRequest, opts ...grpc.CallOption) (*api.Success, error)
	ListRoleNavigationByRoleIDList(ctx context.Context, in *ListRoleNavigationRequest, opts ...grpc.CallOption) (*ListRoleNavigationResponse, 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 *api.Success, err error)
	DeleteRole(ctx context.Context, req *api.IDListRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	DeleteRoleNavigation(ctx context.Context, req *api.IDListRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	GetRole(ctx context.Context, req *api.IDRequest, opts ...http.CallOption) (rsp *GetRoleReply, err error)
	ListRole(ctx context.Context, req *api.PageSearch, opts ...http.CallOption) (rsp *ListRoleReply, err error)
	ListRoleNavigationByRoleIDList(ctx context.Context, req *ListRoleNavigationRequest, opts ...http.CallOption) (rsp *ListRoleNavigationResponse, err error)
	PostRoleNavigation(ctx context.Context, req *CreateRoleNavigationRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *api.Success, err error)
}

func NewRoleHTTPClient

func NewRoleHTTPClient(client *http.Client) RoleHTTPClient

type RoleHTTPClientImpl

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

func (*RoleHTTPClientImpl) CreateRole

func (c *RoleHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*api.Success, error)

func (*RoleHTTPClientImpl) DeleteRole

func (c *RoleHTTPClientImpl) DeleteRole(ctx context.Context, in *api.IDListRequest, opts ...http.CallOption) (*api.Success, error)

func (*RoleHTTPClientImpl) DeleteRoleNavigation

func (c *RoleHTTPClientImpl) DeleteRoleNavigation(ctx context.Context, in *api.IDListRequest, opts ...http.CallOption) (*api.Success, error)

func (*RoleHTTPClientImpl) GetRole

func (c *RoleHTTPClientImpl) GetRole(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*GetRoleReply, error)

func (*RoleHTTPClientImpl) ListRole

func (c *RoleHTTPClientImpl) ListRole(ctx context.Context, in *api.PageSearch, opts ...http.CallOption) (*ListRoleReply, error)

func (*RoleHTTPClientImpl) ListRoleNavigationByRoleIDList

func (c *RoleHTTPClientImpl) ListRoleNavigationByRoleIDList(ctx context.Context, in *ListRoleNavigationRequest, opts ...http.CallOption) (*ListRoleNavigationResponse, error)

func (*RoleHTTPClientImpl) PostRoleNavigation

func (c *RoleHTTPClientImpl) PostRoleNavigation(ctx context.Context, in *CreateRoleNavigationRequest, opts ...http.CallOption) (*api.Success, error)

func (*RoleHTTPClientImpl) UpdateRole

func (c *RoleHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*api.Success, error)

type RoleServer

type RoleServer interface {
	CreateRole(context.Context, *CreateRoleRequest) (*api.Success, error)
	UpdateRole(context.Context, *UpdateRoleRequest) (*api.Success, error)
	DeleteRole(context.Context, *api.IDListRequest) (*api.Success, error)
	GetRole(context.Context, *api.IDRequest) (*GetRoleReply, error)
	ListRole(context.Context, *api.PageSearch) (*ListRoleReply, error)
	PostRoleNavigation(context.Context, *CreateRoleNavigationRequest) (*api.Success, error)
	DeleteRoleNavigation(context.Context, *api.IDListRequest) (*api.Success, error)
	ListRoleNavigationByRoleIDList(context.Context, *ListRoleNavigationRequest) (*ListRoleNavigationResponse, 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) DeleteRoleNavigation

func (UnimplementedRoleServer) GetRole

func (UnimplementedRoleServer) ListRole

func (UnimplementedRoleServer) ListRoleNavigationByRoleIDList

func (UnimplementedRoleServer) PostRoleNavigation

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 UpdateRoleRequest

type UpdateRoleRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"`
	Status   bool   `protobuf:"varint,3,opt,name=status,proto3" json:"status,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() string

func (*UpdateRoleRequest) GetRoleName

func (x *UpdateRoleRequest) GetRoleName() string

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