|
|
@ -33,6 +33,7 @@ var _ = time.Kitchen
|
|
|
|
// proto package needs to be updated.
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 权限
|
|
|
|
type Permission struct {
|
|
|
|
type Permission struct {
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
|
|
|
|
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
|
|
|
@ -125,50 +126,7 @@ func (m *Permission) GetUpdatedAt() *time.Time {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type DeletePermissionRequest struct {
|
|
|
|
// 权限请求
|
|
|
|
Id []int64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) Reset() { *m = DeletePermissionRequest{} }
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
|
|
|
func (*DeletePermissionRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (*DeletePermissionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{1}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
|
|
|
if deterministic {
|
|
|
|
|
|
|
|
return xxx_messageInfo_DeletePermissionRequest.Marshal(b, m, deterministic)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
b = b[:cap(b)]
|
|
|
|
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return b[:n], nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
|
|
|
|
xxx_messageInfo_DeletePermissionRequest.Merge(m, src)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) XXX_Size() int {
|
|
|
|
|
|
|
|
return m.Size()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) XXX_DiscardUnknown() {
|
|
|
|
|
|
|
|
xxx_messageInfo_DeletePermissionRequest.DiscardUnknown(m)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeletePermissionRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) GetId() []int64 {
|
|
|
|
|
|
|
|
if m != nil {
|
|
|
|
|
|
|
|
return m.Id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type GetPermissionRequest struct {
|
|
|
|
type GetPermissionRequest struct {
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -177,7 +135,7 @@ func (m *GetPermissionRequest) Reset() { *m = GetPermissionRequest{} }
|
|
|
|
func (m *GetPermissionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *GetPermissionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetPermissionRequest) ProtoMessage() {}
|
|
|
|
func (*GetPermissionRequest) ProtoMessage() {}
|
|
|
|
func (*GetPermissionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
func (*GetPermissionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{2}
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{1}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *GetPermissionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
func (m *GetPermissionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
return m.Unmarshal(b)
|
|
|
@ -213,6 +171,7 @@ func (m *GetPermissionRequest) GetId() int64 {
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 权限响应
|
|
|
|
type GetPermissionReply struct {
|
|
|
|
type GetPermissionReply struct {
|
|
|
|
Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
|
|
|
|
Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -221,7 +180,7 @@ func (m *GetPermissionReply) Reset() { *m = GetPermissionReply{} }
|
|
|
|
func (m *GetPermissionReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *GetPermissionReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetPermissionReply) ProtoMessage() {}
|
|
|
|
func (*GetPermissionReply) ProtoMessage() {}
|
|
|
|
func (*GetPermissionReply) Descriptor() ([]byte, []int) {
|
|
|
|
func (*GetPermissionReply) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{3}
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{2}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *GetPermissionReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
func (m *GetPermissionReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
return m.Unmarshal(b)
|
|
|
@ -257,6 +216,7 @@ func (m *GetPermissionReply) GetPermission() *Permission {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 权限列表请求
|
|
|
|
type ListPermissionRequest struct {
|
|
|
|
type ListPermissionRequest struct {
|
|
|
|
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
|
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
|
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
|
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
@ -269,7 +229,7 @@ func (m *ListPermissionRequest) Reset() { *m = ListPermissionRequest{} }
|
|
|
|
func (m *ListPermissionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *ListPermissionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListPermissionRequest) ProtoMessage() {}
|
|
|
|
func (*ListPermissionRequest) ProtoMessage() {}
|
|
|
|
func (*ListPermissionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
func (*ListPermissionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{4}
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{3}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *ListPermissionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
func (m *ListPermissionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
return m.Unmarshal(b)
|
|
|
@ -333,6 +293,7 @@ func (m *ListPermissionRequest) GetPath() string {
|
|
|
|
return ""
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 权限列表响应
|
|
|
|
type ListPermissionReply struct {
|
|
|
|
type ListPermissionReply struct {
|
|
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
|
Permission []*Permission `protobuf:"bytes,2,rep,name=permission,proto3" json:"permission,omitempty"`
|
|
|
|
Permission []*Permission `protobuf:"bytes,2,rep,name=permission,proto3" json:"permission,omitempty"`
|
|
|
@ -342,7 +303,7 @@ func (m *ListPermissionReply) Reset() { *m = ListPermissionReply{} }
|
|
|
|
func (m *ListPermissionReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *ListPermissionReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListPermissionReply) ProtoMessage() {}
|
|
|
|
func (*ListPermissionReply) ProtoMessage() {}
|
|
|
|
func (*ListPermissionReply) Descriptor() ([]byte, []int) {
|
|
|
|
func (*ListPermissionReply) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{5}
|
|
|
|
return fileDescriptor_6f5311b1c95edab2, []int{4}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *ListPermissionReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
func (m *ListPermissionReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
return m.Unmarshal(b)
|
|
|
@ -387,7 +348,6 @@ func (m *ListPermissionReply) GetPermission() []*Permission {
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Permission)(nil), "api.v1.Permission")
|
|
|
|
proto.RegisterType((*Permission)(nil), "api.v1.Permission")
|
|
|
|
proto.RegisterType((*DeletePermissionRequest)(nil), "api.v1.DeletePermissionRequest")
|
|
|
|
|
|
|
|
proto.RegisterType((*GetPermissionRequest)(nil), "api.v1.GetPermissionRequest")
|
|
|
|
proto.RegisterType((*GetPermissionRequest)(nil), "api.v1.GetPermissionRequest")
|
|
|
|
proto.RegisterType((*GetPermissionReply)(nil), "api.v1.GetPermissionReply")
|
|
|
|
proto.RegisterType((*GetPermissionReply)(nil), "api.v1.GetPermissionReply")
|
|
|
|
proto.RegisterType((*ListPermissionRequest)(nil), "api.v1.ListPermissionRequest")
|
|
|
|
proto.RegisterType((*ListPermissionRequest)(nil), "api.v1.ListPermissionRequest")
|
|
|
@ -397,42 +357,41 @@ func init() {
|
|
|
|
func init() { proto.RegisterFile("api/v1/permission.proto", fileDescriptor_6f5311b1c95edab2) }
|
|
|
|
func init() { proto.RegisterFile("api/v1/permission.proto", fileDescriptor_6f5311b1c95edab2) }
|
|
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_6f5311b1c95edab2 = []byte{
|
|
|
|
var fileDescriptor_6f5311b1c95edab2 = []byte{
|
|
|
|
// 549 bytes of a gzipped FileDescriptorProto
|
|
|
|
// 534 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xc1, 0x6e, 0xd3, 0x40,
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
|
|
|
|
0x10, 0x86, 0xb3, 0x76, 0x12, 0xd4, 0x89, 0x5a, 0xc1, 0x12, 0x1a, 0xe3, 0xb6, 0x8e, 0xe5, 0x03,
|
|
|
|
0x10, 0xce,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, 0xc9, 0x53,
|
|
|
|
0xbf, 0x9e, 0x66, 0x04, 0x00, 0x00,
|
|
|
|
0xe7, 0x91, 0x04, 0x00, 0x00,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
@ -447,8 +406,11 @@ const _ = grpc.SupportPackageIsVersion4
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type PermissionAPIClient interface {
|
|
|
|
type PermissionAPIClient interface {
|
|
|
|
|
|
|
|
// 更新权限信息。这里只能操作title和description
|
|
|
|
UpdatePermission(ctx context.Context, in *Permission, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
|
UpdatePermission(ctx context.Context, in *Permission, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
|
|
|
|
|
// 查询权限信息
|
|
|
|
GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*Permission, error)
|
|
|
|
GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*Permission, error)
|
|
|
|
|
|
|
|
// 查询权限列表
|
|
|
|
ListPermission(ctx context.Context, in *ListPermissionRequest, opts ...grpc.CallOption) (*ListPermissionReply, error)
|
|
|
|
ListPermission(ctx context.Context, in *ListPermissionRequest, opts ...grpc.CallOption) (*ListPermissionReply, error)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -489,8 +451,11 @@ func (c *permissionAPIClient) ListPermission(ctx context.Context, in *ListPermis
|
|
|
|
|
|
|
|
|
|
|
|
// PermissionAPIServer is the server API for PermissionAPI service.
|
|
|
|
// PermissionAPIServer is the server API for PermissionAPI service.
|
|
|
|
type PermissionAPIServer interface {
|
|
|
|
type PermissionAPIServer interface {
|
|
|
|
|
|
|
|
// 更新权限信息。这里只能操作title和description
|
|
|
|
UpdatePermission(context.Context, *Permission) (*emptypb.Empty, error)
|
|
|
|
UpdatePermission(context.Context, *Permission) (*emptypb.Empty, error)
|
|
|
|
|
|
|
|
// 查询权限信息
|
|
|
|
GetPermission(context.Context, *GetPermissionRequest) (*Permission, error)
|
|
|
|
GetPermission(context.Context, *GetPermissionRequest) (*Permission, error)
|
|
|
|
|
|
|
|
// 查询权限列表
|
|
|
|
ListPermission(context.Context, *ListPermissionRequest) (*ListPermissionReply, error)
|
|
|
|
ListPermission(context.Context, *ListPermissionRequest) (*ListPermissionReply, error)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -663,48 +628,6 @@ func (m *Permission) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
|
|
|
size := m.Size()
|
|
|
|
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
|
|
|
|
size := m.Size()
|
|
|
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
|
|
|
i := len(dAtA)
|
|
|
|
|
|
|
|
_ = i
|
|
|
|
|
|
|
|
var l int
|
|
|
|
|
|
|
|
_ = l
|
|
|
|
|
|
|
|
if len(m.Id) > 0 {
|
|
|
|
|
|
|
|
dAtA4 := make([]byte, len(m.Id)*10)
|
|
|
|
|
|
|
|
var j3 int
|
|
|
|
|
|
|
|
for _, num1 := range m.Id {
|
|
|
|
|
|
|
|
num := uint64(num1)
|
|
|
|
|
|
|
|
for num >= 1<<7 {
|
|
|
|
|
|
|
|
dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
|
|
|
|
|
num >>= 7
|
|
|
|
|
|
|
|
j3++
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dAtA4[j3] = uint8(num)
|
|
|
|
|
|
|
|
j3++
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
i -= j3
|
|
|
|
|
|
|
|
copy(dAtA[i:], dAtA4[:j3])
|
|
|
|
|
|
|
|
i = encodeVarintPermission(dAtA, i, uint64(j3))
|
|
|
|
|
|
|
|
i--
|
|
|
|
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *GetPermissionRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
func (m *GetPermissionRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
dAtA = make([]byte, size)
|
|
|
@ -913,22 +836,6 @@ func (m *Permission) Size() (n int) {
|
|
|
|
return n
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DeletePermissionRequest) Size() (n int) {
|
|
|
|
|
|
|
|
if m == nil {
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var l int
|
|
|
|
|
|
|
|
_ = l
|
|
|
|
|
|
|
|
if len(m.Id) > 0 {
|
|
|
|
|
|
|
|
l = 0
|
|
|
|
|
|
|
|
for _, e := range m.Id {
|
|
|
|
|
|
|
|
l += sovPermission(uint64(e))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
n += 1 + sovPermission(uint64(l)) + l
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return n
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *GetPermissionRequest) Size() (n int) {
|
|
|
|
func (m *GetPermissionRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
@ -1276,132 +1183,6 @@ func (m *Permission) Unmarshal(dAtA []byte) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *DeletePermissionRequest) Unmarshal(dAtA []byte) error {
|
|
|
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
|
|
|
var wire uint64
|
|
|
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
|
|
|
return ErrIntOverflowPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
|
|
|
iNdEx++
|
|
|
|
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
|
|
|
return fmt.Errorf("proto: DeletePermissionRequest: wiretype end group for non-group")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
|
|
|
return fmt.Errorf("proto: DeletePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
if wireType == 0 {
|
|
|
|
|
|
|
|
var v int64
|
|
|
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
|
|
|
return ErrIntOverflowPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
|
|
|
iNdEx++
|
|
|
|
|
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
m.Id = append(m.Id, v)
|
|
|
|
|
|
|
|
} else if wireType == 2 {
|
|
|
|
|
|
|
|
var packedLen int
|
|
|
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
|
|
|
return ErrIntOverflowPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
|
|
|
iNdEx++
|
|
|
|
|
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if packedLen < 0 {
|
|
|
|
|
|
|
|
return ErrInvalidLengthPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
postIndex := iNdEx + packedLen
|
|
|
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
|
|
|
return ErrInvalidLengthPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var elementCount int
|
|
|
|
|
|
|
|
var count int
|
|
|
|
|
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
|
|
|
|
|
if integer < 128 {
|
|
|
|
|
|
|
|
count++
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
elementCount = count
|
|
|
|
|
|
|
|
if elementCount != 0 && len(m.Id) == 0 {
|
|
|
|
|
|
|
|
m.Id = make([]int64, 0, elementCount)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for iNdEx < postIndex {
|
|
|
|
|
|
|
|
var v int64
|
|
|
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
|
|
|
return ErrIntOverflowPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
|
|
|
iNdEx++
|
|
|
|
|
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
m.Id = append(m.Id, v)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
|
|
|
skippy, err := skipPermission(dAtA[iNdEx:])
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
|
|
|
|
|
return ErrInvalidLengthPermission
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetPermissionRequest) Unmarshal(dAtA []byte) error {
|
|
|
|
func (m *GetPermissionRequest) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
iNdEx := 0
|
|
|
|