Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmPOS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaojing.zhang
fmPOS
Commits
18ad56b1
Commit
18ad56b1
authored
Dec 18, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 增加卡券核销接口。
parent
4f64e691
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
fmp_redeem/fmp_redeem_i.h
+39
-0
include/interface/fmp_redeem_i.h
+2
-0
No files found.
fmp_redeem/fmp_redeem_i.h
0 → 100644
View file @
18ad56b1
#
ifndef
FMP_REDEEM_I_H
#define FMP_REDEEM_I_H
#include <fmp_plugin_i.h>
/**
* 业务插件接口,必须继承自 FMPluginInterface
* @brief The FMPRedeemInterface class
*/
class
FMPRedeemInterface
:
public
QObject
,
public
FMPluginInterface
{
Q_OBJECT
Q_INTERFACES
(
FMPBaseInterface
)
Q_INTERFACES
(
FMPluginInterface
)
public
:
explicit
FMPRedeemInterface
(
ctkPluginContext
*
ctx
)
:
FMPluginInterface
(
ctx
)
{
connect
(
this
,
&
FMPRedeemInterface
::
TriggerInit
,
this
,
&
FMPRedeemInterface
::
OnTriggerInit
);
connect
(
this
,
&
FMPRedeemInterface
::
TriggerUninit
,
this
,
&
FMPRedeemInterface
::
OnTriggerUninit
);
}
virtual
QJsonObject
Redeem
(
const
QJsonArray
&
productsInfo
)
=
0
;
//券码核销
virtual
QJsonObject
Redeem
(
const
QJsonObject
&
productsInfoObj
)
=
0
;
//券码核销
virtual
QJsonObject
Reverse
(
QJsonObject
request
)
=
0
;
//卡券冲正
virtual
QJsonObject
GetRedeemJson
()
const
=
0
;
signals
:
void
TriggerInit
();
void
TriggerUninit
();
protected
slots
:
void
OnTriggerInit
()
{
FMPluginInterface
::
OnTriggerInit
();
}
void
OnTriggerUninit
()
{
FMPluginInterface
::
OnTriggerUninit
();
}
};
Q_DECLARE_INTERFACE
(
FMPRedeemInterface
,
"fmp.redeem"
)
#endif // FMP_REDEEM_I_H
include/interface/fmp_redeem_i.h
0 → 100644
View file @
18ad56b1
#include "../../fmp_redeem/fmp_redeem_i.h"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment