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.8
// protoc (unknown)
// source: ads.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/mall/proto/ads.proto
package mall
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -31,7 +32,7 @@ type ByPosRequest struct {
func (x *ByPosRequest) Reset() {
*x = ByPosRequest{}
mi := &file_ads_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_ads_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -43,7 +44,7 @@ func (x *ByPosRequest) String() string {
func (*ByPosRequest) ProtoMessage() {}
func (x *ByPosRequest) ProtoReflect() protoreflect.Message {
mi := &file_ads_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_ads_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -56,7 +57,7 @@ func (x *ByPosRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ByPosRequest.ProtoReflect.Descriptor instead.
func (*ByPosRequest) Descriptor() ([]byte, []int) {
return file_ads_proto_rawDescGZIP(), []int{0}
return file_module_ec_mall_proto_ads_proto_rawDescGZIP(), []int{0}
}
func (x *ByPosRequest) GetPosKey() []string {
@@ -84,7 +85,7 @@ type AdsListReply struct {
func (x *AdsListReply) Reset() {
*x = AdsListReply{}
mi := &file_ads_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_ads_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -96,7 +97,7 @@ func (x *AdsListReply) String() string {
func (*AdsListReply) ProtoMessage() {}
func (x *AdsListReply) ProtoReflect() protoreflect.Message {
mi := &file_ads_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_ads_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -109,7 +110,7 @@ func (x *AdsListReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use AdsListReply.ProtoReflect.Descriptor instead.
func (*AdsListReply) Descriptor() ([]byte, []int) {
return file_ads_proto_rawDescGZIP(), []int{1}
return file_module_ec_mall_proto_ads_proto_rawDescGZIP(), []int{1}
}
func (x *AdsListReply) GetData() []*AdsItem {
@@ -142,7 +143,7 @@ type AdsItem struct {
func (x *AdsItem) Reset() {
*x = AdsItem{}
mi := &file_ads_proto_msgTypes[2]
mi := &file_module_ec_mall_proto_ads_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -154,7 +155,7 @@ func (x *AdsItem) String() string {
func (*AdsItem) ProtoMessage() {}
func (x *AdsItem) ProtoReflect() protoreflect.Message {
mi := &file_ads_proto_msgTypes[2]
mi := &file_module_ec_mall_proto_ads_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -167,7 +168,7 @@ func (x *AdsItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use AdsItem.ProtoReflect.Descriptor instead.
func (*AdsItem) Descriptor() ([]byte, []int) {
return file_ads_proto_rawDescGZIP(), []int{2}
return file_module_ec_mall_proto_ads_proto_rawDescGZIP(), []int{2}
}
func (x *AdsItem) GetId() int64 {
@@ -226,11 +227,11 @@ func (x *AdsItem) GetStatus() int64 {
return 0
}
var File_ads_proto protoreflect.FileDescriptor
var File_module_ec_mall_proto_ads_proto protoreflect.FileDescriptor
const file_ads_proto_rawDesc = "" +
const file_module_ec_mall_proto_ads_proto_rawDesc = "" +
"\n" +
"\x11ec/mall/ads.proto\x12\x04mall\x1a\x11mall/blocks.proto\"P\n" +
"\x1emodule/ec/mall/proto/ads.proto\x12\x04mall\x1a\x15protobuf/blocks.proto\"P\n" +
"\fByPosRequest\x12\x18\n" +
"\apos_key\x18\x01 \x03(\tR\apos_key\x12&\n" +
"\x0estore_identity\x18\x02 \x01(\tR\x0estore_identity\"G\n" +
@@ -247,47 +248,47 @@ const file_ads_proto_rawDesc = "" +
"\n" +
"created_at\x18\a \x01(\tR\n" +
"created_at\x12\x16\n" +
"\x06status\x18\b \x01(\x03R\x06status2\xfa\x01\n" +
"\x06status\x18\b \x01(\x03R\x06status2\xa0\x02\n" +
"\x03Ads\x121\n" +
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x121\n" +
"\x05Fetch\x12\x12.mall.FetchRequest\x1a\x12.mall.AdsListReply\"\x00\x12,\n" +
"\x06Create\x12\r.mall.AdsItem\x1a\x11.mall.StatusReply\"\x00\x12,\n" +
"\x06Modify\x12\r.mall.AdsItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x127\n" +
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.AdsListReply\"\x00\x126\n" +
"\x06Create\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x126\n" +
"\x06Modify\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
var (
file_ads_proto_rawDescOnce sync.Once
file_ads_proto_rawDescData []byte
file_module_ec_mall_proto_ads_proto_rawDescOnce sync.Once
file_module_ec_mall_proto_ads_proto_rawDescData []byte
)
func file_ads_proto_rawDescGZIP() []byte {
file_ads_proto_rawDescOnce.Do(func() {
file_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc)))
func file_module_ec_mall_proto_ads_proto_rawDescGZIP() []byte {
file_module_ec_mall_proto_ads_proto_rawDescOnce.Do(func() {
file_module_ec_mall_proto_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_ads_proto_rawDesc), len(file_module_ec_mall_proto_ads_proto_rawDesc)))
})
return file_ads_proto_rawDescData
return file_module_ec_mall_proto_ads_proto_rawDescData
}
var file_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_ads_proto_goTypes = []any{
(*ByPosRequest)(nil), // 0: mall.ByPosRequest
(*AdsListReply)(nil), // 1: mall.AdsListReply
(*AdsItem)(nil), // 2: mall.AdsItem
(*FetchRequest)(nil), // 3: mall.FetchRequest
(*IdentRequest)(nil), // 4: mall.IdentRequest
(*StatusReply)(nil), // 5: mall.StatusReply
var file_module_ec_mall_proto_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_module_ec_mall_proto_ads_proto_goTypes = []any{
(*ByPosRequest)(nil), // 0: mall.ByPosRequest
(*AdsListReply)(nil), // 1: mall.AdsListReply
(*AdsItem)(nil), // 2: mall.AdsItem
(*protobuf.MallFetchRequest)(nil), // 3: blocks.MallFetchRequest
(*protobuf.IdentRequest)(nil), // 4: blocks.IdentRequest
(*protobuf.IdentityStatusReply)(nil), // 5: blocks.IdentityStatusReply
}
var file_ads_proto_depIdxs = []int32{
var file_module_ec_mall_proto_ads_proto_depIdxs = []int32{
2, // 0: mall.AdsListReply.data:type_name -> mall.AdsItem
0, // 1: mall.Ads.ByPos:input_type -> mall.ByPosRequest
3, // 2: mall.Ads.Fetch:input_type -> mall.FetchRequest
3, // 2: mall.Ads.Fetch:input_type -> blocks.MallFetchRequest
2, // 3: mall.Ads.Create:input_type -> mall.AdsItem
2, // 4: mall.Ads.Modify:input_type -> mall.AdsItem
4, // 5: mall.Ads.Delete:input_type -> mall.IdentRequest
4, // 5: mall.Ads.Delete:input_type -> blocks.IdentRequest
1, // 6: mall.Ads.ByPos:output_type -> mall.AdsListReply
1, // 7: mall.Ads.Fetch:output_type -> mall.AdsListReply
5, // 8: mall.Ads.Create:output_type -> mall.StatusReply
5, // 9: mall.Ads.Modify:output_type -> mall.StatusReply
5, // 10: mall.Ads.Delete:output_type -> mall.StatusReply
5, // 8: mall.Ads.Create:output_type -> blocks.IdentityStatusReply
5, // 9: mall.Ads.Modify:output_type -> blocks.IdentityStatusReply
5, // 10: mall.Ads.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
@@ -295,27 +296,26 @@ var file_ads_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_ads_proto_init() }
func file_ads_proto_init() {
if File_ads_proto != nil {
func init() { file_module_ec_mall_proto_ads_proto_init() }
func file_module_ec_mall_proto_ads_proto_init() {
if File_module_ec_mall_proto_ads_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_ads_proto_rawDesc), len(file_ads_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_ads_proto_rawDesc), len(file_module_ec_mall_proto_ads_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_ads_proto_goTypes,
DependencyIndexes: file_ads_proto_depIdxs,
MessageInfos: file_ads_proto_msgTypes,
GoTypes: file_module_ec_mall_proto_ads_proto_goTypes,
DependencyIndexes: file_module_ec_mall_proto_ads_proto_depIdxs,
MessageInfos: file_module_ec_mall_proto_ads_proto_msgTypes,
}.Build()
File_ads_proto = out.File
file_ads_proto_goTypes = nil
file_ads_proto_depIdxs = nil
File_module_ec_mall_proto_ads_proto = out.File
file_module_ec_mall_proto_ads_proto_goTypes = nil
file_module_ec_mall_proto_ads_proto_depIdxs = nil
}