TypeDamageRelationController

@RestController
@RequestMapping(value = ["/type-damage-relation"])
class TypeDamageRelationController(typeDamageRelationService: TypeDamageRelationService)

属性克制关系控制器

Constructors

Link copied to clipboard
constructor(typeDamageRelationService: TypeDamageRelationService)

Functions

Link copied to clipboard
@DeleteMapping(value = ["/{attackingTypeId:\d+}/{defendingTypeId:\d+}"])
fun deleteById(@PathVariable attackingTypeId: Long, @PathVariable defendingTypeId: Long)

按 ID 删除属性克制关系

Link copied to clipboard
@GetMapping(value = ["/page"])
fun getTypeDamageRelationPage(pageable: Pageable, @RequestParam(required = false) attackingTypeId: Long?, @RequestParam(required = false) defendingTypeId: Long?, @RequestParam(required = false) multiplier: Float?): Page<TypeDamageRelation>

获取属性克制关系分页结果

Link copied to clipboard
@GetMapping(value = ["/list"])
fun listTypeDamageRelations(@RequestParam(required = false) attackingTypeId: Long?, @RequestParam(required = false) defendingTypeId: Long?, @RequestParam(required = false) multiplier: Float?): List<TypeDamageRelation>

查询属性伤害关系列表

Link copied to clipboard
@PostMapping
fun save(@RequestBody relation: TypeDamageRelation): TypeDamageRelation

保存属性克制关系

Link copied to clipboard
@PutMapping
fun update(@RequestBody relation: TypeDamageRelation): TypeDamageRelation

更新属性克制关系