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.6
|
||||
// protoc (unknown)
|
||||
// source: supply.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/ec/market/proto/supply.proto
|
||||
|
||||
package market
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -44,7 +45,7 @@ type MarketSupplyItem struct {
|
||||
|
||||
func (x *MarketSupplyItem) Reset() {
|
||||
*x = MarketSupplyItem{}
|
||||
mi := &file_supply_proto_msgTypes[0]
|
||||
mi := &file_module_ec_market_proto_supply_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -56,7 +57,7 @@ func (x *MarketSupplyItem) String() string {
|
||||
func (*MarketSupplyItem) ProtoMessage() {}
|
||||
|
||||
func (x *MarketSupplyItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_supply_proto_msgTypes[0]
|
||||
mi := &file_module_ec_market_proto_supply_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -69,7 +70,7 @@ func (x *MarketSupplyItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use MarketSupplyItem.ProtoReflect.Descriptor instead.
|
||||
func (*MarketSupplyItem) Descriptor() ([]byte, []int) {
|
||||
return file_supply_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_ec_market_proto_supply_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *MarketSupplyItem) GetName() string {
|
||||
@@ -187,7 +188,7 @@ type SupplyReply struct {
|
||||
|
||||
func (x *SupplyReply) Reset() {
|
||||
*x = SupplyReply{}
|
||||
mi := &file_supply_proto_msgTypes[1]
|
||||
mi := &file_module_ec_market_proto_supply_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -199,7 +200,7 @@ func (x *SupplyReply) String() string {
|
||||
func (*SupplyReply) ProtoMessage() {}
|
||||
|
||||
func (x *SupplyReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_supply_proto_msgTypes[1]
|
||||
mi := &file_module_ec_market_proto_supply_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -212,7 +213,7 @@ func (x *SupplyReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SupplyReply.ProtoReflect.Descriptor instead.
|
||||
func (*SupplyReply) Descriptor() ([]byte, []int) {
|
||||
return file_supply_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_ec_market_proto_supply_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *SupplyReply) GetCount() int64 {
|
||||
@@ -229,11 +230,11 @@ func (x *SupplyReply) GetData() []*MarketSupplyItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_supply_proto protoreflect.FileDescriptor
|
||||
var File_module_ec_market_proto_supply_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_supply_proto_rawDesc = "" +
|
||||
const file_module_ec_market_proto_supply_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x16ec/market/supply.proto\x12\x06market\x1a\x13market/blocks.proto\"\x9e\x03\n" +
|
||||
"#module/ec/market/proto/supply.proto\x12\x06market\x1a\x15protobuf/blocks.proto\"\x9e\x03\n" +
|
||||
"\x10MarketSupplyItem\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
|
||||
"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12(\n" +
|
||||
@@ -253,47 +254,46 @@ const file_supply_proto_rawDesc = "" +
|
||||
"\x02id\x18\x0f \x01(\x05R\x02id\"Q\n" +
|
||||
"\vSupplyReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x03R\x05count\x12,\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x18.market.MarketSupplyItemR\x04data2\xa4\x02\n" +
|
||||
"\x06Supply\x129\n" +
|
||||
"\x06Create\x12\x18.market.MarketSupplyItem\x1a\x13.market.StatusReply\"\x00\x127\n" +
|
||||
"\x03Get\x12\x14.market.IdentRequest\x1a\x18.market.MarketSupplyItem\"\x00\x124\n" +
|
||||
"\x05Fetch\x12\x14.market.FetchRequest\x1a\x13.market.SupplyReply\"\x00\x129\n" +
|
||||
"\x06Modify\x12\x18.market.MarketSupplyItem\x1a\x13.market.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x14.market.IdentRequest\x1a\x13.market.StatusReply\"\x00B\n" +
|
||||
"Z\b.;marketb\x06proto3"
|
||||
"\x04data\x18\x02 \x03(\v2\x18.market.MarketSupplyItemR\x04data2\xc2\x02\n" +
|
||||
"\x06Supply\x12A\n" +
|
||||
"\x06Create\x12\x18.market.MarketSupplyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x127\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x18.market.MarketSupplyItem\"\x00\x12:\n" +
|
||||
"\x05Fetch\x12\x1a.blocks.MarketFetchRequest\x1a\x13.market.SupplyReply\"\x00\x12A\n" +
|
||||
"\x06Modify\x12\x18.market.MarketSupplyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
|
||||
var (
|
||||
file_supply_proto_rawDescOnce sync.Once
|
||||
file_supply_proto_rawDescData []byte
|
||||
file_module_ec_market_proto_supply_proto_rawDescOnce sync.Once
|
||||
file_module_ec_market_proto_supply_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_supply_proto_rawDescGZIP() []byte {
|
||||
file_supply_proto_rawDescOnce.Do(func() {
|
||||
file_supply_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_supply_proto_rawDesc), len(file_supply_proto_rawDesc)))
|
||||
func file_module_ec_market_proto_supply_proto_rawDescGZIP() []byte {
|
||||
file_module_ec_market_proto_supply_proto_rawDescOnce.Do(func() {
|
||||
file_module_ec_market_proto_supply_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_market_proto_supply_proto_rawDesc), len(file_module_ec_market_proto_supply_proto_rawDesc)))
|
||||
})
|
||||
return file_supply_proto_rawDescData
|
||||
return file_module_ec_market_proto_supply_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_supply_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_supply_proto_goTypes = []any{
|
||||
(*MarketSupplyItem)(nil), // 0: market.MarketSupplyItem
|
||||
(*SupplyReply)(nil), // 1: market.SupplyReply
|
||||
(*IdentRequest)(nil), // 2: market.IdentRequest
|
||||
(*FetchRequest)(nil), // 3: market.FetchRequest
|
||||
(*StatusReply)(nil), // 4: market.StatusReply
|
||||
var file_module_ec_market_proto_supply_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_module_ec_market_proto_supply_proto_goTypes = []any{
|
||||
(*MarketSupplyItem)(nil), // 0: market.MarketSupplyItem
|
||||
(*SupplyReply)(nil), // 1: market.SupplyReply
|
||||
(*protobuf.IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*protobuf.MarketFetchRequest)(nil), // 3: blocks.MarketFetchRequest
|
||||
(*protobuf.IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
|
||||
}
|
||||
var file_supply_proto_depIdxs = []int32{
|
||||
var file_module_ec_market_proto_supply_proto_depIdxs = []int32{
|
||||
0, // 0: market.SupplyReply.data:type_name -> market.MarketSupplyItem
|
||||
0, // 1: market.Supply.Create:input_type -> market.MarketSupplyItem
|
||||
2, // 2: market.Supply.Get:input_type -> market.IdentRequest
|
||||
3, // 3: market.Supply.Fetch:input_type -> market.FetchRequest
|
||||
2, // 2: market.Supply.Get:input_type -> blocks.IdentRequest
|
||||
3, // 3: market.Supply.Fetch:input_type -> blocks.MarketFetchRequest
|
||||
0, // 4: market.Supply.Modify:input_type -> market.MarketSupplyItem
|
||||
2, // 5: market.Supply.Delete:input_type -> market.IdentRequest
|
||||
4, // 6: market.Supply.Create:output_type -> market.StatusReply
|
||||
2, // 5: market.Supply.Delete:input_type -> blocks.IdentRequest
|
||||
4, // 6: market.Supply.Create:output_type -> blocks.IdentityStatusReply
|
||||
0, // 7: market.Supply.Get:output_type -> market.MarketSupplyItem
|
||||
1, // 8: market.Supply.Fetch:output_type -> market.SupplyReply
|
||||
4, // 9: market.Supply.Modify:output_type -> market.StatusReply
|
||||
4, // 10: market.Supply.Delete:output_type -> market.StatusReply
|
||||
4, // 9: market.Supply.Modify:output_type -> blocks.IdentityStatusReply
|
||||
4, // 10: market.Supply.Delete:output_type -> blocks.IdentityStatusReply
|
||||
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
|
||||
@@ -301,27 +301,26 @@ var file_supply_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_supply_proto_init() }
|
||||
func file_supply_proto_init() {
|
||||
if File_supply_proto != nil {
|
||||
func init() { file_module_ec_market_proto_supply_proto_init() }
|
||||
func file_module_ec_market_proto_supply_proto_init() {
|
||||
if File_module_ec_market_proto_supply_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_supply_proto_rawDesc), len(file_supply_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_market_proto_supply_proto_rawDesc), len(file_module_ec_market_proto_supply_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_supply_proto_goTypes,
|
||||
DependencyIndexes: file_supply_proto_depIdxs,
|
||||
MessageInfos: file_supply_proto_msgTypes,
|
||||
GoTypes: file_module_ec_market_proto_supply_proto_goTypes,
|
||||
DependencyIndexes: file_module_ec_market_proto_supply_proto_depIdxs,
|
||||
MessageInfos: file_module_ec_market_proto_supply_proto_msgTypes,
|
||||
}.Build()
|
||||
File_supply_proto = out.File
|
||||
file_supply_proto_goTypes = nil
|
||||
file_supply_proto_depIdxs = nil
|
||||
File_module_ec_market_proto_supply_proto = out.File
|
||||
file_module_ec_market_proto_supply_proto_goTypes = nil
|
||||
file_module_ec_market_proto_supply_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user