|
|
@@ -1,21 +1,35 @@
|
|
|
package com.zhongshu.payment.server.core.controller.test;
|
|
|
|
|
|
+import com.zhongshu.card.client.model.feign.ProjectWxPayModel;
|
|
|
+import com.zhongshu.card.client.model.feign.ProjectWxPayParam;
|
|
|
+import com.zhongshu.card.client.model.payment.paySetting.WxPayConfigModel;
|
|
|
import com.zhongshu.card.client.ret.ResultContent;
|
|
|
+import com.zhongshu.card.client.service.ProjectPaySettingService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.UUID;
|
|
|
+
|
|
|
@RestController
|
|
|
@RequestMapping("test")
|
|
|
@Tag(name = "测试")
|
|
|
public class TestController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ProjectPaySettingService organizationFeignService;
|
|
|
+
|
|
|
@Operation(summary = "测试接口", description = "测试接口")
|
|
|
@RequestMapping(value = "text", method = {RequestMethod.GET})
|
|
|
public ResultContent text() {
|
|
|
- return ResultContent.buildSuccess();
|
|
|
+ ProjectWxPayParam param = new ProjectWxPayParam();
|
|
|
+ param.setAppId(UUID.randomUUID().toString());
|
|
|
+ ResultContent<WxPayConfigModel> content = organizationFeignService.getProjectWxPayConfig(param);
|
|
|
+ WxPayConfigModel model = content.getContent();
|
|
|
+ return ResultContent.buildSuccess(model);
|
|
|
}
|
|
|
|
|
|
|