dos il y a 1 mois
Parent
commit
2e95de81a9

+ 13 - 0
game-business/src/main/java/com/game/business/controller/AppAgentController.java

@@ -9,6 +9,7 @@ import com.game.business.vo.AppAgentTeamVo;
 import com.game.business.vo.AppUserAgentJournalIndexVO;
 import com.game.business.vo.AppUserDetailVo;
 import com.game.business.vo.AppUserTeamTranserRecordVo;
+import com.game.common.annotation.RepeatSubmit;
 import com.game.common.constant.CacheConstants;
 import com.game.common.core.controller.BaseController;
 import com.game.common.core.domain.HttpRet;
@@ -238,6 +239,7 @@ public class AppAgentController extends BaseController {
      */
     @PostMapping(value = "/transfer")
     @ApiOperation(value = "团队转账", notes = "团队转账")
+    @RepeatSubmit(message = "频繁操作")
     public HttpRet<Boolean> transfer(@RequestBody @Validated AppUserTeamTranserDto transerDto)
     {
         Long userId = SecurityUtils.getUserId();
@@ -262,6 +264,17 @@ public class AppAgentController extends BaseController {
        return finTranRecordService.transfer(transerDto);
     }
 
+    /**
+     * 金币转账
+     */
+    @PostMapping(value = "/coinTransfer")
+    @ApiOperation(value = "金币转账", notes = "金币转账")
+    @RepeatSubmit(message = "频繁操作")
+    public HttpRet<Boolean> coinTransfer(@RequestBody @Validated AppUserTeamTranserDto transerDto)
+    {
+       return finTranRecordService.coinTransfer(transerDto);
+    }
+
     /**
      * 团队转账记录
      */