BerryController

@RestController
@RequestMapping(value = ["/berry"])
class BerryController(berryService: BerryService)

树果管理控制器 提供树果的分页查询、新增、更新和删除接口

Constructors

Link copied to clipboard
constructor(berryService: BerryService)

Functions

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

删除指定 ID 的树果

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

按筛选条件分页查询树果

Link copied to clipboard
@PostMapping
fun save(@Valid @RequestBody command: SaveBerryInput): BerryView

创建树果

Link copied to clipboard
@PutMapping
fun update(@Valid @RequestBody command: UpdateBerryInput): BerryView

更新树果