|
@@ -1,6 +1,5 @@
|
|
package com.zswl.cloud.springBtach.server.core.controller;
|
|
package com.zswl.cloud.springBtach.server.core.controller;
|
|
|
|
|
|
-import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import com.github.microservice.auth.client.constant.AuthConstant;
|
|
import com.github.microservice.auth.client.constant.AuthConstant;
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
@@ -12,6 +11,7 @@ import com.zhongshu.payment.client.model.payment.CloseResponsetModel;
|
|
import com.zhongshu.payment.client.model.payment.CreateResponseModel;
|
|
import com.zhongshu.payment.client.model.payment.CreateResponseModel;
|
|
import com.zhongshu.payment.client.model.payment.QueryRequestModel;
|
|
import com.zhongshu.payment.client.model.payment.QueryRequestModel;
|
|
import com.zhongshu.payment.client.model.payment.zswl.ApplyWithdrawalsModel;
|
|
import com.zhongshu.payment.client.model.payment.zswl.ApplyWithdrawalsModel;
|
|
|
|
+import com.zhongshu.payment.client.model.payment.zswl.AuditWithdrawalsModel;
|
|
import com.zhongshu.payment.client.model.payment.zswl.CreatePaymentModel;
|
|
import com.zhongshu.payment.client.model.payment.zswl.CreatePaymentModel;
|
|
import com.zhongshu.payment.client.model.payment.zswl.SyncInformModel;
|
|
import com.zhongshu.payment.client.model.payment.zswl.SyncInformModel;
|
|
import com.zswl.cloud.springBtach.server.core.model.SubOrderModel;
|
|
import com.zswl.cloud.springBtach.server.core.model.SubOrderModel;
|
|
@@ -130,14 +130,14 @@ public class PaymentController {
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
@RequestMapping(value = "account/withdrawals", method = RequestMethod.POST)
|
|
@RequestMapping(value = "account/withdrawals", method = RequestMethod.POST)
|
|
public ResultContent withdrawals(@RequestBody ApplyWithdrawalsModel applyWithdrawalsModel) {
|
|
public ResultContent withdrawals(@RequestBody ApplyWithdrawalsModel applyWithdrawalsModel) {
|
|
- return paymentServer.withdrawals(applyWithdrawalsModel);
|
|
|
|
|
|
+ return paymentServer.applicationWithdrawals(applyWithdrawalsModel);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("平台_提现按钮")
|
|
@ApiOperation("平台_提现按钮")
|
|
@ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
@ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
@RequestMapping(value = "account/withdrawalsPlatform", method = RequestMethod.POST)
|
|
@RequestMapping(value = "account/withdrawalsPlatform", method = RequestMethod.POST)
|
|
- public ResultContent withdrawalsPlatform(@RequestBody ChannelModel channel) {
|
|
|
|
- return paymentServer.withdrawalsPlatform(channel.getChannel());
|
|
|
|
|
|
+ public ResultContent withdrawalsPlatformApplication(@RequestBody ChannelModel channel) {
|
|
|
|
+ return paymentServer.withdrawalsPlatformApplication(channel.getChannel());
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("店铺_提现订单列表")
|
|
@ApiOperation("店铺_提现订单列表")
|
|
@@ -156,6 +156,20 @@ public class PaymentController {
|
|
return paymentServer.withdrawalsPlatformList(withdrawRequestModel);
|
|
return paymentServer.withdrawalsPlatformList(withdrawRequestModel);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("审核提现")
|
|
|
|
+ @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
|
|
+ @RequestMapping(value = "account/withdrawals/apply", method = RequestMethod.POST)
|
|
|
|
+ public ResultContent applyWithdrawals(@RequestBody @Valid AuditWithdrawalsModel auditWithdrawalsModel) {
|
|
|
|
+ return paymentServer.applyWithdrawals(auditWithdrawalsModel);
|
|
|
|
+ }
|
|
|
|
+ @ApiOperation("提现查询")
|
|
|
|
+ @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
|
|
+ @RequestMapping(value = "account/withdrawals/query/{batchNo}", method = RequestMethod.POST)
|
|
|
|
+ public ResultContent queryWithdrawals(@PathVariable("batchNo") String batchNo) {
|
|
|
|
+ return paymentServer.queryWithdrawals(batchNo);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiOperation("店铺_分账明细列表")
|
|
@ApiOperation("店铺_分账明细列表")
|
|
@ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
@ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|