|
|
@@ -2,8 +2,11 @@ package com.zhongshu.card.server.core.controller.paySetting;
|
|
|
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
+import com.zhongshu.card.client.model.base.IDParam;
|
|
|
+import com.zhongshu.card.client.model.base.ProjectOidParam;
|
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayParam;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
+import com.zhongshu.card.client.model.paySetting.payConfig.LaKaLaCollectionConfig;
|
|
|
import com.zhongshu.card.client.model.paySetting.paySetting.*;
|
|
|
import com.zhongshu.card.server.core.service.paySetting.ProjectPaySettingServiceImpl;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@@ -14,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @author TRX
|
|
|
* @date 2024/7/26
|
|
|
@@ -36,8 +41,37 @@ public class ProjectPaySettingController {
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "得到项目的微信支付配置", description = "得到项目的微信支付配置")
|
|
|
@RequestMapping(value = "getWxPayConfig", method = {RequestMethod.POST})
|
|
|
- public ResultContent<WxPayConfigParam> getWxPayConfig(@RequestBody ProjectPaySettingSearch param) {
|
|
|
+ public ResultContent<WxPayConfigParam> getWxPayConfig(@RequestBody ProjectOidParam param) {
|
|
|
return projectPaySettingService.getWxPayConfig(param.getProjectOid());
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "保存项目的拉卡拉支付设置", description = "保存项目的拉卡拉支付设置")
|
|
|
+ @RequestMapping(value = "saveLaKaLaConfig", method = {RequestMethod.POST})
|
|
|
+ public ResultContent saveLaKaLaConfig(@RequestBody LaKaLaCollectionConfig param) {
|
|
|
+ return projectPaySettingService.saveLaKaLaConfig(param);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "得到项目的拉卡拉支付配置", description = "得到项目的拉卡拉支付配置")
|
|
|
+ @RequestMapping(value = "getLaKaLaConfig", method = {RequestMethod.POST})
|
|
|
+ public ResultContent<LaKaLaCollectionConfig> getLaKaLaConfig(@RequestBody ProjectOidParam param) {
|
|
|
+ return projectPaySettingService.getLaKaLaConfig(param.getProjectOid());
|
|
|
+ }
|
|
|
+
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "得到项目所有的支付渠道参数配置", description = "得到项目所有的支付渠道参数配置")
|
|
|
+ @RequestMapping(value = "getAllProjectPaySetting", method = {RequestMethod.POST})
|
|
|
+ public ResultContent<List<ProjectPaySettingModel>> getAllProjectPaySetting(@RequestBody ProjectOidParam param) {
|
|
|
+ return projectPaySettingService.getAllProjectPaySetting(param.getProjectOid());
|
|
|
+ }
|
|
|
+
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "删除参数配置", description = "删除参数配置")
|
|
|
+ @RequestMapping(value = "deleteInfo", method = {RequestMethod.POST})
|
|
|
+ public ResultContent deleteInfo(
|
|
|
+ @RequestBody IDParam param) {
|
|
|
+ return projectPaySettingService.deleteInfo(param.getId());
|
|
|
+ }
|
|
|
+
|
|
|
}
|