GenderController

@RestController
@RequestMapping(value = ["/gender"])
class GenderController(genderService: GenderService)

性别控制器

Constructors

Link copied to clipboard
constructor(genderService: GenderService)

Functions

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

按 ID 删除性别

Link copied to clipboard
@GetMapping(value = ["/list"])
fun listGenders(@ModelAttribute specification: GenderSpecification): List<GenderView>

查询性别列表

Link copied to clipboard
@PostMapping
fun save(@Valid @RequestBody command: SaveGenderInput): GenderView

保存性别

Link copied to clipboard
@PutMapping
fun update(@Valid @RequestBody command: UpdateGenderInput): GenderView

更新性别