2 Star 0 Fork 0

jmash / rbac

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rbac_perm_message.pb.go 39.52 KB
一键复制 编辑 原始数据 按行查看 历史
百圆汽车保养 提交于 2024-02-22 22:17 . redis 地址.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202
// 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
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jmash/rbac.git
git@gitee.com:jmash/rbac.git
jmash
rbac
rbac
14f349c9227c

搜索帮助