| | |
| | | return userService.addByRSA(user); |
| | | } |
| | | |
| | | @PostMapping("register") |
| | | @ApiOperation(value = "注册用户") |
| | | public Response register(@RequestBody UserInf user){ |
| | | return userService.registerUser(user); |
| | | } |
| | | @GetMapping |
| | | @ApiOperation(value = "查询byId") |
| | | public Response<UserInf> getById(@RequestParam int id){ |
| | |
| | | * @param stationId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "根据站点查询相关人员") |
| | | @ApiOperation(tags = "告警派单", value = "根据站点查询相关人员", notes = "User_infAction!getUserInfoByStationId") |
| | | @GetMapping("getUserInfoByStationId") |
| | | public Response getUserInfoByStationId(@RequestParam String stationId){ |
| | | List<UserInf> list = userService.getUserInfoByStationId(stationId); |
| | | return new Response().set(1,list); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "伪单点登录",notes = "返回的data为布尔值,是否登录成功;data2:用户所在的权限组id;data3为用户对象,内含属性uid,uname,urole") |
| | | @GetMapping("loginByUId") |
| | | public Response searchSnIdByUId(@RequestParam int uId){ |
| | | return userService.loginByUId(uId); |
| | | } |
| | | |
| | | } |