BerryFlavorController

@RestController
@RequestMapping(value = ["/berry-flavor"])
class BerryFlavorController(berryFlavorService: BerryFlavorService)

树果风味控制器

Constructors

Link copied to clipboard
constructor(berryFlavorService: BerryFlavorService)

Functions

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

按 ID 删除树果风味

Link copied to clipboard
@GetMapping(value = ["/page"])
fun getBerryFlavorPage(pageable: Pageable, @RequestParam(required = false) id: Long?, @RequestParam(required = false) internalName: String?, @RequestParam(required = false) name: String?): Page<BerryFlavor>

获取树果风味分页结果

Link copied to clipboard
@PostMapping
fun save(@RequestBody berryFlavor: BerryFlavor): BerryFlavor

保存树果风味

Link copied to clipboard
@PutMapping
fun update(@RequestBody berryFlavor: BerryFlavor): BerryFlavor

更新树果风味