|
@@ -373,6 +373,125 @@ func (x *AdminRole) GetIsReserved() bool {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
+type AdminPermission struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
|
+ Roles []*AdminBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
|
+ CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
|
+ CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
|
|
|
+ UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
|
+ Status StatusEnum `protobuf:"varint,8,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
|
|
|
+ IsReserved bool `protobuf:"varint,9,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
|
|
|
+ Endpoint string `protobuf:"bytes,10,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) Reset() {
|
|
|
+ *x = AdminPermission{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_proto_base_service_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*AdminPermission) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *AdminPermission) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_proto_base_service_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 AdminPermission.ProtoReflect.Descriptor instead.
|
|
|
+func (*AdminPermission) Descriptor() ([]byte, []int) {
|
|
|
+ return file_proto_base_service_proto_rawDescGZIP(), []int{3}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetDescription() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Description
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetRoles() []*AdminBase {
|
|
|
+ if x != nil {
|
|
|
+ return x.Roles
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetCreatedAt() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreatedAt
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetCreatedBy() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreatedBy
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetUpdatedAt() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.UpdatedAt
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetStatus() StatusEnum {
|
|
|
+ if x != nil {
|
|
|
+ return x.Status
|
|
|
+ }
|
|
|
+ return StatusEnum_UNKNOWN
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetIsReserved() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsReserved
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdminPermission) GetEndpoint() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Endpoint
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
var File_proto_base_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_proto_base_service_proto_rawDesc = []byte{
|
|
@@ -428,14 +547,35 @@ var file_proto_base_service_proto_rawDesc = []byte{
|
|
|
0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74,
|
|
|
0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72,
|
|
|
0x76, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73,
|
|
|
- 0x65, 0x72, 0x76, 0x65, 0x64, 0x2a, 0x41, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45,
|
|
|
- 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00,
|
|
|
- 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a,
|
|
|
- 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x44,
|
|
|
- 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x1f, 0x5a, 0x1d, 0x2e, 0x2f, 0x70, 0x72,
|
|
|
- 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
|
|
|
- 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
- 0x33,
|
|
|
+ 0x65, 0x72, 0x76, 0x65, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50,
|
|
|
+ 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
|
|
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
+ 0x65, 0x18, 0x02, 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, 0x03, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
|
|
+ 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
|
|
|
+ 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64,
|
|
|
+ 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d,
|
|
|
+ 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01,
|
|
|
+ 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a,
|
|
|
+ 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a,
|
|
|
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
|
|
|
+ 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73,
|
|
|
+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61,
|
|
|
+ 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
+ 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a,
|
|
|
+ 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01,
|
|
|
+ 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1a,
|
|
|
+ 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2a, 0x41, 0x0a, 0x0a, 0x53, 0x74,
|
|
|
+ 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
|
|
|
+ 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44,
|
|
|
+ 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02,
|
|
|
+ 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x1f, 0x5a,
|
|
|
+ 0x1d, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
|
|
|
+ 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06,
|
|
|
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -451,12 +591,13 @@ func file_proto_base_service_proto_rawDescGZIP() []byte {
|
|
|
}
|
|
|
|
|
|
var file_proto_base_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
-var file_proto_base_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
|
+var file_proto_base_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
var file_proto_base_service_proto_goTypes = []interface{}{
|
|
|
- (StatusEnum)(0), // 0: base_service.StatusEnum
|
|
|
- (*AdminBase)(nil), // 1: base_service.AdminBase
|
|
|
- (*AdminUser)(nil), // 2: base_service.AdminUser
|
|
|
- (*AdminRole)(nil), // 3: base_service.AdminRole
|
|
|
+ (StatusEnum)(0), // 0: base_service.StatusEnum
|
|
|
+ (*AdminBase)(nil), // 1: base_service.AdminBase
|
|
|
+ (*AdminUser)(nil), // 2: base_service.AdminUser
|
|
|
+ (*AdminRole)(nil), // 3: base_service.AdminRole
|
|
|
+ (*AdminPermission)(nil), // 4: base_service.AdminPermission
|
|
|
}
|
|
|
var file_proto_base_service_proto_depIdxs = []int32{
|
|
|
0, // 0: base_service.AdminUser.status:type_name -> base_service.StatusEnum
|
|
@@ -465,11 +606,13 @@ var file_proto_base_service_proto_depIdxs = []int32{
|
|
|
1, // 3: base_service.AdminRole.users:type_name -> base_service.AdminBase
|
|
|
1, // 4: base_service.AdminRole.permissions:type_name -> base_service.AdminBase
|
|
|
0, // 5: base_service.AdminRole.status:type_name -> base_service.StatusEnum
|
|
|
- 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
|
|
|
+ 1, // 6: base_service.AdminPermission.roles:type_name -> base_service.AdminBase
|
|
|
+ 0, // 7: base_service.AdminPermission.status:type_name -> base_service.StatusEnum
|
|
|
+ 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_proto_base_service_proto_init() }
|
|
@@ -514,6 +657,18 @@ func file_proto_base_service_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_proto_base_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AdminPermission); 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{
|
|
@@ -521,7 +676,7 @@ func file_proto_base_service_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_proto_base_service_proto_rawDesc,
|
|
|
NumEnums: 1,
|
|
|
- NumMessages: 3,
|
|
|
+ NumMessages: 4,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|