TypeController

@RestController
@RequestMapping(value = ["/type"])
class TypeController(typeService: TypeService)

属性控制器

Constructors

Link copied to clipboard
constructor(typeService: TypeService)

Functions

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

按 ID 删除属性

Link copied to clipboard
@GetMapping(value = ["/list"])
fun listTypes(@ModelAttribute specification: TypeSpecification): List<TypeView>

查询属性列表

Link copied to clipboard
@PostMapping
fun save(@Valid @RequestBody command: SaveTypeInput): TypeView

保存属性

Link copied to clipboard
@PutMapping
fun update(@Valid @RequestBody command: UpdateTypeInput): TypeView

更新属性