|
@@ -492,6 +492,133 @@ func (x *AdminPermission) GetEndpoint() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+type Team 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"`
|
|
|
+ CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
|
|
|
+ CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
|
+ UpdatedAt int64 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
|
+ Website string `protobuf:"bytes,7,opt,name=website,proto3" json:"website,omitempty"`
|
|
|
+ MaxMembers int32 `protobuf:"varint,8,opt,name=max_members,json=maxMembers,proto3" json:"max_members,omitempty"`
|
|
|
+ Status StatusEnum `protobuf:"varint,9,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
|
|
|
+ Credential string `protobuf:"bytes,10,opt,name=credential,proto3" json:"credential,omitempty"`
|
|
|
+ Avatar string `protobuf:"bytes,11,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) Reset() {
|
|
|
+ *x = Team{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_proto_base_service_proto_msgTypes[4]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Team) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Team) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_proto_base_service_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 Team.ProtoReflect.Descriptor instead.
|
|
|
+func (*Team) Descriptor() ([]byte, []int) {
|
|
|
+ return file_proto_base_service_proto_rawDescGZIP(), []int{4}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetDescription() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Description
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetCreatedBy() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreatedBy
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetCreatedAt() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreatedAt
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetUpdatedAt() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.UpdatedAt
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetWebsite() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Website
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetMaxMembers() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.MaxMembers
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetStatus() StatusEnum {
|
|
|
+ if x != nil {
|
|
|
+ return x.Status
|
|
|
+ }
|
|
|
+ return StatusEnum_UNKNOWN
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetCredential() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Credential
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Team) GetAvatar() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Avatar
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
var File_proto_base_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_proto_base_service_proto_rawDesc = []byte{
|
|
@@ -568,14 +695,35 @@ var file_proto_base_service_proto_rawDesc = []byte{
|
|
|
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,
|
|
|
+ 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xce, 0x02, 0x0a, 0x04, 0x54,
|
|
|
+ 0x65, 0x61, 0x6d, 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, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65,
|
|
|
+ 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63,
|
|
|
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 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, 0x75, 0x70, 0x64, 0x61, 0x74,
|
|
|
+ 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64,
|
|
|
+ 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74,
|
|
|
+ 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65,
|
|
|
+ 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18,
|
|
|
+ 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
|
|
+ 0x73, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 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, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
|
|
|
+ 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
|
|
|
+ 0x69, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x0b, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 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 (
|
|
@@ -591,13 +739,14 @@ 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, 4)
|
|
|
+var file_proto_base_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
|
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
|
|
|
(*AdminPermission)(nil), // 4: base_service.AdminPermission
|
|
|
+ (*Team)(nil), // 5: base_service.Team
|
|
|
}
|
|
|
var file_proto_base_service_proto_depIdxs = []int32{
|
|
|
0, // 0: base_service.AdminUser.status:type_name -> base_service.StatusEnum
|
|
@@ -608,11 +757,12 @@ var file_proto_base_service_proto_depIdxs = []int32{
|
|
|
0, // 5: base_service.AdminRole.status:type_name -> base_service.StatusEnum
|
|
|
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
|
|
|
+ 0, // 8: base_service.Team.status:type_name -> base_service.StatusEnum
|
|
|
+ 9, // [9:9] is the sub-list for method output_type
|
|
|
+ 9, // [9:9] is the sub-list for method input_type
|
|
|
+ 9, // [9:9] is the sub-list for extension type_name
|
|
|
+ 9, // [9:9] is the sub-list for extension extendee
|
|
|
+ 0, // [0:9] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_proto_base_service_proto_init() }
|
|
@@ -669,6 +819,18 @@ func file_proto_base_service_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_proto_base_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Team); 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{
|
|
@@ -676,7 +838,7 @@ func file_proto_base_service_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_proto_base_service_proto_rawDesc,
|
|
|
NumEnums: 1,
|
|
|
- NumMessages: 4,
|
|
|
+ NumMessages: 5,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|