feat:机器上可以查询全部订单
This commit is contained in:
1 parent
88ff8988fb
commit
a6fc25ddce
13 files changed
+956
-388
No files matched your search
@@ -189,6 +189,22 @@ abstract class HardApi {
|
||||
return ServiceVerificationRecordPage.fromJson(res.data);
|
||||
}
|
||||
|
||||
/// 分页查询当前设备的交易记录;scope=MERCHANT 时按终端所属商户查询全部设备。
|
||||
static Future<ServiceTerminalOrderRecordPage?> terminalOrderRecordPage({
|
||||
required int current,
|
||||
required int size,
|
||||
required TerminalOrderRecordQueryRequest request,
|
||||
}) async {
|
||||
final res = await HttpManage().dio.post(
|
||||
'/hard/hard-api/ad/order-record/page',
|
||||
queryParameters: {'current': current, 'size': size},
|
||||
data: request.toJson(),
|
||||
options: dio.Options(headers: {'DEVICE-ID': '${request.hardId}'}),
|
||||
);
|
||||
if (res.data == null) return null;
|
||||
return ServiceTerminalOrderRecordPage.fromJson(res.data);
|
||||
}
|
||||
|
||||
/// 创建硬件订单
|
||||
static Future<String?> createHardwareOrder(dynamic formData) async {
|
||||
final res = await HttpManage().dio.post(
|
||||
|
||||
Reference in new issue
Block a user