refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc (unknown)
// source: agency.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/market/proto/agency.proto
package market
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -32,7 +33,7 @@ type LoginRequest struct {
func (x *LoginRequest) Reset() {
*x = LoginRequest{}
mi := &file_agency_proto_msgTypes[0]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -44,7 +45,7 @@ func (x *LoginRequest) String() string {
func (*LoginRequest) ProtoMessage() {}
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_agency_proto_msgTypes[0]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -57,7 +58,7 @@ func (x *LoginRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) Descriptor() ([]byte, []int) {
return file_agency_proto_rawDescGZIP(), []int{0}
return file_module_ec_market_proto_agency_proto_rawDescGZIP(), []int{0}
}
func (x *LoginRequest) GetAccount() string {
@@ -109,7 +110,7 @@ type MarketAgenctyItem struct {
func (x *MarketAgenctyItem) Reset() {
*x = MarketAgenctyItem{}
mi := &file_agency_proto_msgTypes[1]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -121,7 +122,7 @@ func (x *MarketAgenctyItem) String() string {
func (*MarketAgenctyItem) ProtoMessage() {}
func (x *MarketAgenctyItem) ProtoReflect() protoreflect.Message {
mi := &file_agency_proto_msgTypes[1]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -134,7 +135,7 @@ func (x *MarketAgenctyItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use MarketAgenctyItem.ProtoReflect.Descriptor instead.
func (*MarketAgenctyItem) Descriptor() ([]byte, []int) {
return file_agency_proto_rawDescGZIP(), []int{1}
return file_module_ec_market_proto_agency_proto_rawDescGZIP(), []int{1}
}
func (x *MarketAgenctyItem) GetIdentity() string {
@@ -288,7 +289,7 @@ type SetPasswordRequest struct {
func (x *SetPasswordRequest) Reset() {
*x = SetPasswordRequest{}
mi := &file_agency_proto_msgTypes[2]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -300,7 +301,7 @@ func (x *SetPasswordRequest) String() string {
func (*SetPasswordRequest) ProtoMessage() {}
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_agency_proto_msgTypes[2]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -313,7 +314,7 @@ func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
return file_agency_proto_rawDescGZIP(), []int{2}
return file_module_ec_market_proto_agency_proto_rawDescGZIP(), []int{2}
}
func (x *SetPasswordRequest) GetIdentity() string {
@@ -347,7 +348,7 @@ type AgencyReply struct {
func (x *AgencyReply) Reset() {
*x = AgencyReply{}
mi := &file_agency_proto_msgTypes[3]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -359,7 +360,7 @@ func (x *AgencyReply) String() string {
func (*AgencyReply) ProtoMessage() {}
func (x *AgencyReply) ProtoReflect() protoreflect.Message {
mi := &file_agency_proto_msgTypes[3]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -372,7 +373,7 @@ func (x *AgencyReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use AgencyReply.ProtoReflect.Descriptor instead.
func (*AgencyReply) Descriptor() ([]byte, []int) {
return file_agency_proto_rawDescGZIP(), []int{3}
return file_module_ec_market_proto_agency_proto_rawDescGZIP(), []int{3}
}
func (x *AgencyReply) GetCount() int64 {
@@ -399,7 +400,7 @@ type ApproveRequest struct {
func (x *ApproveRequest) Reset() {
*x = ApproveRequest{}
mi := &file_agency_proto_msgTypes[4]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -411,7 +412,7 @@ func (x *ApproveRequest) String() string {
func (*ApproveRequest) ProtoMessage() {}
func (x *ApproveRequest) ProtoReflect() protoreflect.Message {
mi := &file_agency_proto_msgTypes[4]
mi := &file_module_ec_market_proto_agency_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -424,7 +425,7 @@ func (x *ApproveRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ApproveRequest.ProtoReflect.Descriptor instead.
func (*ApproveRequest) Descriptor() ([]byte, []int) {
return file_agency_proto_rawDescGZIP(), []int{4}
return file_module_ec_market_proto_agency_proto_rawDescGZIP(), []int{4}
}
func (x *ApproveRequest) GetApprove() int32 {
@@ -441,11 +442,11 @@ func (x *ApproveRequest) GetIdentity() string {
return ""
}
var File_agency_proto protoreflect.FileDescriptor
var File_module_ec_market_proto_agency_proto protoreflect.FileDescriptor
const file_agency_proto_rawDesc = "" +
const file_module_ec_market_proto_agency_proto_rawDesc = "" +
"\n" +
"\x16ec/market/agency.proto\x12\x06market\x1a\x13market/blocks.proto\"\\\n" +
"#module/ec/market/proto/agency.proto\x12\x06market\x1a\x15protobuf/blocks.proto\"\\\n" +
"\fLoginRequest\x12\x18\n" +
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x16\n" +
@@ -483,63 +484,62 @@ const file_agency_proto_rawDesc = "" +
"\x04data\x18\x02 \x03(\v2\x19.market.MarketAgenctyItemR\x04data\"F\n" +
"\x0eApproveRequest\x12\x18\n" +
"\aapprove\x18\x01 \x01(\x05R\aapprove\x12\x1a\n" +
"\bidentity\x18\x02 \x01(\tR\bidentity2\x90\x04\n" +
"\x06Agency\x123\n" +
"\x05Login\x12\x14.market.LoginRequest\x1a\x12.market.LoginReply\"\x00\x12:\n" +
"\x06Create\x12\x19.market.MarketAgenctyItem\x1a\x13.market.StatusReply\"\x00\x128\n" +
"\x03Get\x12\x14.market.IdentRequest\x1a\x19.market.MarketAgenctyItem\"\x00\x124\n" +
"\x05Fetch\x12\x14.market.FetchRequest\x1a\x13.market.AgencyReply\"\x00\x12:\n" +
"\x06Modify\x12\x19.market.MarketAgenctyItem\x1a\x13.market.StatusReply\"\x00\x125\n" +
"\x06Delete\x12\x14.market.IdentRequest\x1a\x13.market.StatusReply\"\x00\x12@\n" +
"\vSetPassword\x12\x1a.market.SetPasswordRequest\x1a\x13.market.StatusReply\"\x00\x126\n" +
"\aPending\x12\x14.market.FetchRequest\x1a\x13.market.AgencyReply\"\x00\x128\n" +
"\aApprove\x12\x16.market.ApproveRequest\x1a\x13.market.StatusReply\"\x00B\n" +
"Z\b.;marketb\x06proto3"
"\bidentity\x18\x02 \x01(\tR\bidentity2\xca\x04\n" +
"\x06Agency\x129\n" +
"\x05Login\x12\x14.market.LoginRequest\x1a\x18.blocks.MarketLoginReply\"\x00\x12B\n" +
"\x06Create\x12\x19.market.MarketAgenctyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x128\n" +
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x19.market.MarketAgenctyItem\"\x00\x12:\n" +
"\x05Fetch\x12\x1a.blocks.MarketFetchRequest\x1a\x13.market.AgencyReply\"\x00\x12B\n" +
"\x06Modify\x12\x19.market.MarketAgenctyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12H\n" +
"\vSetPassword\x12\x1a.market.SetPasswordRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12<\n" +
"\aPending\x12\x1a.blocks.MarketFetchRequest\x1a\x13.market.AgencyReply\"\x00\x12@\n" +
"\aApprove\x12\x16.market.ApproveRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
var (
file_agency_proto_rawDescOnce sync.Once
file_agency_proto_rawDescData []byte
file_module_ec_market_proto_agency_proto_rawDescOnce sync.Once
file_module_ec_market_proto_agency_proto_rawDescData []byte
)
func file_agency_proto_rawDescGZIP() []byte {
file_agency_proto_rawDescOnce.Do(func() {
file_agency_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agency_proto_rawDesc), len(file_agency_proto_rawDesc)))
func file_module_ec_market_proto_agency_proto_rawDescGZIP() []byte {
file_module_ec_market_proto_agency_proto_rawDescOnce.Do(func() {
file_module_ec_market_proto_agency_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_market_proto_agency_proto_rawDesc), len(file_module_ec_market_proto_agency_proto_rawDesc)))
})
return file_agency_proto_rawDescData
return file_module_ec_market_proto_agency_proto_rawDescData
}
var file_agency_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_agency_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: market.LoginRequest
(*MarketAgenctyItem)(nil), // 1: market.MarketAgenctyItem
(*SetPasswordRequest)(nil), // 2: market.SetPasswordRequest
(*AgencyReply)(nil), // 3: market.AgencyReply
(*ApproveRequest)(nil), // 4: market.ApproveRequest
(*IdentRequest)(nil), // 5: market.IdentRequest
(*FetchRequest)(nil), // 6: market.FetchRequest
(*LoginReply)(nil), // 7: market.LoginReply
(*StatusReply)(nil), // 8: market.StatusReply
var file_module_ec_market_proto_agency_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_module_ec_market_proto_agency_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: market.LoginRequest
(*MarketAgenctyItem)(nil), // 1: market.MarketAgenctyItem
(*SetPasswordRequest)(nil), // 2: market.SetPasswordRequest
(*AgencyReply)(nil), // 3: market.AgencyReply
(*ApproveRequest)(nil), // 4: market.ApproveRequest
(*protobuf.IdentRequest)(nil), // 5: blocks.IdentRequest
(*protobuf.MarketFetchRequest)(nil), // 6: blocks.MarketFetchRequest
(*protobuf.MarketLoginReply)(nil), // 7: blocks.MarketLoginReply
(*protobuf.IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
}
var file_agency_proto_depIdxs = []int32{
var file_module_ec_market_proto_agency_proto_depIdxs = []int32{
1, // 0: market.AgencyReply.data:type_name -> market.MarketAgenctyItem
0, // 1: market.Agency.Login:input_type -> market.LoginRequest
1, // 2: market.Agency.Create:input_type -> market.MarketAgenctyItem
5, // 3: market.Agency.Get:input_type -> market.IdentRequest
6, // 4: market.Agency.Fetch:input_type -> market.FetchRequest
5, // 3: market.Agency.Get:input_type -> blocks.IdentRequest
6, // 4: market.Agency.Fetch:input_type -> blocks.MarketFetchRequest
1, // 5: market.Agency.Modify:input_type -> market.MarketAgenctyItem
5, // 6: market.Agency.Delete:input_type -> market.IdentRequest
5, // 6: market.Agency.Delete:input_type -> blocks.IdentRequest
2, // 7: market.Agency.SetPassword:input_type -> market.SetPasswordRequest
6, // 8: market.Agency.Pending:input_type -> market.FetchRequest
6, // 8: market.Agency.Pending:input_type -> blocks.MarketFetchRequest
4, // 9: market.Agency.Approve:input_type -> market.ApproveRequest
7, // 10: market.Agency.Login:output_type -> market.LoginReply
8, // 11: market.Agency.Create:output_type -> market.StatusReply
7, // 10: market.Agency.Login:output_type -> blocks.MarketLoginReply
8, // 11: market.Agency.Create:output_type -> blocks.IdentityStatusReply
1, // 12: market.Agency.Get:output_type -> market.MarketAgenctyItem
3, // 13: market.Agency.Fetch:output_type -> market.AgencyReply
8, // 14: market.Agency.Modify:output_type -> market.StatusReply
8, // 15: market.Agency.Delete:output_type -> market.StatusReply
8, // 16: market.Agency.SetPassword:output_type -> market.StatusReply
8, // 14: market.Agency.Modify:output_type -> blocks.IdentityStatusReply
8, // 15: market.Agency.Delete:output_type -> blocks.IdentityStatusReply
8, // 16: market.Agency.SetPassword:output_type -> blocks.IdentityStatusReply
3, // 17: market.Agency.Pending:output_type -> market.AgencyReply
8, // 18: market.Agency.Approve:output_type -> market.StatusReply
8, // 18: market.Agency.Approve:output_type -> blocks.IdentityStatusReply
10, // [10:19] is the sub-list for method output_type
1, // [1:10] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
@@ -547,27 +547,26 @@ var file_agency_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_agency_proto_init() }
func file_agency_proto_init() {
if File_agency_proto != nil {
func init() { file_module_ec_market_proto_agency_proto_init() }
func file_module_ec_market_proto_agency_proto_init() {
if File_module_ec_market_proto_agency_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_agency_proto_rawDesc), len(file_agency_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_market_proto_agency_proto_rawDesc), len(file_module_ec_market_proto_agency_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_agency_proto_goTypes,
DependencyIndexes: file_agency_proto_depIdxs,
MessageInfos: file_agency_proto_msgTypes,
GoTypes: file_module_ec_market_proto_agency_proto_goTypes,
DependencyIndexes: file_module_ec_market_proto_agency_proto_depIdxs,
MessageInfos: file_module_ec_market_proto_agency_proto_msgTypes,
}.Build()
File_agency_proto = out.File
file_agency_proto_goTypes = nil
file_agency_proto_depIdxs = nil
File_module_ec_market_proto_agency_proto = out.File
file_module_ec_market_proto_agency_proto_goTypes = nil
file_module_ec_market_proto_agency_proto_depIdxs = nil
}