| | |
| | | @GetMapping("/{id}") |
| | | fun getById(@PathVariable id: String) = userinfoService.findOne(id) |
| | | |
| | | @ApiOperation(value = "按用户类型搜索用户信息") |
| | | @GetMapping("/type/get") |
| | | fun getUserByTypeId(@RequestParam typeId: Byte) = userinfoService.findByType(typeId) |
| | | fun getUserByTypeId( |
| | | @ApiParam("用户类型id") @RequestParam typeId: Byte, |
| | | @ApiParam("用户是否可用", required = false, defaultValue = "true") @RequestParam(required = false) enable: Boolean? |
| | | ) = userinfoService.findByType(typeId, enable) |
| | | |
| | | @PutMapping("") |
| | | fun add(@RequestBody userinfo: Userinfo) = userinfoService.save(userinfo) |