代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v4.25.1
// source: jmash/rbac/protobuf/rbac_perm_message.proto
package rbac
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 权限表查询
type PermReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 当前页码
CurPage int32 `protobuf:"varint,2,opt,name=cur_page,json=curPage,proto3" json:"cur_page,omitempty"`
// 页尺寸
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 排序名称
OrderName string `protobuf:"bytes,4,opt,name=order_name,json=orderName,proto3" json:"order_name,omitempty"`
// 是否升序排序
OrderAsc bool `protobuf:"varint,5,opt,name=order_asc,json=orderAsc,proto3" json:"order_asc,omitempty"`
// 权限编码
LikePermCode string `protobuf:"bytes,6,opt,name=like_perm_code,json=likePermCode,proto3" json:"like_perm_code,omitempty"`
// 权限名称
LikePermName string `protobuf:"bytes,7,opt,name=like_perm_name,json=likePermName,proto3" json:"like_perm_name,omitempty"`
}
func (x *PermReq) Reset() {
*x = PermReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermReq) ProtoMessage() {}
func (x *PermReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermReq.ProtoReflect.Descriptor instead.
func (*PermReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{0}
}
func (x *PermReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *PermReq) GetCurPage() int32 {
if x != nil {
return x.CurPage
}
return 0
}
func (x *PermReq) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *PermReq) GetOrderName() string {
if x != nil {
return x.OrderName
}
return ""
}
func (x *PermReq) GetOrderAsc() bool {
if x != nil {
return x.OrderAsc
}
return false
}
func (x *PermReq) GetLikePermCode() string {
if x != nil {
return x.LikePermCode
}
return ""
}
func (x *PermReq) GetLikePermName() string {
if x != nil {
return x.LikePermName
}
return ""
}
// 权限表实体
type PermModel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 权限ID
PermId string `protobuf:"bytes,1,opt,name=perm_id,json=permId,proto3" json:"perm_id,omitempty"`
// 权限编码
PermCode string `protobuf:"bytes,2,opt,name=perm_code,json=permCode,proto3" json:"perm_code,omitempty"`
// 权限名称
PermName string `protobuf:"bytes,3,opt,name=perm_name,json=permName,proto3" json:"perm_name,omitempty"`
}
func (x *PermModel) Reset() {
*x = PermModel{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermModel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermModel) ProtoMessage() {}
func (x *PermModel) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermModel.ProtoReflect.Descriptor instead.
func (*PermModel) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{1}
}
func (x *PermModel) GetPermId() string {
if x != nil {
return x.PermId
}
return ""
}
func (x *PermModel) GetPermCode() string {
if x != nil {
return x.PermCode
}
return ""
}
func (x *PermModel) GetPermName() string {
if x != nil {
return x.PermName
}
return ""
}
// 权限表列表
type PermList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 当前页内容
Results []*PermModel `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
}
func (x *PermList) Reset() {
*x = PermList{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermList) ProtoMessage() {}
func (x *PermList) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermList.ProtoReflect.Descriptor instead.
func (*PermList) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{2}
}
func (x *PermList) GetResults() []*PermModel {
if x != nil {
return x.Results
}
return nil
}
// 权限表分页
type PermPage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 当前页内容
Results []*PermModel `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// 当前页码
CurPage int32 `protobuf:"varint,2,opt,name=cur_page,json=curPage,proto3" json:"cur_page,omitempty"`
// 页尺寸
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 总记录数
TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// 本页小计
SubTotalDto *PermModelTotal `protobuf:"bytes,5,opt,name=sub_total_dto,json=subTotalDto,proto3" json:"sub_total_dto,omitempty"`
// 合计
TotalDto *PermModelTotal `protobuf:"bytes,6,opt,name=total_dto,json=totalDto,proto3" json:"total_dto,omitempty"`
}
func (x *PermPage) Reset() {
*x = PermPage{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermPage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermPage) ProtoMessage() {}
func (x *PermPage) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermPage.ProtoReflect.Descriptor instead.
func (*PermPage) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{3}
}
func (x *PermPage) GetResults() []*PermModel {
if x != nil {
return x.Results
}
return nil
}
func (x *PermPage) GetCurPage() int32 {
if x != nil {
return x.CurPage
}
return 0
}
func (x *PermPage) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *PermPage) GetTotalSize() int32 {
if x != nil {
return x.TotalSize
}
return 0
}
func (x *PermPage) GetSubTotalDto() *PermModelTotal {
if x != nil {
return x.SubTotalDto
}
return nil
}
func (x *PermPage) GetTotalDto() *PermModelTotal {
if x != nil {
return x.TotalDto
}
return nil
}
// 合计
type PermModelTotal struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 总记录数
TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
}
func (x *PermModelTotal) Reset() {
*x = PermModelTotal{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermModelTotal) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermModelTotal) ProtoMessage() {}
func (x *PermModelTotal) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermModelTotal.ProtoReflect.Descriptor instead.
func (*PermModelTotal) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{4}
}
func (x *PermModelTotal) GetTotalSize() int32 {
if x != nil {
return x.TotalSize
}
return 0
}
// 权限表Key
type PermKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
PermId string `protobuf:"bytes,2,opt,name=perm_id,json=permId,proto3" json:"perm_id,omitempty"`
}
func (x *PermKey) Reset() {
*x = PermKey{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermKey) ProtoMessage() {}
func (x *PermKey) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermKey.ProtoReflect.Descriptor instead.
func (*PermKey) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{5}
}
func (x *PermKey) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *PermKey) GetPermId() string {
if x != nil {
return x.PermId
}
return ""
}
// 权限表List
type PermKeyList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
PermId []string `protobuf:"bytes,2,rep,name=perm_id,json=permId,proto3" json:"perm_id,omitempty"`
}
func (x *PermKeyList) Reset() {
*x = PermKeyList{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermKeyList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermKeyList) ProtoMessage() {}
func (x *PermKeyList) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermKeyList.ProtoReflect.Descriptor instead.
func (*PermKeyList) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{6}
}
func (x *PermKeyList) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *PermKeyList) GetPermId() []string {
if x != nil {
return x.PermId
}
return nil
}
// 权限表新增实体
type PermCreateReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 用于检测重复请求的唯一字符串ID
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 如果为true,则表示给定的请求仅需要被检验,而不是被执行
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// 权限编码
PermCode string `protobuf:"bytes,4,opt,name=perm_code,json=permCode,proto3" json:"perm_code,omitempty"`
// 权限名称
PermName string `protobuf:"bytes,5,opt,name=perm_name,json=permName,proto3" json:"perm_name,omitempty"`
}
func (x *PermCreateReq) Reset() {
*x = PermCreateReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermCreateReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermCreateReq) ProtoMessage() {}
func (x *PermCreateReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermCreateReq.ProtoReflect.Descriptor instead.
func (*PermCreateReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{7}
}
func (x *PermCreateReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *PermCreateReq) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *PermCreateReq) GetValidateOnly() bool {
if x != nil {
return x.ValidateOnly
}
return false
}
func (x *PermCreateReq) GetPermCode() string {
if x != nil {
return x.PermCode
}
return ""
}
func (x *PermCreateReq) GetPermName() string {
if x != nil {
return x.PermName
}
return ""
}
// 权限表修改实体
type PermUpdateReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 用于检测重复请求的唯一字符串ID
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 如果为true,则表示给定的请求仅需要被检验,而不是被执行
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// 更新字段掩码.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// 权限ID
PermId string `protobuf:"bytes,5,opt,name=perm_id,json=permId,proto3" json:"perm_id,omitempty"`
// 权限编码
PermCode string `protobuf:"bytes,6,opt,name=perm_code,json=permCode,proto3" json:"perm_code,omitempty"`
// 权限名称
PermName string `protobuf:"bytes,7,opt,name=perm_name,json=permName,proto3" json:"perm_name,omitempty"`
}
func (x *PermUpdateReq) Reset() {
*x = PermUpdateReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermUpdateReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermUpdateReq) ProtoMessage() {}
func (x *PermUpdateReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermUpdateReq.ProtoReflect.Descriptor instead.
func (*PermUpdateReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{8}
}
func (x *PermUpdateReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *PermUpdateReq) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *PermUpdateReq) GetValidateOnly() bool {
if x != nil {
return x.ValidateOnly
}
return false
}
func (x *PermUpdateReq) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *PermUpdateReq) GetPermId() string {
if x != nil {
return x.PermId
}
return ""
}
func (x *PermUpdateReq) GetPermCode() string {
if x != nil {
return x.PermCode
}
return ""
}
func (x *PermUpdateReq) GetPermName() string {
if x != nil {
return x.PermName
}
return ""
}
// 资源权限列表
type ResourcePermList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Results []*ResourcePerm `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
}
func (x *ResourcePermList) Reset() {
*x = ResourcePermList{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourcePermList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourcePermList) ProtoMessage() {}
func (x *ResourcePermList) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourcePermList.ProtoReflect.Descriptor instead.
func (*ResourcePermList) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{9}
}
func (x *ResourcePermList) GetResults() []*ResourcePerm {
if x != nil {
return x.Results
}
return nil
}
// 资源权限
type ResourcePerm struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
ParentId string `protobuf:"bytes,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
Perms []*PermModel `protobuf:"bytes,4,rep,name=perms,proto3" json:"perms,omitempty"`
Children []*ResourcePerm `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"`
}
func (x *ResourcePerm) Reset() {
*x = ResourcePerm{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourcePerm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourcePerm) ProtoMessage() {}
func (x *ResourcePerm) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourcePerm.ProtoReflect.Descriptor instead.
func (*ResourcePerm) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{10}
}
func (x *ResourcePerm) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *ResourcePerm) GetResourceName() string {
if x != nil {
return x.ResourceName
}
return ""
}
func (x *ResourcePerm) GetParentId() string {
if x != nil {
return x.ParentId
}
return ""
}
func (x *ResourcePerm) GetPerms() []*PermModel {
if x != nil {
return x.Perms
}
return nil
}
func (x *ResourcePerm) GetChildren() []*ResourcePerm {
if x != nil {
return x.Children
}
return nil
}
// 权限编码校验
type PermCheck struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 权限编码
PermCode string `protobuf:"bytes,2,opt,name=perm_code,json=permCode,proto3" json:"perm_code,omitempty"`
}
func (x *PermCheck) Reset() {
*x = PermCheck{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermCheck) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermCheck) ProtoMessage() {}
func (x *PermCheck) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermCheck.ProtoReflect.Descriptor instead.
func (*PermCheck) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP(), []int{11}
}
func (x *PermCheck) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *PermCheck) GetPermCode() string {
if x != nil {
return x.PermCode
}
return ""
}
var File_jmash_rbac_protobuf_rbac_perm_message_proto protoreflect.FileDescriptor
var file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDesc = []byte{
0x0a, 0x2b, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6a,
0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,
0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x01, 0x0a, 0x07,
0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12,
0x19, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x05, 0x52, 0x07, 0x63, 0x75, 0x72, 0x50, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x72, 0x64,
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f,
0x61, 0x73, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72,
0x41, 0x73, 0x63, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x69, 0x6b, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x6d,
0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x69, 0x6b,
0x65, 0x50, 0x65, 0x72, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x69, 0x6b,
0x65, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0c, 0x6c, 0x69, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x22,
0x5e, 0x0a, 0x09, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x07,
0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70,
0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x63, 0x6f,
0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x43, 0x6f,
0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x22,
0x3b, 0x0a, 0x08, 0x50, 0x65, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x07, 0x72,
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6a,
0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x6f,
0x64, 0x65, 0x6c, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x8b, 0x02, 0x0a,
0x08, 0x50, 0x65, 0x72, 0x6d, 0x50, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x72, 0x65, 0x73,
0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6a, 0x6d, 0x61,
0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x6f, 0x64, 0x65,
0x6c, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x75,
0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x75,
0x72, 0x50, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64,
0x74, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68,
0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x54,
0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x74,
0x6f, 0x12, 0x37, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x74, 0x6f, 0x18, 0x06,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61,
0x63, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x54, 0x6f, 0x74, 0x61, 0x6c,
0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x0e, 0x50, 0x65,
0x72, 0x6d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a,
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x0a, 0x07, 0x50,
0x65, 0x72, 0x6d, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x17,
0x0a, 0x07, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x70, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x6d, 0x4b,
0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x17,
0x0a, 0x07, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
0x06, 0x70, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x0d, 0x50, 0x65, 0x72, 0x6d,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e,
0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e,
0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64,
0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c,
0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x63, 0x6f,
0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x43, 0x6f,
0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x22,
0xfb, 0x01, 0x0a, 0x0d, 0x50, 0x65, 0x72, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x3b, 0x0a,
0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x65,
0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x72,
0x6d, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x63, 0x6f, 0x64, 0x65,
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x43, 0x6f, 0x64, 0x65,
0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x46, 0x0a,
0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x4c, 0x69, 0x73,
0x74, 0x12, 0x32, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x07, 0x72, 0x65,
0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x70, 0x65, 0x72,
0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68,
0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52,
0x05, 0x70, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x34, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72,
0x65, 0x6e, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68,
0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65,
0x72, 0x6d, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, 0x40, 0x0a, 0x09,
0x50, 0x65, 0x72, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e,
0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e,
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x33,
0x0a, 0x13, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x09, 0x50, 0x65, 0x72, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x50, 0x01, 0x5a, 0x0f, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x3b, 0x72,
0x62, 0x61, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescOnce sync.Once
file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescData = file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDesc
)
func file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescGZIP() []byte {
file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescOnce.Do(func() {
file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescData)
})
return file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDescData
}
var file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_jmash_rbac_protobuf_rbac_perm_message_proto_goTypes = []interface{}{
(*PermReq)(nil), // 0: jmash.rbac.PermReq
(*PermModel)(nil), // 1: jmash.rbac.PermModel
(*PermList)(nil), // 2: jmash.rbac.PermList
(*PermPage)(nil), // 3: jmash.rbac.PermPage
(*PermModelTotal)(nil), // 4: jmash.rbac.PermModelTotal
(*PermKey)(nil), // 5: jmash.rbac.PermKey
(*PermKeyList)(nil), // 6: jmash.rbac.PermKeyList
(*PermCreateReq)(nil), // 7: jmash.rbac.PermCreateReq
(*PermUpdateReq)(nil), // 8: jmash.rbac.PermUpdateReq
(*ResourcePermList)(nil), // 9: jmash.rbac.ResourcePermList
(*ResourcePerm)(nil), // 10: jmash.rbac.ResourcePerm
(*PermCheck)(nil), // 11: jmash.rbac.PermCheck
(*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask
}
var file_jmash_rbac_protobuf_rbac_perm_message_proto_depIdxs = []int32{
1, // 0: jmash.rbac.PermList.results:type_name -> jmash.rbac.PermModel
1, // 1: jmash.rbac.PermPage.results:type_name -> jmash.rbac.PermModel
4, // 2: jmash.rbac.PermPage.sub_total_dto:type_name -> jmash.rbac.PermModelTotal
4, // 3: jmash.rbac.PermPage.total_dto:type_name -> jmash.rbac.PermModelTotal
12, // 4: jmash.rbac.PermUpdateReq.update_mask:type_name -> google.protobuf.FieldMask
10, // 5: jmash.rbac.ResourcePermList.results:type_name -> jmash.rbac.ResourcePerm
1, // 6: jmash.rbac.ResourcePerm.perms:type_name -> jmash.rbac.PermModel
10, // 7: jmash.rbac.ResourcePerm.children:type_name -> jmash.rbac.ResourcePerm
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_jmash_rbac_protobuf_rbac_perm_message_proto_init() }
func file_jmash_rbac_protobuf_rbac_perm_message_proto_init() {
if File_jmash_rbac_protobuf_rbac_perm_message_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermModel); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermPage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermModelTotal); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermKeyList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermCreateReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermUpdateReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourcePermList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourcePerm); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermCheck); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDesc,
NumEnums: 0,
NumMessages: 12,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_jmash_rbac_protobuf_rbac_perm_message_proto_goTypes,
DependencyIndexes: file_jmash_rbac_protobuf_rbac_perm_message_proto_depIdxs,
MessageInfos: file_jmash_rbac_protobuf_rbac_perm_message_proto_msgTypes,
}.Build()
File_jmash_rbac_protobuf_rbac_perm_message_proto = out.File
file_jmash_rbac_protobuf_rbac_perm_message_proto_rawDesc = nil
file_jmash_rbac_protobuf_rbac_perm_message_proto_goTypes = nil
file_jmash_rbac_protobuf_rbac_perm_message_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。