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 = ["/page"])
fun getTypePage(pageable: Pageable, @RequestParam(required = false) id: Long?, @RequestParam(required = false) internalName: String?, @RequestParam(required = false) name: String?): Page<Type>

获取属性分页结果

Link copied to clipboard
@GetMapping(value = ["/list"])
fun listTypes(@RequestParam(required = false) id: Long?, @RequestParam(required = false) internalName: String?, @RequestParam(required = false) name: String?): List<Type>

查询属性列表

Link copied to clipboard
@PostMapping
fun save(@RequestBody type: Type): Type

保存属性

Link copied to clipboard
@PutMapping
fun update(@RequestBody type: Type): Type

更新属性