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,8 +1,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc (unknown)
// source: coupon.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/order/proto/coupon.proto
package order
@@ -30,7 +30,7 @@ type Status struct {
func (x *Status) Reset() {
*x = Status{}
mi := &file_coupon_proto_msgTypes[0]
mi := &file_module_ec_order_proto_coupon_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -42,7 +42,7 @@ func (x *Status) String() string {
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_coupon_proto_msgTypes[0]
mi := &file_module_ec_order_proto_coupon_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -55,7 +55,7 @@ func (x *Status) ProtoReflect() protoreflect.Message {
// Deprecated: Use Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return file_coupon_proto_rawDescGZIP(), []int{0}
return file_module_ec_order_proto_coupon_proto_rawDescGZIP(), []int{0}
}
func (x *Status) GetStatus() int32 {
@@ -74,7 +74,7 @@ type CouponListReply struct {
func (x *CouponListReply) Reset() {
*x = CouponListReply{}
mi := &file_coupon_proto_msgTypes[1]
mi := &file_module_ec_order_proto_coupon_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -86,7 +86,7 @@ func (x *CouponListReply) String() string {
func (*CouponListReply) ProtoMessage() {}
func (x *CouponListReply) ProtoReflect() protoreflect.Message {
mi := &file_coupon_proto_msgTypes[1]
mi := &file_module_ec_order_proto_coupon_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -99,7 +99,7 @@ func (x *CouponListReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use CouponListReply.ProtoReflect.Descriptor instead.
func (*CouponListReply) Descriptor() ([]byte, []int) {
return file_coupon_proto_rawDescGZIP(), []int{1}
return file_module_ec_order_proto_coupon_proto_rawDescGZIP(), []int{1}
}
func (x *CouponListReply) GetData() []*CouponItem {
@@ -125,7 +125,7 @@ type CouponItem struct {
func (x *CouponItem) Reset() {
*x = CouponItem{}
mi := &file_coupon_proto_msgTypes[2]
mi := &file_module_ec_order_proto_coupon_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -137,7 +137,7 @@ func (x *CouponItem) String() string {
func (*CouponItem) ProtoMessage() {}
func (x *CouponItem) ProtoReflect() protoreflect.Message {
mi := &file_coupon_proto_msgTypes[2]
mi := &file_module_ec_order_proto_coupon_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -150,7 +150,7 @@ func (x *CouponItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use CouponItem.ProtoReflect.Descriptor instead.
func (*CouponItem) Descriptor() ([]byte, []int) {
return file_coupon_proto_rawDescGZIP(), []int{2}
return file_module_ec_order_proto_coupon_proto_rawDescGZIP(), []int{2}
}
func (x *CouponItem) GetId() int64 {
@@ -209,11 +209,11 @@ func (x *CouponItem) GetStatus() string {
return ""
}
var File_coupon_proto protoreflect.FileDescriptor
var File_module_ec_order_proto_coupon_proto protoreflect.FileDescriptor
const file_coupon_proto_rawDesc = "" +
const file_module_ec_order_proto_coupon_proto_rawDesc = "" +
"\n" +
"\x15ec/order/coupon.proto\x12\x05order\x1a\x12order/blocks.proto\" \n" +
"\"module/ec/order/proto/coupon.proto\x12\x05order\" \n" +
"\x06Status\x12\x16\n" +
"\x06status\x18\x01 \x01(\x05R\x06status\"8\n" +
"\x0fCouponListReply\x12%\n" +
@@ -229,27 +229,27 @@ const file_coupon_proto_rawDesc = "" +
"\aexpired\x18\a \x01(\tR\aexpired\x12\x16\n" +
"\x06status\x18\b \x01(\tR\x06status2=\n" +
"\x06Coupon\x123\n" +
"\bByStatus\x12\r.order.Status\x1a\x16.order.CouponListReply\"\x00B\tZ\a./orderb\x06proto3"
"\bByStatus\x12\r.order.Status\x1a\x16.order.CouponListReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
var (
file_coupon_proto_rawDescOnce sync.Once
file_coupon_proto_rawDescData []byte
file_module_ec_order_proto_coupon_proto_rawDescOnce sync.Once
file_module_ec_order_proto_coupon_proto_rawDescData []byte
)
func file_coupon_proto_rawDescGZIP() []byte {
file_coupon_proto_rawDescOnce.Do(func() {
file_coupon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_coupon_proto_rawDesc), len(file_coupon_proto_rawDesc)))
func file_module_ec_order_proto_coupon_proto_rawDescGZIP() []byte {
file_module_ec_order_proto_coupon_proto_rawDescOnce.Do(func() {
file_module_ec_order_proto_coupon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_coupon_proto_rawDesc), len(file_module_ec_order_proto_coupon_proto_rawDesc)))
})
return file_coupon_proto_rawDescData
return file_module_ec_order_proto_coupon_proto_rawDescData
}
var file_coupon_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_coupon_proto_goTypes = []any{
var file_module_ec_order_proto_coupon_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_module_ec_order_proto_coupon_proto_goTypes = []any{
(*Status)(nil), // 0: order.Status
(*CouponListReply)(nil), // 1: order.CouponListReply
(*CouponItem)(nil), // 2: order.CouponItem
}
var file_coupon_proto_depIdxs = []int32{
var file_module_ec_order_proto_coupon_proto_depIdxs = []int32{
2, // 0: order.CouponListReply.data:type_name -> order.CouponItem
0, // 1: order.Coupon.ByStatus:input_type -> order.Status
1, // 2: order.Coupon.ByStatus:output_type -> order.CouponListReply
@@ -260,27 +260,26 @@ var file_coupon_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_coupon_proto_init() }
func file_coupon_proto_init() {
if File_coupon_proto != nil {
func init() { file_module_ec_order_proto_coupon_proto_init() }
func file_module_ec_order_proto_coupon_proto_init() {
if File_module_ec_order_proto_coupon_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_coupon_proto_rawDesc), len(file_coupon_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_coupon_proto_rawDesc), len(file_module_ec_order_proto_coupon_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_coupon_proto_goTypes,
DependencyIndexes: file_coupon_proto_depIdxs,
MessageInfos: file_coupon_proto_msgTypes,
GoTypes: file_module_ec_order_proto_coupon_proto_goTypes,
DependencyIndexes: file_module_ec_order_proto_coupon_proto_depIdxs,
MessageInfos: file_module_ec_order_proto_coupon_proto_msgTypes,
}.Build()
File_coupon_proto = out.File
file_coupon_proto_goTypes = nil
file_coupon_proto_depIdxs = nil
File_module_ec_order_proto_coupon_proto = out.File
file_module_ec_order_proto_coupon_proto_goTypes = nil
file_module_ec_order_proto_coupon_proto_depIdxs = nil
}