permission

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPermission        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPermission          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPermission = fmt.Errorf("proto: unexpected end of group")
)
View Source
var E_Datarules = &proto.ExtensionDesc{
	ExtendedType:  (*descriptorpb.ServiceOptions)(nil),
	ExtensionType: ([]*DataRule)(nil),
	Field:         8000,
	Name:          "bidewu.datarules",
	Tag:           "bytes,8000,rep,name=datarules",
	Filename:      "permission.proto",
}
View Source
var E_Http = &proto.ExtensionDesc{
	ExtendedType:  (*descriptorpb.MethodOptions)(nil),
	ExtensionType: (*HttpRule)(nil),
	Field:         72295628,
	Name:          "bidewu.http",
	Tag:           "bytes,72295628,opt,name=http",
	Filename:      "permission.proto",
}
View Source
var Permission_name = map[int32]string{
	2: "IgnoreLogin",
	1: "LoginWithNoPermission",
	0: "NeedPerm",
}
View Source
var Permission_value = map[string]int32{
	"IgnoreLogin":           2,
	"LoginWithNoPermission": 1,
	"NeedPerm":              0,
}

Functions

This section is empty.

Types

type DataRule

type DataRule struct {
	Code                 *string  `protobuf:"bytes,1,req,name=code" json:"code,omitempty"`
	Summary              *string  `protobuf:"bytes,2,req,name=summary" json:"summary,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DataRule) Descriptor

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

func (*DataRule) GetCode

func (m *DataRule) GetCode() string

func (*DataRule) GetSummary

func (m *DataRule) GetSummary() string

func (*DataRule) Marshal

func (m *DataRule) Marshal() (dAtA []byte, err error)

func (*DataRule) MarshalTo

func (m *DataRule) MarshalTo(dAtA []byte) (int, error)

func (*DataRule) MarshalToSizedBuffer

func (m *DataRule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataRule) ProtoMessage

func (*DataRule) ProtoMessage()

func (*DataRule) Reset

func (m *DataRule) Reset()

func (*DataRule) Size

func (m *DataRule) Size() (n int)

func (*DataRule) String

func (m *DataRule) String() string

func (*DataRule) Unmarshal

func (m *DataRule) Unmarshal(dAtA []byte) error

func (*DataRule) XXX_DiscardUnknown

func (m *DataRule) XXX_DiscardUnknown()

func (*DataRule) XXX_Marshal

func (m *DataRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataRule) XXX_Merge

func (m *DataRule) XXX_Merge(src proto.Message)

func (*DataRule) XXX_Size

func (m *DataRule) XXX_Size() int

func (*DataRule) XXX_Unmarshal

func (m *DataRule) XXX_Unmarshal(b []byte) error

type HttpRule

type HttpRule struct {
	// Types that are valid to be assigned to Pattern:
	//	*HttpRule_Get
	//	*HttpRule_Post
	Pattern isHttpRule_Pattern `protobuf_oneof:"pattern"`
	//权限
	Perm *Permission `protobuf:"varint,3,req,name=perm,enum=bidewu.Permission,def=0" json:"perm,omitempty"`
	//  //权限码
	//  optional string permcode=4;
	//  //权限分类
	//  optional string permgroup=6;
	//所属系统
	App                  *string  `protobuf:"bytes,5,opt,name=app" json:"app,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HttpRule) Descriptor

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

func (*HttpRule) GetApp

func (m *HttpRule) GetApp() string

func (*HttpRule) GetGet

func (m *HttpRule) GetGet() string

func (*HttpRule) GetPattern

func (m *HttpRule) GetPattern() isHttpRule_Pattern

func (*HttpRule) GetPerm

func (m *HttpRule) GetPerm() Permission

func (*HttpRule) GetPost

func (m *HttpRule) GetPost() string

func (*HttpRule) Marshal

func (m *HttpRule) Marshal() (dAtA []byte, err error)

func (*HttpRule) MarshalTo

func (m *HttpRule) MarshalTo(dAtA []byte) (int, error)

func (*HttpRule) MarshalToSizedBuffer

func (m *HttpRule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HttpRule) ProtoMessage

func (*HttpRule) ProtoMessage()

func (*HttpRule) Reset

func (m *HttpRule) Reset()

func (*HttpRule) Size

func (m *HttpRule) Size() (n int)

func (*HttpRule) String

func (m *HttpRule) String() string

func (*HttpRule) Unmarshal

func (m *HttpRule) Unmarshal(dAtA []byte) error

func (*HttpRule) XXX_DiscardUnknown

func (m *HttpRule) XXX_DiscardUnknown()

func (*HttpRule) XXX_Marshal

func (m *HttpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HttpRule) XXX_Merge

func (m *HttpRule) XXX_Merge(src proto.Message)

func (*HttpRule) XXX_OneofWrappers

func (*HttpRule) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*HttpRule) XXX_Size

func (m *HttpRule) XXX_Size() int

func (*HttpRule) XXX_Unmarshal

func (m *HttpRule) XXX_Unmarshal(b []byte) error

type HttpRule_Get

type HttpRule_Get struct {
	Get string `protobuf:"bytes,1,opt,name=get,oneof" json:"get,omitempty"`
}

func (*HttpRule_Get) MarshalTo

func (m *HttpRule_Get) MarshalTo(dAtA []byte) (int, error)

func (*HttpRule_Get) MarshalToSizedBuffer

func (m *HttpRule_Get) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HttpRule_Get) Size

func (m *HttpRule_Get) Size() (n int)

type HttpRule_Post

type HttpRule_Post struct {
	Post string `protobuf:"bytes,2,opt,name=post,oneof" json:"post,omitempty"`
}

func (*HttpRule_Post) MarshalTo

func (m *HttpRule_Post) MarshalTo(dAtA []byte) (int, error)

func (*HttpRule_Post) MarshalToSizedBuffer

func (m *HttpRule_Post) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HttpRule_Post) Size

func (m *HttpRule_Post) Size() (n int)

type Permission

type Permission int32
const (
	Permission_IgnoreLogin           Permission = 2
	Permission_LoginWithNoPermission Permission = 1
	Permission_NeedPerm              Permission = 0
)
const Default_HttpRule_Perm Permission = Permission_NeedPerm

func (Permission) Enum

func (x Permission) Enum() *Permission

func (Permission) EnumDescriptor

func (Permission) EnumDescriptor() ([]byte, []int)

func (Permission) String

func (x Permission) String() string

func (*Permission) UnmarshalJSON

func (x *Permission) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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