805 lines
27 KiB
Go
805 lines
27 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_order_method.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 创建支付方式
|
|
type CreateOrderMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 支付名称
|
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 支付代号
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // 支付描述
|
|
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 自定义支付URL
|
|
ParentCode string `protobuf:"bytes,5,opt,name=parentCode,proto3" json:"parentCode,omitempty"` // 使用预设支付方式代号
|
|
ParamsJSON []byte `protobuf:"bytes,6,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"` // 预设支付方式参数
|
|
ClientType string `protobuf:"bytes,7,opt,name=clientType,proto3" json:"clientType,omitempty"`
|
|
QrcodeTitle string `protobuf:"bytes,8,opt,name=qrcodeTitle,proto3" json:"qrcodeTitle,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) Reset() {
|
|
*x = CreateOrderMethodRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOrderMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateOrderMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOrderMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateOrderMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetParentCode() string {
|
|
if x != nil {
|
|
return x.ParentCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetParamsJSON() []byte {
|
|
if x != nil {
|
|
return x.ParamsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetClientType() string {
|
|
if x != nil {
|
|
return x.ClientType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderMethodRequest) GetQrcodeTitle() string {
|
|
if x != nil {
|
|
return x.QrcodeTitle
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateOrderMethodResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethodId int64 `protobuf:"varint,1,opt,name=orderMethodId,proto3" json:"orderMethodId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOrderMethodResponse) Reset() {
|
|
*x = CreateOrderMethodResponse{}
|
|
mi := &file_service_order_method_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOrderMethodResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOrderMethodResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateOrderMethodResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOrderMethodResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateOrderMethodResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateOrderMethodResponse) GetOrderMethodId() int64 {
|
|
if x != nil {
|
|
return x.OrderMethodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改支付方式
|
|
// 不允许修改父级支付方式
|
|
type UpdateOrderMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethodId int64 `protobuf:"varint,1,opt,name=orderMethodId,proto3" json:"orderMethodId,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
|
|
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
|
|
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
|
|
ParamsJSON []byte `protobuf:"bytes,7,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"` // 预设支付方式参数
|
|
IsOn bool `protobuf:"varint,6,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
ClientType string `protobuf:"bytes,8,opt,name=clientType,proto3" json:"clientType,omitempty"`
|
|
QrcodeTitle string `protobuf:"bytes,9,opt,name=qrcodeTitle,proto3" json:"qrcodeTitle,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) Reset() {
|
|
*x = UpdateOrderMethodRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateOrderMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateOrderMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateOrderMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateOrderMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetOrderMethodId() int64 {
|
|
if x != nil {
|
|
return x.OrderMethodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetParamsJSON() []byte {
|
|
if x != nil {
|
|
return x.ParamsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetClientType() string {
|
|
if x != nil {
|
|
return x.ClientType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrderMethodRequest) GetQrcodeTitle() string {
|
|
if x != nil {
|
|
return x.QrcodeTitle
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 删除支付方式
|
|
type DeleteOrderMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethodId int64 `protobuf:"varint,1,opt,name=orderMethodId,proto3" json:"orderMethodId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteOrderMethodRequest) Reset() {
|
|
*x = DeleteOrderMethodRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteOrderMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteOrderMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteOrderMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteOrderMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteOrderMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DeleteOrderMethodRequest) GetOrderMethodId() int64 {
|
|
if x != nil {
|
|
return x.OrderMethodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 查找单个支付方式
|
|
type FindEnabledOrderMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethodId int64 `protobuf:"varint,1,opt,name=orderMethodId,proto3" json:"orderMethodId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodRequest) Reset() {
|
|
*x = FindEnabledOrderMethodRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledOrderMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledOrderMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledOrderMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledOrderMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodRequest) GetOrderMethodId() int64 {
|
|
if x != nil {
|
|
return x.OrderMethodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledOrderMethodResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethod *OrderMethod `protobuf:"bytes,1,opt,name=orderMethod,proto3" json:"orderMethod,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodResponse) Reset() {
|
|
*x = FindEnabledOrderMethodResponse{}
|
|
mi := &file_service_order_method_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledOrderMethodResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledOrderMethodResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledOrderMethodResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledOrderMethodResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodResponse) GetOrderMethod() *OrderMethod {
|
|
if x != nil {
|
|
return x.OrderMethod
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 根据代号查找支付方式
|
|
type FindEnabledOrderMethodWithCodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeRequest) Reset() {
|
|
*x = FindEnabledOrderMethodWithCodeRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledOrderMethodWithCodeRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledOrderMethodWithCodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledOrderMethodWithCodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FindEnabledOrderMethodWithCodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethod *OrderMethod `protobuf:"bytes,1,opt,name=orderMethod,proto3" json:"orderMethod,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeResponse) Reset() {
|
|
*x = FindEnabledOrderMethodWithCodeResponse{}
|
|
mi := &file_service_order_method_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledOrderMethodWithCodeResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledOrderMethodWithCodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledOrderMethodWithCodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *FindEnabledOrderMethodWithCodeResponse) GetOrderMethod() *OrderMethod {
|
|
if x != nil {
|
|
return x.OrderMethod
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查找所有支付方式
|
|
type FindAllEnabledOrderMethodsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledOrderMethodsRequest) Reset() {
|
|
*x = FindAllEnabledOrderMethodsRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllEnabledOrderMethodsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllEnabledOrderMethodsRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAllEnabledOrderMethodsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllEnabledOrderMethodsRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAllEnabledOrderMethodsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type FindAllEnabledOrderMethodsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethods []*OrderMethod `protobuf:"bytes,1,rep,name=orderMethods,proto3" json:"orderMethods,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledOrderMethodsResponse) Reset() {
|
|
*x = FindAllEnabledOrderMethodsResponse{}
|
|
mi := &file_service_order_method_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllEnabledOrderMethodsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllEnabledOrderMethodsResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAllEnabledOrderMethodsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllEnabledOrderMethodsResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAllEnabledOrderMethodsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *FindAllEnabledOrderMethodsResponse) GetOrderMethods() []*OrderMethod {
|
|
if x != nil {
|
|
return x.OrderMethods
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查找所有已启用的支付方式
|
|
type FindAllAvailableOrderMethodsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllAvailableOrderMethodsRequest) Reset() {
|
|
*x = FindAllAvailableOrderMethodsRequest{}
|
|
mi := &file_service_order_method_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllAvailableOrderMethodsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllAvailableOrderMethodsRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAllAvailableOrderMethodsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllAvailableOrderMethodsRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAllAvailableOrderMethodsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
type FindAllAvailableOrderMethodsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderMethods []*OrderMethod `protobuf:"bytes,1,rep,name=orderMethods,proto3" json:"orderMethods,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllAvailableOrderMethodsResponse) Reset() {
|
|
*x = FindAllAvailableOrderMethodsResponse{}
|
|
mi := &file_service_order_method_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllAvailableOrderMethodsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllAvailableOrderMethodsResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAllAvailableOrderMethodsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_order_method_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllAvailableOrderMethodsResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAllAvailableOrderMethodsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_order_method_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *FindAllAvailableOrderMethodsResponse) GetOrderMethods() []*OrderMethod {
|
|
if x != nil {
|
|
return x.OrderMethods
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_order_method_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_order_method_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1aservice_order_method.proto\x12\x02pb\x1a\x1fmodels/model_order_method.proto\x1a\x19models/rpc_messages.proto\"\xf8\x01\n" +
|
|
"\x18CreateOrderMethodRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04code\x18\x02 \x01(\tR\x04code\x12 \n" +
|
|
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x10\n" +
|
|
"\x03url\x18\x04 \x01(\tR\x03url\x12\x1e\n" +
|
|
"\n" +
|
|
"parentCode\x18\x05 \x01(\tR\n" +
|
|
"parentCode\x12\x1e\n" +
|
|
"\n" +
|
|
"paramsJSON\x18\x06 \x01(\fR\n" +
|
|
"paramsJSON\x12\x1e\n" +
|
|
"\n" +
|
|
"clientType\x18\a \x01(\tR\n" +
|
|
"clientType\x12 \n" +
|
|
"\vqrcodeTitle\x18\b \x01(\tR\vqrcodeTitle\"A\n" +
|
|
"\x19CreateOrderMethodResponse\x12$\n" +
|
|
"\rorderMethodId\x18\x01 \x01(\x03R\rorderMethodId\"\x92\x02\n" +
|
|
"\x18UpdateOrderMethodRequest\x12$\n" +
|
|
"\rorderMethodId\x18\x01 \x01(\x03R\rorderMethodId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04code\x18\x03 \x01(\tR\x04code\x12 \n" +
|
|
"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x10\n" +
|
|
"\x03url\x18\x05 \x01(\tR\x03url\x12\x1e\n" +
|
|
"\n" +
|
|
"paramsJSON\x18\a \x01(\fR\n" +
|
|
"paramsJSON\x12\x12\n" +
|
|
"\x04isOn\x18\x06 \x01(\bR\x04isOn\x12\x1e\n" +
|
|
"\n" +
|
|
"clientType\x18\b \x01(\tR\n" +
|
|
"clientType\x12 \n" +
|
|
"\vqrcodeTitle\x18\t \x01(\tR\vqrcodeTitle\"@\n" +
|
|
"\x18DeleteOrderMethodRequest\x12$\n" +
|
|
"\rorderMethodId\x18\x01 \x01(\x03R\rorderMethodId\"E\n" +
|
|
"\x1dFindEnabledOrderMethodRequest\x12$\n" +
|
|
"\rorderMethodId\x18\x01 \x01(\x03R\rorderMethodId\"S\n" +
|
|
"\x1eFindEnabledOrderMethodResponse\x121\n" +
|
|
"\vorderMethod\x18\x01 \x01(\v2\x0f.pb.OrderMethodR\vorderMethod\";\n" +
|
|
"%FindEnabledOrderMethodWithCodeRequest\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\"[\n" +
|
|
"&FindEnabledOrderMethodWithCodeResponse\x121\n" +
|
|
"\vorderMethod\x18\x01 \x01(\v2\x0f.pb.OrderMethodR\vorderMethod\"#\n" +
|
|
"!FindAllEnabledOrderMethodsRequest\"Y\n" +
|
|
"\"FindAllEnabledOrderMethodsResponse\x123\n" +
|
|
"\forderMethods\x18\x01 \x03(\v2\x0f.pb.OrderMethodR\forderMethods\"%\n" +
|
|
"#FindAllAvailableOrderMethodsRequest\"[\n" +
|
|
"$FindAllAvailableOrderMethodsResponse\x123\n" +
|
|
"\forderMethods\x18\x01 \x03(\v2\x0f.pb.OrderMethodR\forderMethods2\xa6\x05\n" +
|
|
"\x12OrderMethodService\x12P\n" +
|
|
"\x11createOrderMethod\x12\x1c.pb.CreateOrderMethodRequest\x1a\x1d.pb.CreateOrderMethodResponse\x12A\n" +
|
|
"\x11updateOrderMethod\x12\x1c.pb.UpdateOrderMethodRequest\x1a\x0e.pb.RPCSuccess\x12A\n" +
|
|
"\x11deleteOrderMethod\x12\x1c.pb.DeleteOrderMethodRequest\x1a\x0e.pb.RPCSuccess\x12_\n" +
|
|
"\x16findEnabledOrderMethod\x12!.pb.FindEnabledOrderMethodRequest\x1a\".pb.FindEnabledOrderMethodResponse\x12w\n" +
|
|
"\x1efindEnabledOrderMethodWithCode\x12).pb.FindEnabledOrderMethodWithCodeRequest\x1a*.pb.FindEnabledOrderMethodWithCodeResponse\x12k\n" +
|
|
"\x1afindAllEnabledOrderMethods\x12%.pb.FindAllEnabledOrderMethodsRequest\x1a&.pb.FindAllEnabledOrderMethodsResponse\x12q\n" +
|
|
"\x1cfindAllAvailableOrderMethods\x12'.pb.FindAllAvailableOrderMethodsRequest\x1a(.pb.FindAllAvailableOrderMethodsResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_order_method_proto_rawDescOnce sync.Once
|
|
file_service_order_method_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_order_method_proto_rawDescGZIP() []byte {
|
|
file_service_order_method_proto_rawDescOnce.Do(func() {
|
|
file_service_order_method_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_order_method_proto_rawDesc), len(file_service_order_method_proto_rawDesc)))
|
|
})
|
|
return file_service_order_method_proto_rawDescData
|
|
}
|
|
|
|
var file_service_order_method_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_service_order_method_proto_goTypes = []any{
|
|
(*CreateOrderMethodRequest)(nil), // 0: pb.CreateOrderMethodRequest
|
|
(*CreateOrderMethodResponse)(nil), // 1: pb.CreateOrderMethodResponse
|
|
(*UpdateOrderMethodRequest)(nil), // 2: pb.UpdateOrderMethodRequest
|
|
(*DeleteOrderMethodRequest)(nil), // 3: pb.DeleteOrderMethodRequest
|
|
(*FindEnabledOrderMethodRequest)(nil), // 4: pb.FindEnabledOrderMethodRequest
|
|
(*FindEnabledOrderMethodResponse)(nil), // 5: pb.FindEnabledOrderMethodResponse
|
|
(*FindEnabledOrderMethodWithCodeRequest)(nil), // 6: pb.FindEnabledOrderMethodWithCodeRequest
|
|
(*FindEnabledOrderMethodWithCodeResponse)(nil), // 7: pb.FindEnabledOrderMethodWithCodeResponse
|
|
(*FindAllEnabledOrderMethodsRequest)(nil), // 8: pb.FindAllEnabledOrderMethodsRequest
|
|
(*FindAllEnabledOrderMethodsResponse)(nil), // 9: pb.FindAllEnabledOrderMethodsResponse
|
|
(*FindAllAvailableOrderMethodsRequest)(nil), // 10: pb.FindAllAvailableOrderMethodsRequest
|
|
(*FindAllAvailableOrderMethodsResponse)(nil), // 11: pb.FindAllAvailableOrderMethodsResponse
|
|
(*OrderMethod)(nil), // 12: pb.OrderMethod
|
|
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
|
|
}
|
|
var file_service_order_method_proto_depIdxs = []int32{
|
|
12, // 0: pb.FindEnabledOrderMethodResponse.orderMethod:type_name -> pb.OrderMethod
|
|
12, // 1: pb.FindEnabledOrderMethodWithCodeResponse.orderMethod:type_name -> pb.OrderMethod
|
|
12, // 2: pb.FindAllEnabledOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod
|
|
12, // 3: pb.FindAllAvailableOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod
|
|
0, // 4: pb.OrderMethodService.createOrderMethod:input_type -> pb.CreateOrderMethodRequest
|
|
2, // 5: pb.OrderMethodService.updateOrderMethod:input_type -> pb.UpdateOrderMethodRequest
|
|
3, // 6: pb.OrderMethodService.deleteOrderMethod:input_type -> pb.DeleteOrderMethodRequest
|
|
4, // 7: pb.OrderMethodService.findEnabledOrderMethod:input_type -> pb.FindEnabledOrderMethodRequest
|
|
6, // 8: pb.OrderMethodService.findEnabledOrderMethodWithCode:input_type -> pb.FindEnabledOrderMethodWithCodeRequest
|
|
8, // 9: pb.OrderMethodService.findAllEnabledOrderMethods:input_type -> pb.FindAllEnabledOrderMethodsRequest
|
|
10, // 10: pb.OrderMethodService.findAllAvailableOrderMethods:input_type -> pb.FindAllAvailableOrderMethodsRequest
|
|
1, // 11: pb.OrderMethodService.createOrderMethod:output_type -> pb.CreateOrderMethodResponse
|
|
13, // 12: pb.OrderMethodService.updateOrderMethod:output_type -> pb.RPCSuccess
|
|
13, // 13: pb.OrderMethodService.deleteOrderMethod:output_type -> pb.RPCSuccess
|
|
5, // 14: pb.OrderMethodService.findEnabledOrderMethod:output_type -> pb.FindEnabledOrderMethodResponse
|
|
7, // 15: pb.OrderMethodService.findEnabledOrderMethodWithCode:output_type -> pb.FindEnabledOrderMethodWithCodeResponse
|
|
9, // 16: pb.OrderMethodService.findAllEnabledOrderMethods:output_type -> pb.FindAllEnabledOrderMethodsResponse
|
|
11, // 17: pb.OrderMethodService.findAllAvailableOrderMethods:output_type -> pb.FindAllAvailableOrderMethodsResponse
|
|
11, // [11:18] is the sub-list for method output_type
|
|
4, // [4:11] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_order_method_proto_init() }
|
|
func file_service_order_method_proto_init() {
|
|
if File_service_order_method_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_order_method_proto_init()
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_order_method_proto_rawDesc), len(file_service_order_method_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_order_method_proto_goTypes,
|
|
DependencyIndexes: file_service_order_method_proto_depIdxs,
|
|
MessageInfos: file_service_order_method_proto_msgTypes,
|
|
}.Build()
|
|
File_service_order_method_proto = out.File
|
|
file_service_order_method_proto_goTypes = nil
|
|
file_service_order_method_proto_depIdxs = nil
|
|
}
|