ItemController

@RestController
@RequestMapping(value = ["/item"])
class ItemController(itemService: ItemService)

道具管理控制器

Constructors

Link copied to clipboard
constructor(itemService: ItemService)

Functions

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

删除指定 ID 的道具

Link copied to clipboard
@GetMapping(value = ["/page"])
fun getItemPage(pageable: Pageable, @ModelAttribute specification: ItemSpecification): Page<ItemView>

按筛选条件分页查询道具

Link copied to clipboard
@PostMapping
fun save(@Valid @RequestBody command: SaveItemInput): ItemView

创建道具

Link copied to clipboard
@PutMapping
fun update(@Valid @RequestBody command: UpdateItemInput): ItemView

更新道具