1 Star 0 Fork 0

LiuFuDan / devcloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
role.pb.go 17.43 KB
一键复制 编辑 原始数据 按行查看 历史
LiuFuDan 提交于 2022-12-23 11:55 . 补充策略
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: apps/role/pb/role.proto
package role
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// RoleType 角色
type RoleType int32
const (
// 内建角色, 系统初始时创建
RoleType_BUILDIN RoleType = 0
// 管理员创建的一些角色, 全局可用
RoleType_GLOBAL RoleType = 1
// 用户自定义的角色, 仅域内可见
RoleType_CUSTOM RoleType = 2
)
// Enum value maps for RoleType.
var (
RoleType_name = map[int32]string{
0: "BUILDIN",
1: "GLOBAL",
2: "CUSTOM",
}
RoleType_value = map[string]int32{
"BUILDIN": 0,
"GLOBAL": 1,
"CUSTOM": 2,
}
)
func (x RoleType) Enum() *RoleType {
p := new(RoleType)
*p = x
return p
}
func (x RoleType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RoleType) Descriptor() protoreflect.EnumDescriptor {
return file_apps_role_pb_role_proto_enumTypes[0].Descriptor()
}
func (RoleType) Type() protoreflect.EnumType {
return &file_apps_role_pb_role_proto_enumTypes[0]
}
func (x RoleType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RoleType.Descriptor instead.
func (RoleType) EnumDescriptor() ([]byte, []int) {
return file_apps_role_pb_role_proto_rawDescGZIP(), []int{0}
}
// Role is rbac's role
type Role struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 角色ID
// @gotags: bson:"_id" json:"id"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
// 创建时间
// @gotags: bson:"create_at" json:"create_at"
CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
// 更新时间
// @gotags: bson:"update_at" json:"update_at"
UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"`
// 范围, 角色范围限制, 由策略引擎动态补充
// @gotags: bson:"-" json:"scope"
Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope" bson:"-"`
// 角色描述信息
// @gotags: bson:"spec" json:"spec"
Spec *CreateRoleRequest `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec" bson:"spec"`
// 角色描述信息, permission 是动态补充
// @gotags: bson:"-" json:"permissions"
Permissions []*Permission `protobuf:"bytes,6,rep,name=permissions,proto3" json:"permissions" bson:"-"`
}
func (x *Role) Reset() {
*x = Role{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_role_pb_role_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Role) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Role) ProtoMessage() {}
func (x *Role) ProtoReflect() protoreflect.Message {
mi := &file_apps_role_pb_role_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 Role.ProtoReflect.Descriptor instead.
func (*Role) Descriptor() ([]byte, []int) {
return file_apps_role_pb_role_proto_rawDescGZIP(), []int{0}
}
func (x *Role) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Role) GetCreateAt() int64 {
if x != nil {
return x.CreateAt
}
return 0
}
func (x *Role) GetUpdateAt() int64 {
if x != nil {
return x.UpdateAt
}
return 0
}
func (x *Role) GetScope() string {
if x != nil {
return x.Scope
}
return ""
}
func (x *Role) GetSpec() *CreateRoleRequest {
if x != nil {
return x.Spec
}
return nil
}
func (x *Role) GetPermissions() []*Permission {
if x != nil {
return x.Permissions
}
return nil
}
type RoleSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// @gotags: bson:"total" json:"total"
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
// @gotags: bson:"items" json:"items"
Items []*Role `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
}
func (x *RoleSet) Reset() {
*x = RoleSet{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_role_pb_role_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RoleSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoleSet) ProtoMessage() {}
func (x *RoleSet) ProtoReflect() protoreflect.Message {
mi := &file_apps_role_pb_role_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 RoleSet.ProtoReflect.Descriptor instead.
func (*RoleSet) Descriptor() ([]byte, []int) {
return file_apps_role_pb_role_proto_rawDescGZIP(), []int{1}
}
func (x *RoleSet) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *RoleSet) GetItems() []*Role {
if x != nil {
return x.Items
}
return nil
}
// CreateRoleRequest 创建角色请求
type CreateRoleRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 所属域
// @gotags: bson:"domain" json:"domain"
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain" bson:"domain"`
// 创建者ID
// @gotags: bson:"create_by" json:"create_by"
CreateBy string `protobuf:"bytes,2,opt,name=create_by,json=createBy,proto3" json:"create_by" bson:"create_by"`
// 角色类型
// @gotags: bson:"type" json:"type"
Type RoleType `protobuf:"varint,3,opt,name=type,proto3,enum=devcloud.mcenter.role.RoleType" json:"type" bson:"type"`
// 角色名称
// @gotags: bson:"name" json:"name" validate:"required,lte=30"
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name" bson:"name" validate:"required,lte=30"`
// 角色描述
// @gotags: bson:"description" json:"description" validate:"lte=400"
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description" bson:"description" validate:"lte=400"`
// 读权限
// @gotags: bson:"-" json:"specs,omitempty"
Specs []*Spec `protobuf:"bytes,6,rep,name=specs,proto3" json:"specs,omitempty" bson:"-"`
// 角色关联的其他信息,比如展示的视图
// @gotags: bson:"meta" json:"meta" validate:"lte=400"
Meta map[string]string `protobuf:"bytes,7,rep,name=meta,proto3" json:"meta" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"meta" validate:"lte=400"`
}
func (x *CreateRoleRequest) Reset() {
*x = CreateRoleRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_role_pb_role_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRoleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRoleRequest) ProtoMessage() {}
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_role_pb_role_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 CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) Descriptor() ([]byte, []int) {
return file_apps_role_pb_role_proto_rawDescGZIP(), []int{2}
}
func (x *CreateRoleRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *CreateRoleRequest) GetCreateBy() string {
if x != nil {
return x.CreateBy
}
return ""
}
func (x *CreateRoleRequest) GetType() RoleType {
if x != nil {
return x.Type
}
return RoleType_BUILDIN
}
func (x *CreateRoleRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CreateRoleRequest) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *CreateRoleRequest) GetSpecs() []*Spec {
if x != nil {
return x.Specs
}
return nil
}
func (x *CreateRoleRequest) GetMeta() map[string]string {
if x != nil {
return x.Meta
}
return nil
}
var File_apps_role_pb_role_proto protoreflect.FileDescriptor
var file_apps_role_pb_role_proto_rawDesc = []byte{
0x0a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72,
0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x64, 0x65, 0x76, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x6c, 0x65,
0x1a, 0x1d, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xe9, 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
0x41, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63,
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x43, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65,
0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72,
0x6f, 0x6c, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0b,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x52, 0x0a, 0x07, 0x52,
0x6f, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x05,
0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65,
0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72,
0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22,
0xe7, 0x02, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a,
0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79,
0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x6c, 0x65,
0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x53, 0x70, 0x65,
0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x12, 0x46, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61,
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61,
0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x2f, 0x0a, 0x08, 0x52, 0x6f, 0x6c,
0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x49, 0x4e,
0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0a,
0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x02, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69,
0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x75, 0x2d, 0x66, 0x75, 0x64, 0x61,
0x6e, 0x2f, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x63, 0x65, 0x6e, 0x74,
0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_role_pb_role_proto_rawDescOnce sync.Once
file_apps_role_pb_role_proto_rawDescData = file_apps_role_pb_role_proto_rawDesc
)
func file_apps_role_pb_role_proto_rawDescGZIP() []byte {
file_apps_role_pb_role_proto_rawDescOnce.Do(func() {
file_apps_role_pb_role_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_role_pb_role_proto_rawDescData)
})
return file_apps_role_pb_role_proto_rawDescData
}
var file_apps_role_pb_role_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_apps_role_pb_role_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_apps_role_pb_role_proto_goTypes = []interface{}{
(RoleType)(0), // 0: devcloud.mcenter.role.RoleType
(*Role)(nil), // 1: devcloud.mcenter.role.Role
(*RoleSet)(nil), // 2: devcloud.mcenter.role.RoleSet
(*CreateRoleRequest)(nil), // 3: devcloud.mcenter.role.CreateRoleRequest
nil, // 4: devcloud.mcenter.role.CreateRoleRequest.MetaEntry
(*Permission)(nil), // 5: devcloud.mcenter.role.Permission
(*Spec)(nil), // 6: devcloud.mcenter.role.Spec
}
var file_apps_role_pb_role_proto_depIdxs = []int32{
3, // 0: devcloud.mcenter.role.Role.spec:type_name -> devcloud.mcenter.role.CreateRoleRequest
5, // 1: devcloud.mcenter.role.Role.permissions:type_name -> devcloud.mcenter.role.Permission
1, // 2: devcloud.mcenter.role.RoleSet.items:type_name -> devcloud.mcenter.role.Role
0, // 3: devcloud.mcenter.role.CreateRoleRequest.type:type_name -> devcloud.mcenter.role.RoleType
6, // 4: devcloud.mcenter.role.CreateRoleRequest.specs:type_name -> devcloud.mcenter.role.Spec
4, // 5: devcloud.mcenter.role.CreateRoleRequest.meta:type_name -> devcloud.mcenter.role.CreateRoleRequest.MetaEntry
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_apps_role_pb_role_proto_init() }
func file_apps_role_pb_role_proto_init() {
if File_apps_role_pb_role_proto != nil {
return
}
file_apps_role_pb_permission_proto_init()
if !protoimpl.UnsafeEnabled {
file_apps_role_pb_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Role); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_role_pb_role_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RoleSet); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_role_pb_role_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRoleRequest); 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_apps_role_pb_role_proto_rawDesc,
NumEnums: 1,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_apps_role_pb_role_proto_goTypes,
DependencyIndexes: file_apps_role_pb_role_proto_depIdxs,
EnumInfos: file_apps_role_pb_role_proto_enumTypes,
MessageInfos: file_apps_role_pb_role_proto_msgTypes,
}.Build()
File_apps_role_pb_role_proto = out.File
file_apps_role_pb_role_proto_rawDesc = nil
file_apps_role_pb_role_proto_goTypes = nil
file_apps_role_pb_role_proto_depIdxs = nil
}
1
https://gitee.com/liu-fudan/devcloud.git
git@gitee.com:liu-fudan/devcloud.git
liu-fudan
devcloud
devcloud
055c0a611b21

搜索帮助