|
@@ -5,6 +5,7 @@ import javax.validation.Valid;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.llisoft.pay.service.ApiService;
|
|
@@ -22,8 +23,9 @@ import io.swagger.annotations.ApiOperation;
|
|
|
* 按产品拆分不同接口
|
|
|
* @author YangJie [2023年12月20日]
|
|
|
*/
|
|
|
-@Api(tags="支付API")
|
|
|
+@Api(tags="青题库 支付API")
|
|
|
@RestController
|
|
|
+@RequestMapping("/qingtiku")
|
|
|
public class ApiQingtikuController{
|
|
|
|
|
|
@Autowired
|
|
@@ -31,27 +33,27 @@ public class ApiQingtikuController{
|
|
|
|
|
|
|
|
|
@ApiOperation(value="青题库 微信支付 APP")
|
|
|
- @PostMapping("/qingtiku/wxpay/app")
|
|
|
+ @PostMapping("/wxpay/app")
|
|
|
public ApiPayWxAppResponseVo qingtikuWxpayApp(@Valid @RequestBody ApiPayRequestVo requestVo) throws Exception{
|
|
|
String appid = "wxfb2da083f9dfe038";
|
|
|
return apiService.wxAppQinggu(appid, requestVo.getMoney(), requestVo.getTitle());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value="青题库 微信支付详情")
|
|
|
- @PostMapping("/qingtiku/wxpay/info")
|
|
|
+ @PostMapping("/wxpay/info")
|
|
|
public ApiInfoResponseVo qingtikuWxpayInfo(@Valid @RequestBody ApiInfoRequestVo requestVo) throws Exception{
|
|
|
return apiService.wxInfoQinggu(requestVo.getPid());
|
|
|
}
|
|
|
|
|
|
|
|
|
@ApiOperation(value="青题库 支付宝 APP")
|
|
|
- @PostMapping("/qingtiku/alipay/app")
|
|
|
+ @PostMapping("/alipay/app")
|
|
|
public ApiPayAliAppResponseVo qingtikuAlipayApp(@Valid @RequestBody ApiPayRequestVo requestVo) throws Exception{
|
|
|
return apiService.aliAppQinggu(requestVo.getMoney(), requestVo.getTitle());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value="青题库 支付宝详情")
|
|
|
- @PostMapping("/qingtiku/alipay/info")
|
|
|
+ @PostMapping("/alipay/info")
|
|
|
public ApiInfoResponseVo qingtikuAlipayInfo(@Valid @RequestBody ApiInfoRequestVo requestVo) throws Exception{
|
|
|
return apiService.aliInfoQinggu(requestVo.getPid());
|
|
|
}
|