permission

package
v0.0.0-...-895b57c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_permission_permission_proto protoreflect.FileDescriptor

Functions

func NewPermissionEndpoints

func NewPermissionEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use FindAll.ProtoReflect.Descriptor instead.

func (*FindAll) ProtoMessage

func (*FindAll) ProtoMessage()

func (*FindAll) ProtoReflect

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

func (*FindAll) Reset

func (x *FindAll) Reset()

func (*FindAll) String

func (x *FindAll) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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