ItemCategoryController

@RestController
@RequestMapping(value = ["/item-category"])
class ItemCategoryController(itemCategoryService: ItemCategoryService)

道具类别控制器

Constructors

Link copied to clipboard
constructor(itemCategoryService: ItemCategoryService)

Functions

Link copied to clipboard
@DeleteMapping(value = ["/{id:\d+}"])
fun deleteById(@PathVariable id: Long)
Link copied to clipboard
@GetMapping(value = ["/list"])
fun listItemCategories(@ModelAttribute specification: ItemCategorySpecification): List<ItemCategoryView>
Link copied to clipboard
@PostMapping
fun save(@Valid @RequestBody command: SaveItemCategoryInput): ItemCategoryView
Link copied to clipboard
@PutMapping
fun update(@Valid @RequestBody command: UpdateItemCategoryInput): ItemCategoryView