Documentation ¶
Index ¶
- Variables
- func NewPermissionEndpoints() []*api.Endpoint
- func RegisterPermissionHandler(s server.Server, hdlr PermissionHandler, opts ...server.HandlerOption) error
- type AllPermission
- type FindAll
- type PermissionHandler
- type PermissionId
- type PermissionInfo
- func (*PermissionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionInfo) GetId() int64
- func (x *PermissionInfo) GetPermissionAction() string
- func (x *PermissionInfo) GetPermissionDescribe() string
- func (x *PermissionInfo) GetPermissionName() string
- func (x *PermissionInfo) GetPermissionStatus() int32
- func (*PermissionInfo) ProtoMessage()
- func (x *PermissionInfo) ProtoReflect() protoreflect.Message
- func (x *PermissionInfo) Reset()
- func (x *PermissionInfo) String() string
- type PermissionService
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_permission_permission_proto protoreflect.FileDescriptor
Functions ¶
func NewPermissionEndpoints ¶
func RegisterPermissionHandler ¶
func RegisterPermissionHandler(s server.Server, hdlr PermissionHandler, opts ...server.HandlerOption) error
Types ¶
type AllPermission ¶
type AllPermission struct { PermissionInfo []*PermissionInfo `protobuf:"bytes,1,rep,name=permission_info,json=permissionInfo,proto3" json:"permission_info,omitempty"` // contains filtered or unexported fields }
func (*AllPermission) Descriptor
deprecated
func (*AllPermission) Descriptor() ([]byte, []int)
Deprecated: Use AllPermission.ProtoReflect.Descriptor instead.
func (*AllPermission) GetPermissionInfo ¶
func (x *AllPermission) GetPermissionInfo() []*PermissionInfo
func (*AllPermission) ProtoMessage ¶
func (*AllPermission) ProtoMessage()
func (*AllPermission) ProtoReflect ¶
func (x *AllPermission) ProtoReflect() protoreflect.Message
func (*AllPermission) Reset ¶
func (x *AllPermission) Reset()
func (*AllPermission) String ¶
func (x *AllPermission) String() string
type FindAll ¶
type FindAll struct {
// contains filtered or unexported fields
}
func (*FindAll) Descriptor
deprecated
func (*FindAll) ProtoMessage ¶
func (*FindAll) ProtoMessage()
func (*FindAll) ProtoReflect ¶
func (x *FindAll) ProtoReflect() protoreflect.Message
type PermissionHandler ¶
type PermissionHandler interface { //对外提供添加服务 AddPermission(context.Context, *PermissionInfo, *Response) error DeletePermission(context.Context, *PermissionId, *Response) error UpdatePermission(context.Context, *PermissionInfo, *Response) error FindPermissionByID(context.Context, *PermissionId, *PermissionInfo) error FindAllPermission(context.Context, *FindAll, *AllPermission) error }
type PermissionId ¶
type PermissionId struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PermissionId) Descriptor
deprecated
func (*PermissionId) Descriptor() ([]byte, []int)
Deprecated: Use PermissionId.ProtoReflect.Descriptor instead.
func (*PermissionId) GetId ¶
func (x *PermissionId) GetId() int64
func (*PermissionId) ProtoMessage ¶
func (*PermissionId) ProtoMessage()
func (*PermissionId) ProtoReflect ¶
func (x *PermissionId) ProtoReflect() protoreflect.Message
func (*PermissionId) Reset ¶
func (x *PermissionId) Reset()
func (*PermissionId) String ¶
func (x *PermissionId) String() string
type PermissionInfo ¶
type PermissionInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PermissionName string `protobuf:"bytes,2,opt,name=permission_name,json=permissionName,proto3" json:"permission_name,omitempty"` PermissionDescribe string `protobuf:"bytes,3,opt,name=permission_describe,json=permissionDescribe,proto3" json:"permission_describe,omitempty"` PermissionAction string `protobuf:"bytes,4,opt,name=permission_action,json=permissionAction,proto3" json:"permission_action,omitempty"` PermissionStatus int32 `protobuf:"varint,5,opt,name=permission_status,json=permissionStatus,proto3" json:"permission_status,omitempty"` // contains filtered or unexported fields }
func (*PermissionInfo) Descriptor
deprecated
func (*PermissionInfo) Descriptor() ([]byte, []int)
Deprecated: Use PermissionInfo.ProtoReflect.Descriptor instead.
func (*PermissionInfo) GetId ¶
func (x *PermissionInfo) GetId() int64
func (*PermissionInfo) GetPermissionAction ¶
func (x *PermissionInfo) GetPermissionAction() string
func (*PermissionInfo) GetPermissionDescribe ¶
func (x *PermissionInfo) GetPermissionDescribe() string
func (*PermissionInfo) GetPermissionName ¶
func (x *PermissionInfo) GetPermissionName() string
func (*PermissionInfo) GetPermissionStatus ¶
func (x *PermissionInfo) GetPermissionStatus() int32
func (*PermissionInfo) ProtoMessage ¶
func (*PermissionInfo) ProtoMessage()
func (*PermissionInfo) ProtoReflect ¶
func (x *PermissionInfo) ProtoReflect() protoreflect.Message
func (*PermissionInfo) Reset ¶
func (x *PermissionInfo) Reset()
func (*PermissionInfo) String ¶
func (x *PermissionInfo) String() string
type PermissionService ¶
type PermissionService interface { //对外提供添加服务 AddPermission(ctx context.Context, in *PermissionInfo, opts ...client.CallOption) (*Response, error) DeletePermission(ctx context.Context, in *PermissionId, opts ...client.CallOption) (*Response, error) UpdatePermission(ctx context.Context, in *PermissionInfo, opts ...client.CallOption) (*Response, error) FindPermissionByID(ctx context.Context, in *PermissionId, opts ...client.CallOption) (*PermissionInfo, error) FindAllPermission(ctx context.Context, in *FindAll, opts ...client.CallOption) (*AllPermission, error) }
func NewPermissionService ¶
func NewPermissionService(name string, c client.Client) PermissionService
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.