PlayerInventoryController

@RestController
@RequestMapping(value = ["/game/inventory"])
class PlayerInventoryController(playerInventoryManagementService: PlayerInventoryManagementService)

玩家背包控制器。

Constructors

Link copied to clipboard
constructor(playerInventoryManagementService: PlayerInventoryManagementService)

Functions

Link copied to clipboard
@PostMapping(value = ["/items/grant"])
fun grantItem(@RequestBody command: GrantInventoryItemCommand): PlayerInventoryItemView

发放道具。

Link copied to clipboard
@GetMapping(value = ["/items"])
fun listItems(@RequestParam playerId: String): List<PlayerInventoryItemView>

查询玩家背包。