|
@@ -29,6 +29,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.http.MediaType;
|
|
|
+import org.springframework.util.Assert;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
@@ -131,8 +132,8 @@ public class PaymentController {
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
@RequestMapping(value = "account/getDetail", method = RequestMethod.GET)
|
|
|
- @Code
|
|
|
public ResultContent getDetail(com.zhongshu.payment.client.model.Code code) {
|
|
|
+ Assert.hasText(code.getCode(),"code 不能为空");
|
|
|
return paymentServer.getDetail(code);
|
|
|
}
|
|
|
|
|
@@ -146,11 +147,11 @@ public class PaymentController {
|
|
|
|
|
|
|
|
|
@ApiOperation("店铺_提现按钮")
|
|
|
- @Code
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
@RequestMapping(value = "account/withdrawals", method = RequestMethod.POST)
|
|
|
public ResultContent withdrawals(@RequestBody AccountModel applyWithdrawalsModel) {
|
|
|
+ Assert.hasText(applyWithdrawalsModel.getCode(),"code 不能为空");
|
|
|
return paymentServer.applicationShopWithdrawals(applyWithdrawalsModel);
|
|
|
}
|
|
|
|
|
@@ -162,13 +163,13 @@ public class PaymentController {
|
|
|
return paymentServer.withdrawalsPlatformApplication(code);
|
|
|
}
|
|
|
|
|
|
- @Code
|
|
|
@ApiOperation("店铺_提现订单列表")
|
|
|
@ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
@RequestMapping(value = "account/withdrawals/list", method = RequestMethod.POST)
|
|
|
public ResultContent withdrawalsOrderList(@RequestBody @Valid WithdrawRequestModel withdrawRequestModel) {
|
|
|
+ Assert.hasText(withdrawRequestModel.getCode(),"code 不能为空");
|
|
|
return paymentServer.withdrawalsOrderList(withdrawRequestModel);
|
|
|
}
|
|
|
|
|
@@ -180,12 +181,12 @@ public class PaymentController {
|
|
|
return paymentServer.withdrawalsPlatformList(withdrawRequestModel);
|
|
|
}
|
|
|
|
|
|
- @Code
|
|
|
@ApiOperation("店铺已提现订单列表")
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
@RequestMapping(value = "account/shop/withdrawedList", method = RequestMethod.POST)
|
|
|
public ResultContent<Page<WithdrawListModel>> withdrawedList(@RequestBody @Valid WithdrawedRequestModel withdrawRequestModel) {
|
|
|
+ Assert.hasText(withdrawRequestModel.getCode(),"code 不能为空");
|
|
|
return paymentServer.withdrawedList(withdrawRequestModel);
|
|
|
}
|
|
|
|