TypeEffectivenessController

@RestController
@RequestMapping(value = ["/type-effectiveness"])
class TypeEffectivenessController(typeEffectivenessService: TypeEffectivenessService)

属性相克业务控制器

Constructors

Link copied to clipboard
constructor(typeEffectivenessService: TypeEffectivenessService)

Functions

Link copied to clipboard
@GetMapping
fun calculate(@RequestParam attacking: String, @RequestParam defending: List<String>): TypeEffectivenessResult

计算攻击属性对一个或两个防守属性的最终倍率

Link copied to clipboard
@GetMapping(value = ["/chart"])
fun getChart(): TypeEffectivenessChart

获取前端可直接渲染的完整相克矩阵

Link copied to clipboard
@PutMapping(value = ["/matrix"])
fun upsertMatrix(@RequestBody command: UpsertTypeEffectivenessMatrixCommand): TypeEffectivenessChart

批量更新相克矩阵中的若干单元格