From 3834ffd0e91295b33cf22b673ef55b3df233be42 Mon Sep 17 00:00:00 2001 From: ljl Date: Thu, 9 Nov 2023 11:13:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/spi/callback/BatchCreateService.java | 28 +++++++++++++++++++ .../ms/biz/spi/callback/BatchPayService.java | 28 +++++++++++++++++++ .../QuerySupplyPlatformAuthService.java | 28 +++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 ms-biz/src/main/java/com/ms/biz/spi/callback/BatchCreateService.java create mode 100644 ms-biz/src/main/java/com/ms/biz/spi/callback/BatchPayService.java create mode 100644 ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java diff --git a/ms-biz/src/main/java/com/ms/biz/spi/callback/BatchCreateService.java b/ms-biz/src/main/java/com/ms/biz/spi/callback/BatchCreateService.java new file mode 100644 index 0000000..83b6890 --- /dev/null +++ b/ms-biz/src/main/java/com/ms/biz/spi/callback/BatchCreateService.java @@ -0,0 +1,28 @@ +package com.ms.biz.spi.callback; + +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.biz.common.R; +import com.ms.biz.common.SPIBaseService; +import com.ms.biz.dto.openspi.request.BatchCreateParam; +import com.ms.biz.dto.openspi.response.BatchCreateData; +import com.ms.biz.service.DistributionOrderService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +@ExtensionService("batchCreate") +@Slf4j +@AllArgsConstructor +public class BatchCreateService extends SPIBaseService implements ExtensionServiceHandler { + private DistributionOrderService distributionOrderService; + + @Override + public BaseResponse handle(BaseRequest req) { + BatchCreateParam param = req.getData(); + BatchCreateData data = new BatchCreateData(); + distributionOrderService.batchCreate(param, data); + return R.ok(data); + } +} \ No newline at end of file diff --git a/ms-biz/src/main/java/com/ms/biz/spi/callback/BatchPayService.java b/ms-biz/src/main/java/com/ms/biz/spi/callback/BatchPayService.java new file mode 100644 index 0000000..dac292b --- /dev/null +++ b/ms-biz/src/main/java/com/ms/biz/spi/callback/BatchPayService.java @@ -0,0 +1,28 @@ +package com.ms.biz.spi.callback; + +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.biz.common.R; +import com.ms.biz.common.SPIBaseService; +import com.ms.biz.dto.openspi.request.BatchPayParam; +import com.ms.biz.dto.openspi.response.BatchPayData; +import com.ms.biz.service.DistributionOrderService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +@ExtensionService("batchPay") +@Slf4j +@AllArgsConstructor +public class BatchPayService extends SPIBaseService implements ExtensionServiceHandler { + private DistributionOrderService distributionOrderService; + + @Override + public BaseResponse handle(BaseRequest req) { + BatchPayParam param = req.getData(); + BatchPayData data = new BatchPayData(); + distributionOrderService.batchPay(param, data); + return R.ok(data); + } +} \ No newline at end of file diff --git a/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java b/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java new file mode 100644 index 0000000..bfe5836 --- /dev/null +++ b/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java @@ -0,0 +1,28 @@ +package com.ms.biz.spi.callback; + +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.biz.common.R; +import com.ms.biz.common.SPIBaseService; +import com.ms.biz.dto.openspi.request.QuerySupplyPlatformAuthParam; +import com.ms.biz.dto.openspi.response.QuerySupplyPlatformAuthData; +import com.ms.biz.service.ShopService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +@ExtensionService("querySupplyPlatformAuth") +@Slf4j +@AllArgsConstructor +public class QuerySupplyPlatformAuthService extends SPIBaseService implements ExtensionServiceHandler { + private ShopService shopService; + + @Override + public BaseResponse handle(BaseRequest req) { + QuerySupplyPlatformAuthParam param = req.getData(); + QuerySupplyPlatformAuthData data = new QuerySupplyPlatformAuthData(); + shopService.querySupplyPlatformAuth(param, data); + return R.ok(data); + } +} \ No newline at end of file