|
|
@@ -1,5 +1,7 @@
|
|
|
package com.zhongshu.card.server.core.controller.pay.withdraw;
|
|
|
|
|
|
+import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
+import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.types.payment.PaymentType;
|
|
|
import com.zhongshu.card.client.model.pay.ProcessWithdrawParam;
|
|
|
import com.zhongshu.card.client.model.pay.WithdrawPageParam;
|
|
|
@@ -21,6 +23,7 @@ public class WithdrawController {
|
|
|
@Autowired
|
|
|
private WithdrawService withdrawService;
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "查询账户可提案余额", description = "顶部数据及资金概况-折线图")
|
|
|
@RequestMapping(value = "queryWithdrawAmount", method = RequestMethod.GET)
|
|
|
public Object queryWithdrawAmount(@RequestParam(value = "projectId", required = false) String projectOid,
|
|
|
@@ -28,6 +31,7 @@ public class WithdrawController {
|
|
|
return withdrawService.queryWithdrawAmount(projectOid, oid);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "查询渠道可提案余额", description = "顶部数据及资金概况-折线图")
|
|
|
@RequestMapping(value = "queryWithdrawAmountByPayment", method = RequestMethod.GET)
|
|
|
public Object queryWithdrawAmountByPayment(@RequestParam(value = "projectId", required = false) String projectOid,
|
|
|
@@ -36,18 +40,21 @@ public class WithdrawController {
|
|
|
return withdrawService.queryWithdrawAmount(projectOid, oid, paymentType);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "发起提现", description = "发起提现")
|
|
|
@RequestMapping(value = "withdrawApply", method = RequestMethod.POST)
|
|
|
public Object withdrawApply(@RequestBody WithdrawParam param){
|
|
|
return withdrawService.withdrawApply(param);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "审核提现", description = "审核提现")
|
|
|
@RequestMapping(value = "withdraw", method = RequestMethod.POST)
|
|
|
public Object withdraw(@RequestBody ProcessWithdrawParam param){
|
|
|
return withdrawService.withdraw(param);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "分页查询-提现记录", description = "查询收入账单-年月日汇总")
|
|
|
@RequestMapping(value = "page", method = RequestMethod.POST)
|
|
|
public Object page(@Parameter(hidden = true) @PageableDefault(page = 0, size = 10)Pageable pageable,
|
|
|
@@ -55,9 +62,17 @@ public class WithdrawController {
|
|
|
return withdrawService.page(pageable, param);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "查询提现状态", description = "查询提现状态")
|
|
|
@RequestMapping(value = "withdrawQuery", method = RequestMethod.GET)
|
|
|
public Object withdrawQuery(@RequestParam("id") String id){
|
|
|
return withdrawService.withdrawQuery(id);
|
|
|
}
|
|
|
+
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "查询提现订单详情", description = "查询提现状态")
|
|
|
+ @RequestMapping(value = "queryDetailById", method = RequestMethod.GET)
|
|
|
+ public Object queryDetailById(@RequestParam("id") String id){
|
|
|
+ return withdrawService.queryDetailById(id);
|
|
|
+ }
|
|
|
}
|