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: notice.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/mall/proto/notice.proto
package mall
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 NoticeListReply struct {
func (x *NoticeListReply) Reset() {
*x = NoticeListReply{}
mi := &file_notice_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_notice_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -44,7 +45,7 @@ func (x *NoticeListReply) String() string {
func (*NoticeListReply) ProtoMessage() {}
func (x *NoticeListReply) ProtoReflect() protoreflect.Message {
mi := &file_notice_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_notice_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -57,7 +58,7 @@ func (x *NoticeListReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use NoticeListReply.ProtoReflect.Descriptor instead.
func (*NoticeListReply) Descriptor() ([]byte, []int) {
return file_notice_proto_rawDescGZIP(), []int{0}
return file_module_ec_mall_proto_notice_proto_rawDescGZIP(), []int{0}
}
func (x *NoticeListReply) GetData() []*NoticeItem {
@@ -91,7 +92,7 @@ type NoticeItem struct {
func (x *NoticeItem) Reset() {
*x = NoticeItem{}
mi := &file_notice_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_notice_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -103,7 +104,7 @@ func (x *NoticeItem) String() string {
func (*NoticeItem) ProtoMessage() {}
func (x *NoticeItem) ProtoReflect() protoreflect.Message {
mi := &file_notice_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_notice_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -116,7 +117,7 @@ func (x *NoticeItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use NoticeItem.ProtoReflect.Descriptor instead.
func (*NoticeItem) Descriptor() ([]byte, []int) {
return file_notice_proto_rawDescGZIP(), []int{1}
return file_module_ec_mall_proto_notice_proto_rawDescGZIP(), []int{1}
}
func (x *NoticeItem) GetIdentity() string {
@@ -175,11 +176,11 @@ func (x *NoticeItem) GetStatus() int64 {
return 0
}
var File_notice_proto protoreflect.FileDescriptor
var File_module_ec_mall_proto_notice_proto protoreflect.FileDescriptor
const file_notice_proto_rawDesc = "" +
const file_module_ec_mall_proto_notice_proto_rawDesc = "" +
"\n" +
"\x14ec/mall/notice.proto\x12\x04mall\x1a\x11mall/blocks.proto\"M\n" +
"!module/ec/mall/proto/notice.proto\x12\x04mall\x1a\x15protobuf/blocks.proto\"M\n" +
"\x0fNoticeListReply\x12$\n" +
"\x04data\x18\x01 \x03(\v2\x10.mall.NoticeItemR\x04data\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count\"\xec\x01\n" +
@@ -194,43 +195,43 @@ const file_notice_proto_rawDesc = "" +
"\n" +
"created_at\x18\a \x01(\tR\n" +
"created_at\x12\x16\n" +
"\x06status\x18\b \x01(\x03R\x06status2\xd3\x01\n" +
"\x06Notice\x124\n" +
"\x05Fetch\x12\x12.mall.FetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x12/\n" +
"\x06Create\x12\x10.mall.NoticeItem\x1a\x11.mall.StatusReply\"\x00\x12/\n" +
"\x06Modify\x12\x10.mall.NoticeItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
"\x06status\x18\b \x01(\x03R\x06status2\xf9\x01\n" +
"\x06Notice\x12:\n" +
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x129\n" +
"\x06Create\x12\x10.mall.NoticeItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x129\n" +
"\x06Modify\x12\x10.mall.NoticeItem\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_notice_proto_rawDescOnce sync.Once
file_notice_proto_rawDescData []byte
file_module_ec_mall_proto_notice_proto_rawDescOnce sync.Once
file_module_ec_mall_proto_notice_proto_rawDescData []byte
)
func file_notice_proto_rawDescGZIP() []byte {
file_notice_proto_rawDescOnce.Do(func() {
file_notice_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_notice_proto_rawDesc), len(file_notice_proto_rawDesc)))
func file_module_ec_mall_proto_notice_proto_rawDescGZIP() []byte {
file_module_ec_mall_proto_notice_proto_rawDescOnce.Do(func() {
file_module_ec_mall_proto_notice_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_notice_proto_rawDesc), len(file_module_ec_mall_proto_notice_proto_rawDesc)))
})
return file_notice_proto_rawDescData
return file_module_ec_mall_proto_notice_proto_rawDescData
}
var file_notice_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_notice_proto_goTypes = []any{
(*NoticeListReply)(nil), // 0: mall.NoticeListReply
(*NoticeItem)(nil), // 1: mall.NoticeItem
(*FetchRequest)(nil), // 2: mall.FetchRequest
(*IdentRequest)(nil), // 3: mall.IdentRequest
(*StatusReply)(nil), // 4: mall.StatusReply
var file_module_ec_mall_proto_notice_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_module_ec_mall_proto_notice_proto_goTypes = []any{
(*NoticeListReply)(nil), // 0: mall.NoticeListReply
(*NoticeItem)(nil), // 1: mall.NoticeItem
(*protobuf.MallFetchRequest)(nil), // 2: blocks.MallFetchRequest
(*protobuf.IdentRequest)(nil), // 3: blocks.IdentRequest
(*protobuf.IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
}
var file_notice_proto_depIdxs = []int32{
var file_module_ec_mall_proto_notice_proto_depIdxs = []int32{
1, // 0: mall.NoticeListReply.data:type_name -> mall.NoticeItem
2, // 1: mall.Notice.Fetch:input_type -> mall.FetchRequest
2, // 1: mall.Notice.Fetch:input_type -> blocks.MallFetchRequest
1, // 2: mall.Notice.Create:input_type -> mall.NoticeItem
1, // 3: mall.Notice.Modify:input_type -> mall.NoticeItem
3, // 4: mall.Notice.Delete:input_type -> mall.IdentRequest
3, // 4: mall.Notice.Delete:input_type -> blocks.IdentRequest
0, // 5: mall.Notice.Fetch:output_type -> mall.NoticeListReply
4, // 6: mall.Notice.Create:output_type -> mall.StatusReply
4, // 7: mall.Notice.Modify:output_type -> mall.StatusReply
4, // 8: mall.Notice.Delete:output_type -> mall.StatusReply
4, // 6: mall.Notice.Create:output_type -> blocks.IdentityStatusReply
4, // 7: mall.Notice.Modify:output_type -> blocks.IdentityStatusReply
4, // 8: mall.Notice.Delete:output_type -> blocks.IdentityStatusReply
5, // [5:9] is the sub-list for method output_type
1, // [1:5] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
@@ -238,27 +239,26 @@ var file_notice_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_notice_proto_init() }
func file_notice_proto_init() {
if File_notice_proto != nil {
func init() { file_module_ec_mall_proto_notice_proto_init() }
func file_module_ec_mall_proto_notice_proto_init() {
if File_module_ec_mall_proto_notice_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_notice_proto_rawDesc), len(file_notice_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_notice_proto_rawDesc), len(file_module_ec_mall_proto_notice_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_notice_proto_goTypes,
DependencyIndexes: file_notice_proto_depIdxs,
MessageInfos: file_notice_proto_msgTypes,
GoTypes: file_module_ec_mall_proto_notice_proto_goTypes,
DependencyIndexes: file_module_ec_mall_proto_notice_proto_depIdxs,
MessageInfos: file_module_ec_mall_proto_notice_proto_msgTypes,
}.Build()
File_notice_proto = out.File
file_notice_proto_goTypes = nil
file_notice_proto_depIdxs = nil
File_module_ec_mall_proto_notice_proto = out.File
file_module_ec_mall_proto_notice_proto_goTypes = nil
file_module_ec_mall_proto_notice_proto_depIdxs = nil
}