|
@@ -0,0 +1,28 @@
|
|
|
|
|
+package com.fs.app.controller.game;
|
|
|
|
|
+
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
|
|
+import com.fs.app.annotation.Login;
|
|
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
|
|
+import com.fs.his.domain.FsUser;
|
|
|
|
|
+import com.fs.his.service.IFsUserService;
|
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/player")
|
|
|
|
|
+public class PlayerController {
|
|
|
|
|
+
|
|
|
|
|
+ private IFsUserService fsUserService;
|
|
|
|
|
+
|
|
|
|
|
+ @Login
|
|
|
|
|
+ @PostMapping("/updateCurrency")
|
|
|
|
|
+ @ApiOperation("玩家货币更新")
|
|
|
|
|
+ public R updateCurrency(@RequestBody FsUser player){
|
|
|
|
|
+ Boolean flag=fsUserService.updateFsUser(player)>0;
|
|
|
|
|
+ return R.ok().put("flag",flag);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|