新增接口:通过手机号码查询用户
This commit is contained in:
@@ -78,6 +78,14 @@ public class UserController extends BaseController {
|
||||
return success(userService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:auth:user')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据手机号码查询用户")
|
||||
@GetMapping("/getByPhone/{phone}")
|
||||
public ApiResult<User> getByPhone(@PathVariable("phone") String phone) {
|
||||
return success(userService.getByPhone(phone));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:user:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加用户")
|
||||
|
||||
Reference in New Issue
Block a user