Commit 000b1c4a by NitefullWind Committed by Carwyn

1. 增加卡券核销接口。

parent 686982cd
...@@ -20,7 +20,8 @@ public: ...@@ -20,7 +20,8 @@ public:
connect(this, &FMPRedeemInterface::TriggerUninit, this, &FMPRedeemInterface::OnTriggerUninit); connect(this, &FMPRedeemInterface::TriggerUninit, this, &FMPRedeemInterface::OnTriggerUninit);
} }
virtual QJsonObject Redeem(QJsonObject redeemInfo) = 0; //券码核销 virtual QJsonObject Redeem(const QJsonArray& productsInfo) = 0; //券码核销
virtual QJsonObject Redeem(const QJsonObject& productsInfoObj) = 0; //券码核销
virtual QJsonObject Reverse(QJsonObject request) = 0; //卡券冲正 virtual QJsonObject Reverse(QJsonObject request) = 0; //卡券冲正
virtual QJsonObject GetRedeemJson()const = 0; virtual QJsonObject GetRedeemJson()const = 0;
...@@ -32,7 +33,7 @@ protected slots: ...@@ -32,7 +33,7 @@ protected slots:
void OnTriggerInit() { FMPluginInterface::OnTriggerInit(); } void OnTriggerInit() { FMPluginInterface::OnTriggerInit(); }
void OnTriggerUninit() { FMPluginInterface::OnTriggerUninit(); } void OnTriggerUninit() { FMPluginInterface::OnTriggerUninit(); }
}; };
Q_DECLARE_INTERFACE(FMPRedeemInterface, "com.fmp.redeem") Q_DECLARE_INTERFACE(FMPRedeemInterface, "fmp.redeem")
#endif // FMP_REDEEM_I_H #endif // FMP_REDEEM_I_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment