class UserController {

    @RequestMapping(value = "/getWorkInfo")
    public ServiceResult<LoginUser> getWorkInfo(@RequestParam(value = "name", defaultValue = "") String name, @CurrentUser LoginUser user) {
        return userService.getUserInfoByWorkName(user, name);
    }

}