|
|
@@ -132,5 +132,15 @@ public class MetaGameCopyController extends BaseController {
|
|
|
}
|
|
|
return MetaRestResult.returnSuccess(metaGameProcess.isDisconnected());
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/{userId}/findTopPoint")
|
|
|
+ public MetaRestResult<Integer> findTopPoint(@PathVariable Long userId) {
|
|
|
+ MetaGameProcess metaGameProcess = metaGameProcessRepo.findTopPoint(userId);
|
|
|
+ if (Objects.isNull(metaGameProcess)) {
|
|
|
+ return MetaRestResult.returnSuccess(0);
|
|
|
+ }
|
|
|
+ return MetaRestResult.returnSuccess(metaGameProcess.getPoint());
|
|
|
+ }
|
|
|
}
|
|
|
|