refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: share.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/base/cloud/proto/share.proto
|
||||
|
||||
package cloud
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -38,7 +39,7 @@ type CreateShareRequest struct {
|
||||
|
||||
func (x *CreateShareRequest) Reset() {
|
||||
*x = CreateShareRequest{}
|
||||
mi := &file_share_proto_msgTypes[0]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -50,7 +51,7 @@ func (x *CreateShareRequest) String() string {
|
||||
func (*CreateShareRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateShareRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_share_proto_msgTypes[0]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -63,7 +64,7 @@ func (x *CreateShareRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CreateShareRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateShareRequest) Descriptor() ([]byte, []int) {
|
||||
return file_share_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_cloud_proto_share_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CreateShareRequest) GetCloudId() uint64 {
|
||||
@@ -132,7 +133,7 @@ type ListSharesResponse struct {
|
||||
|
||||
func (x *ListSharesResponse) Reset() {
|
||||
*x = ListSharesResponse{}
|
||||
mi := &file_share_proto_msgTypes[1]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -144,7 +145,7 @@ func (x *ListSharesResponse) String() string {
|
||||
func (*ListSharesResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListSharesResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_share_proto_msgTypes[1]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -157,7 +158,7 @@ func (x *ListSharesResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListSharesResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListSharesResponse) Descriptor() ([]byte, []int) {
|
||||
return file_share_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_cloud_proto_share_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *ListSharesResponse) GetShares() []*CloudShareItem {
|
||||
@@ -184,7 +185,7 @@ type ValidateSharePasswordRequest struct {
|
||||
|
||||
func (x *ValidateSharePasswordRequest) Reset() {
|
||||
*x = ValidateSharePasswordRequest{}
|
||||
mi := &file_share_proto_msgTypes[2]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -196,7 +197,7 @@ func (x *ValidateSharePasswordRequest) String() string {
|
||||
func (*ValidateSharePasswordRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ValidateSharePasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_share_proto_msgTypes[2]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -209,7 +210,7 @@ func (x *ValidateSharePasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ValidateSharePasswordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ValidateSharePasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return file_share_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_cloud_proto_share_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ValidateSharePasswordRequest) GetIdentity() string {
|
||||
@@ -247,7 +248,7 @@ type CloudShareItem struct {
|
||||
|
||||
func (x *CloudShareItem) Reset() {
|
||||
*x = CloudShareItem{}
|
||||
mi := &file_share_proto_msgTypes[3]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -259,7 +260,7 @@ func (x *CloudShareItem) String() string {
|
||||
func (*CloudShareItem) ProtoMessage() {}
|
||||
|
||||
func (x *CloudShareItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_share_proto_msgTypes[3]
|
||||
mi := &file_module_base_cloud_proto_share_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -272,7 +273,7 @@ func (x *CloudShareItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CloudShareItem.ProtoReflect.Descriptor instead.
|
||||
func (*CloudShareItem) Descriptor() ([]byte, []int) {
|
||||
return file_share_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_base_cloud_proto_share_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *CloudShareItem) GetId() uint64 {
|
||||
@@ -359,11 +360,11 @@ func (x *CloudShareItem) GetUpdatedAt() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_share_proto protoreflect.FileDescriptor
|
||||
var File_module_base_cloud_proto_share_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_share_proto_rawDesc = "" +
|
||||
const file_module_base_cloud_proto_share_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x16base/cloud/share.proto\x12\x05cloud\x1a\x12cloud/blocks.proto\"\x8f\x02\n" +
|
||||
"#module/base/cloud/proto/share.proto\x12\x05cloud\x1a\x15protobuf/blocks.proto\"\x8f\x02\n" +
|
||||
"\x12CreateShareRequest\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\x12\x1d\n" +
|
||||
@@ -403,49 +404,49 @@ const file_share_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\v \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\f \x01(\tR\tupdatedAt2\xc5\x02\n" +
|
||||
"\x05Share\x12<\n" +
|
||||
"\vCreateShare\x12\x19.cloud.CreateShareRequest\x1a\x12.cloud.StatusReply\x126\n" +
|
||||
"\bGetShare\x12\x13.cloud.IdentRequest\x1a\x15.cloud.CloudShareItem\x126\n" +
|
||||
"\vDeleteShare\x12\x13.cloud.IdentRequest\x1a\x12.cloud.StatusReply\x12<\n" +
|
||||
"updated_at\x18\f \x01(\tR\tupdatedAt2\xcb\x02\n" +
|
||||
"\x05Share\x12=\n" +
|
||||
"\vCreateShare\x12\x19.cloud.CreateShareRequest\x1a\x13.blocks.StatusReply\x127\n" +
|
||||
"\bGetShare\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudShareItem\x128\n" +
|
||||
"\vDeleteShare\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
|
||||
"\n" +
|
||||
"ListShares\x12\x13.cloud.FetchRequest\x1a\x19.cloud.ListSharesResponse\x12P\n" +
|
||||
"\x15ValidateSharePassword\x12#.cloud.ValidateSharePasswordRequest\x1a\x12.cloud.StatusReplyB\tZ\a.;cloudb\x06proto3"
|
||||
"ListShares\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListSharesResponse\x12Q\n" +
|
||||
"\x15ValidateSharePassword\x12#.cloud.ValidateSharePasswordRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_share_proto_rawDescOnce sync.Once
|
||||
file_share_proto_rawDescData []byte
|
||||
file_module_base_cloud_proto_share_proto_rawDescOnce sync.Once
|
||||
file_module_base_cloud_proto_share_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_share_proto_rawDescGZIP() []byte {
|
||||
file_share_proto_rawDescOnce.Do(func() {
|
||||
file_share_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_share_proto_rawDesc), len(file_share_proto_rawDesc)))
|
||||
func file_module_base_cloud_proto_share_proto_rawDescGZIP() []byte {
|
||||
file_module_base_cloud_proto_share_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_cloud_proto_share_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_share_proto_rawDesc), len(file_module_base_cloud_proto_share_proto_rawDesc)))
|
||||
})
|
||||
return file_share_proto_rawDescData
|
||||
return file_module_base_cloud_proto_share_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_share_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_share_proto_goTypes = []any{
|
||||
var file_module_base_cloud_proto_share_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_module_base_cloud_proto_share_proto_goTypes = []any{
|
||||
(*CreateShareRequest)(nil), // 0: cloud.CreateShareRequest
|
||||
(*ListSharesResponse)(nil), // 1: cloud.ListSharesResponse
|
||||
(*ValidateSharePasswordRequest)(nil), // 2: cloud.ValidateSharePasswordRequest
|
||||
(*CloudShareItem)(nil), // 3: cloud.CloudShareItem
|
||||
(*IdentRequest)(nil), // 4: cloud.IdentRequest
|
||||
(*FetchRequest)(nil), // 5: cloud.FetchRequest
|
||||
(*StatusReply)(nil), // 6: cloud.StatusReply
|
||||
(*protobuf.IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*protobuf.FetchRequest)(nil), // 5: blocks.FetchRequest
|
||||
(*protobuf.StatusReply)(nil), // 6: blocks.StatusReply
|
||||
}
|
||||
var file_share_proto_depIdxs = []int32{
|
||||
var file_module_base_cloud_proto_share_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListSharesResponse.shares:type_name -> cloud.CloudShareItem
|
||||
0, // 1: cloud.Share.CreateShare:input_type -> cloud.CreateShareRequest
|
||||
4, // 2: cloud.Share.GetShare:input_type -> cloud.IdentRequest
|
||||
4, // 3: cloud.Share.DeleteShare:input_type -> cloud.IdentRequest
|
||||
5, // 4: cloud.Share.ListShares:input_type -> cloud.FetchRequest
|
||||
4, // 2: cloud.Share.GetShare:input_type -> blocks.IdentRequest
|
||||
4, // 3: cloud.Share.DeleteShare:input_type -> blocks.IdentRequest
|
||||
5, // 4: cloud.Share.ListShares:input_type -> blocks.FetchRequest
|
||||
2, // 5: cloud.Share.ValidateSharePassword:input_type -> cloud.ValidateSharePasswordRequest
|
||||
6, // 6: cloud.Share.CreateShare:output_type -> cloud.StatusReply
|
||||
6, // 6: cloud.Share.CreateShare:output_type -> blocks.StatusReply
|
||||
3, // 7: cloud.Share.GetShare:output_type -> cloud.CloudShareItem
|
||||
6, // 8: cloud.Share.DeleteShare:output_type -> cloud.StatusReply
|
||||
6, // 8: cloud.Share.DeleteShare:output_type -> blocks.StatusReply
|
||||
1, // 9: cloud.Share.ListShares:output_type -> cloud.ListSharesResponse
|
||||
6, // 10: cloud.Share.ValidateSharePassword:output_type -> cloud.StatusReply
|
||||
6, // 10: cloud.Share.ValidateSharePassword:output_type -> blocks.StatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
@@ -453,27 +454,26 @@ var file_share_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_share_proto_init() }
|
||||
func file_share_proto_init() {
|
||||
if File_share_proto != nil {
|
||||
func init() { file_module_base_cloud_proto_share_proto_init() }
|
||||
func file_module_base_cloud_proto_share_proto_init() {
|
||||
if File_module_base_cloud_proto_share_proto != nil {
|
||||
return
|
||||
}
|
||||
file_blocks_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_share_proto_rawDesc), len(file_share_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_share_proto_rawDesc), len(file_module_base_cloud_proto_share_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_share_proto_goTypes,
|
||||
DependencyIndexes: file_share_proto_depIdxs,
|
||||
MessageInfos: file_share_proto_msgTypes,
|
||||
GoTypes: file_module_base_cloud_proto_share_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_cloud_proto_share_proto_depIdxs,
|
||||
MessageInfos: file_module_base_cloud_proto_share_proto_msgTypes,
|
||||
}.Build()
|
||||
File_share_proto = out.File
|
||||
file_share_proto_goTypes = nil
|
||||
file_share_proto_depIdxs = nil
|
||||
File_module_base_cloud_proto_share_proto = out.File
|
||||
file_module_base_cloud_proto_share_proto_goTypes = nil
|
||||
file_module_base_cloud_proto_share_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user