PlayerController

@RestController
@RequestMapping(value = ["/game/players"])
class PlayerController(playerQueryService: PlayerQueryService, playerManagementService: PlayerManagementService)

玩家控制器。

Constructors

Link copied to clipboard
constructor(playerQueryService: PlayerQueryService, playerManagementService: PlayerManagementService)

Functions

Link copied to clipboard
@PostMapping
fun createPlayer(@RequestBody command: CreatePlayerCommand): PlayerView

创建玩家。

Link copied to clipboard
@GetMapping
fun listPlayers(@RequestParam userId: String): List<PlayerView>

查询账号下的玩家列表。