|
|
@@ -103,4 +103,25 @@ public class PtBagController extends BaseController {
|
|
|
@PathVariable Long[] bagIds) {
|
|
|
return toAjax(ptBagService.deleteWithValidByIds(List.of(bagIds), true));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 账户钱包充值
|
|
|
+ */
|
|
|
+ @SaCheckPermission("payment:ptBag:edit")
|
|
|
+ @Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
|
+ @RepeatSubmit()
|
|
|
+ @PutMapping("/recharge")
|
|
|
+ public R<Void> recharge(@Validated(EditGroup.class) @RequestBody PtBagBo bo) {
|
|
|
+ return toAjax(ptBagService.updateByBo(bo));
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 账户钱包退款
|
|
|
+ */
|
|
|
+ @SaCheckPermission("payment:ptBag:edit")
|
|
|
+ @Log(title = "账户钱包", businessType = BusinessType.UPDATE)
|
|
|
+ @RepeatSubmit()
|
|
|
+ @PutMapping("/refund")
|
|
|
+ public R<Void> refund(@Validated(EditGroup.class) @RequestBody PtBagBo bo) {
|
|
|
+ return toAjax(ptBagService.updateByBo(bo));
|
|
|
+ }
|
|
|
}
|