|
|
@ -1,6 +1,7 @@ |
|
|
|
package app.controllers.user; |
|
|
|
|
|
|
|
import app.annotations.enums.AuthMethod; |
|
|
|
import app.annotations.enums.CollectStages; |
|
|
|
import app.annotations.interfaces.*; |
|
|
|
import app.entities.SocialAuth; |
|
|
|
import app.services.ProfileService; |
|
|
@ -40,7 +41,7 @@ public class ProfileController { |
|
|
|
@BurstUpdatePlayers |
|
|
|
@WaitAfterNext(order = "currentuser") |
|
|
|
@ShowClientIP |
|
|
|
@CollectStatistic |
|
|
|
@CollectStatistic(stage = CollectStages.COMBINED) |
|
|
|
public ResponseEntity GetCurrentUser(HttpServletRequest request, |
|
|
|
@CookieValue(value = "steam64", defaultValue = "") String steam64, |
|
|
|
@RequestParam(value = "requests", defaultValue = "") String requests |
|
|
@ -55,7 +56,7 @@ public class ProfileController { |
|
|
|
@PostMapping("/freevip") |
|
|
|
@CheckWebAccess |
|
|
|
@WaitAfterNext(order = "freevip") |
|
|
|
@CollectStatistic |
|
|
|
@CollectStatistic(stage = CollectStages.COMBINED) |
|
|
|
public ResponseEntity GetFreeVIP(HttpServletRequest request, |
|
|
|
@CookieValue(value = "steam64", defaultValue = "") String steam64, |
|
|
|
@RequestBody(required = false) SocialAuth socialAuth, |
|
|
@ -71,7 +72,7 @@ public class ProfileController { |
|
|
|
@CheckWebAccess |
|
|
|
@BurstUpdatePlayers |
|
|
|
@WaitAfterNext(order = "report") |
|
|
|
@CollectStatistic |
|
|
|
@CollectStatistic(stage = CollectStages.COMBINED) |
|
|
|
public ResponseEntity<Long> ReportUser(HttpServletRequest request, |
|
|
|
@CookieValue(value = "steam64", defaultValue = "") String steam64, |
|
|
|
@RequestParam(value = "steam64", defaultValue = "") String reported_steam64, |
|
|
@ -87,7 +88,7 @@ public class ProfileController { |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/buyvip") |
|
|
|
@CollectStatistic |
|
|
|
@CollectStatistic(stage = CollectStages.COMBINED) |
|
|
|
public ResponseEntity BuyVIP(HttpServletRequest request, |
|
|
|
@RequestParam(value = "steam64", defaultValue = "") String steam64, |
|
|
|
@RequestParam String buy_type, |
|
|
|