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.8
// protoc (unknown)
// source: wechat.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/finance/wallet/proto/wechat.proto
package wallet
@@ -35,7 +35,7 @@ type WxpayJSAPIPreOrderRequest struct {
func (x *WxpayJSAPIPreOrderRequest) Reset() {
*x = WxpayJSAPIPreOrderRequest{}
mi := &file_wechat_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -47,7 +47,7 @@ func (x *WxpayJSAPIPreOrderRequest) String() string {
func (*WxpayJSAPIPreOrderRequest) ProtoMessage() {}
func (x *WxpayJSAPIPreOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -60,7 +60,7 @@ func (x *WxpayJSAPIPreOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayJSAPIPreOrderRequest.ProtoReflect.Descriptor instead.
func (*WxpayJSAPIPreOrderRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{0}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{0}
}
func (x *WxpayJSAPIPreOrderRequest) GetUserIdentification() string {
@@ -119,7 +119,7 @@ type WxpayJSAPIPreOrderReply struct {
func (x *WxpayJSAPIPreOrderReply) Reset() {
*x = WxpayJSAPIPreOrderReply{}
mi := &file_wechat_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -131,7 +131,7 @@ func (x *WxpayJSAPIPreOrderReply) String() string {
func (*WxpayJSAPIPreOrderReply) ProtoMessage() {}
func (x *WxpayJSAPIPreOrderReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -144,7 +144,7 @@ func (x *WxpayJSAPIPreOrderReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayJSAPIPreOrderReply.ProtoReflect.Descriptor instead.
func (*WxpayJSAPIPreOrderReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{1}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{1}
}
func (x *WxpayJSAPIPreOrderReply) GetPrepayId() string {
@@ -201,7 +201,7 @@ type WxpayAppPreOrderRequest struct {
func (x *WxpayAppPreOrderRequest) Reset() {
*x = WxpayAppPreOrderRequest{}
mi := &file_wechat_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -213,7 +213,7 @@ func (x *WxpayAppPreOrderRequest) String() string {
func (*WxpayAppPreOrderRequest) ProtoMessage() {}
func (x *WxpayAppPreOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -226,7 +226,7 @@ func (x *WxpayAppPreOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayAppPreOrderRequest.ProtoReflect.Descriptor instead.
func (*WxpayAppPreOrderRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{2}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{2}
}
func (x *WxpayAppPreOrderRequest) GetUserIdentification() string {
@@ -268,7 +268,7 @@ type WxpayAppPreOrderReply struct {
func (x *WxpayAppPreOrderReply) Reset() {
*x = WxpayAppPreOrderReply{}
mi := &file_wechat_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -280,7 +280,7 @@ func (x *WxpayAppPreOrderReply) String() string {
func (*WxpayAppPreOrderReply) ProtoMessage() {}
func (x *WxpayAppPreOrderReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -293,7 +293,7 @@ func (x *WxpayAppPreOrderReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayAppPreOrderReply.ProtoReflect.Descriptor instead.
func (*WxpayAppPreOrderReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{3}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{3}
}
func (x *WxpayAppPreOrderReply) GetPrepayId() string {
@@ -329,7 +329,7 @@ type WxpayNativePreOrderRequest struct {
func (x *WxpayNativePreOrderRequest) Reset() {
*x = WxpayNativePreOrderRequest{}
mi := &file_wechat_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -341,7 +341,7 @@ func (x *WxpayNativePreOrderRequest) String() string {
func (*WxpayNativePreOrderRequest) ProtoMessage() {}
func (x *WxpayNativePreOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -354,7 +354,7 @@ func (x *WxpayNativePreOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayNativePreOrderRequest.ProtoReflect.Descriptor instead.
func (*WxpayNativePreOrderRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{4}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{4}
}
func (x *WxpayNativePreOrderRequest) GetUserIdentification() string {
@@ -394,7 +394,7 @@ type WxpayNativePreOrderReply struct {
func (x *WxpayNativePreOrderReply) Reset() {
*x = WxpayNativePreOrderReply{}
mi := &file_wechat_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -406,7 +406,7 @@ func (x *WxpayNativePreOrderReply) String() string {
func (*WxpayNativePreOrderReply) ProtoMessage() {}
func (x *WxpayNativePreOrderReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -419,7 +419,7 @@ func (x *WxpayNativePreOrderReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayNativePreOrderReply.ProtoReflect.Descriptor instead.
func (*WxpayNativePreOrderReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{5}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{5}
}
func (x *WxpayNativePreOrderReply) GetCodeUrl() string {
@@ -442,7 +442,7 @@ type WxpayTransferRequest struct {
func (x *WxpayTransferRequest) Reset() {
*x = WxpayTransferRequest{}
mi := &file_wechat_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -454,7 +454,7 @@ func (x *WxpayTransferRequest) String() string {
func (*WxpayTransferRequest) ProtoMessage() {}
func (x *WxpayTransferRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -467,7 +467,7 @@ func (x *WxpayTransferRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayTransferRequest.ProtoReflect.Descriptor instead.
func (*WxpayTransferRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{6}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{6}
}
func (x *WxpayTransferRequest) GetUserIdentification() string {
@@ -513,7 +513,7 @@ type WxpayTransferReply struct {
func (x *WxpayTransferReply) Reset() {
*x = WxpayTransferReply{}
mi := &file_wechat_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -525,7 +525,7 @@ func (x *WxpayTransferReply) String() string {
func (*WxpayTransferReply) ProtoMessage() {}
func (x *WxpayTransferReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -538,7 +538,7 @@ func (x *WxpayTransferReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayTransferReply.ProtoReflect.Descriptor instead.
func (*WxpayTransferReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{7}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{7}
}
type WxCallBackResource struct {
@@ -554,7 +554,7 @@ type WxCallBackResource struct {
func (x *WxCallBackResource) Reset() {
*x = WxCallBackResource{}
mi := &file_wechat_proto_msgTypes[8]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -566,7 +566,7 @@ func (x *WxCallBackResource) String() string {
func (*WxCallBackResource) ProtoMessage() {}
func (x *WxCallBackResource) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[8]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -579,7 +579,7 @@ func (x *WxCallBackResource) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxCallBackResource.ProtoReflect.Descriptor instead.
func (*WxCallBackResource) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{8}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{8}
}
func (x *WxCallBackResource) GetOriginalType() string {
@@ -632,7 +632,7 @@ type WxCallBackSignInfo struct {
func (x *WxCallBackSignInfo) Reset() {
*x = WxCallBackSignInfo{}
mi := &file_wechat_proto_msgTypes[9]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -644,7 +644,7 @@ func (x *WxCallBackSignInfo) String() string {
func (*WxCallBackSignInfo) ProtoMessage() {}
func (x *WxCallBackSignInfo) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[9]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -657,7 +657,7 @@ func (x *WxCallBackSignInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxCallBackSignInfo.ProtoReflect.Descriptor instead.
func (*WxCallBackSignInfo) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{9}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{9}
}
func (x *WxCallBackSignInfo) GetTransactionId() string {
@@ -724,7 +724,7 @@ type WxCallBackRequest struct {
func (x *WxCallBackRequest) Reset() {
*x = WxCallBackRequest{}
mi := &file_wechat_proto_msgTypes[10]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -736,7 +736,7 @@ func (x *WxCallBackRequest) String() string {
func (*WxCallBackRequest) ProtoMessage() {}
func (x *WxCallBackRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[10]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -749,7 +749,7 @@ func (x *WxCallBackRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxCallBackRequest.ProtoReflect.Descriptor instead.
func (*WxCallBackRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{10}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{10}
}
func (x *WxCallBackRequest) GetId() string {
@@ -811,7 +811,7 @@ type CallBackReply struct {
func (x *CallBackReply) Reset() {
*x = CallBackReply{}
mi := &file_wechat_proto_msgTypes[11]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -823,7 +823,7 @@ func (x *CallBackReply) String() string {
func (*CallBackReply) ProtoMessage() {}
func (x *CallBackReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[11]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -836,7 +836,7 @@ func (x *CallBackReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use CallBackReply.ProtoReflect.Descriptor instead.
func (*CallBackReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{11}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{11}
}
func (x *CallBackReply) GetCode() string {
@@ -853,11 +853,11 @@ func (x *CallBackReply) GetMessage() string {
return ""
}
var File_wechat_proto protoreflect.FileDescriptor
var File_module_finance_wallet_proto_wechat_proto protoreflect.FileDescriptor
const file_wechat_proto_rawDesc = "" +
const file_module_finance_wallet_proto_wechat_proto_rawDesc = "" +
"\n" +
"\x1bfinance/wallet/wechat.proto\x12\x06wallet\"\xdc\x01\n" +
"(module/finance/wallet/proto/wechat.proto\x12\x06wallet\"\xdc\x01\n" +
"\x19WxpayJSAPIPreOrderRequest\x12/\n" +
"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" +
"\x06amount\x18\x02 \x01(\x03R\x06amount\x12\x1b\n" +
@@ -934,23 +934,22 @@ const file_wechat_proto_rawDesc = "" +
"\x0eNativePreOrder\x12\".wallet.WxpayNativePreOrderRequest\x1a .wallet.WxpayNativePreOrderReply\"\x00\x12F\n" +
"\bTransfer\x12\x1c.wallet.WxpayTransferRequest\x1a\x1a.wallet.WxpayTransferReply\"\x00\x12@\n" +
"\n" +
"WxCallback\x12\x19.wallet.WxCallBackRequest\x1a\x15.wallet.CallBackReply\"\x00B\n" +
"Z\b.;walletb\x06proto3"
"WxCallback\x12\x19.wallet.WxCallBackRequest\x1a\x15.wallet.CallBackReply\"\x00B*Z(bsm/full/module/finance/wallet/pb;walletb\x06proto3"
var (
file_wechat_proto_rawDescOnce sync.Once
file_wechat_proto_rawDescData []byte
file_module_finance_wallet_proto_wechat_proto_rawDescOnce sync.Once
file_module_finance_wallet_proto_wechat_proto_rawDescData []byte
)
func file_wechat_proto_rawDescGZIP() []byte {
file_wechat_proto_rawDescOnce.Do(func() {
file_wechat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wechat_proto_rawDesc), len(file_wechat_proto_rawDesc)))
func file_module_finance_wallet_proto_wechat_proto_rawDescGZIP() []byte {
file_module_finance_wallet_proto_wechat_proto_rawDescOnce.Do(func() {
file_module_finance_wallet_proto_wechat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_wechat_proto_rawDesc), len(file_module_finance_wallet_proto_wechat_proto_rawDesc)))
})
return file_wechat_proto_rawDescData
return file_module_finance_wallet_proto_wechat_proto_rawDescData
}
var file_wechat_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_wechat_proto_goTypes = []any{
var file_module_finance_wallet_proto_wechat_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_module_finance_wallet_proto_wechat_proto_goTypes = []any{
(*WxpayJSAPIPreOrderRequest)(nil), // 0: wallet.WxpayJSAPIPreOrderRequest
(*WxpayJSAPIPreOrderReply)(nil), // 1: wallet.WxpayJSAPIPreOrderReply
(*WxpayAppPreOrderRequest)(nil), // 2: wallet.WxpayAppPreOrderRequest
@@ -964,7 +963,7 @@ var file_wechat_proto_goTypes = []any{
(*WxCallBackRequest)(nil), // 10: wallet.WxCallBackRequest
(*CallBackReply)(nil), // 11: wallet.CallBackReply
}
var file_wechat_proto_depIdxs = []int32{
var file_module_finance_wallet_proto_wechat_proto_depIdxs = []int32{
8, // 0: wallet.WxCallBackRequest.resource:type_name -> wallet.WxCallBackResource
9, // 1: wallet.WxCallBackRequest.SignInfo:type_name -> wallet.WxCallBackSignInfo
0, // 2: wallet.Wechat.JsapiPreOrder:input_type -> wallet.WxpayJSAPIPreOrderRequest
@@ -984,26 +983,26 @@ var file_wechat_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name
}
func init() { file_wechat_proto_init() }
func file_wechat_proto_init() {
if File_wechat_proto != nil {
func init() { file_module_finance_wallet_proto_wechat_proto_init() }
func file_module_finance_wallet_proto_wechat_proto_init() {
if File_module_finance_wallet_proto_wechat_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_wechat_proto_rawDesc), len(file_wechat_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_wechat_proto_rawDesc), len(file_module_finance_wallet_proto_wechat_proto_rawDesc)),
NumEnums: 0,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_wechat_proto_goTypes,
DependencyIndexes: file_wechat_proto_depIdxs,
MessageInfos: file_wechat_proto_msgTypes,
GoTypes: file_module_finance_wallet_proto_wechat_proto_goTypes,
DependencyIndexes: file_module_finance_wallet_proto_wechat_proto_depIdxs,
MessageInfos: file_module_finance_wallet_proto_wechat_proto_msgTypes,
}.Build()
File_wechat_proto = out.File
file_wechat_proto_goTypes = nil
file_wechat_proto_depIdxs = nil
File_module_finance_wallet_proto_wechat_proto = out.File
file_module_finance_wallet_proto_wechat_proto_goTypes = nil
file_module_finance_wallet_proto_wechat_proto_depIdxs = nil
}