|
@@ -15,6 +15,16 @@ public class UserController {
|
|
@Autowired
|
|
@Autowired
|
|
UserService userService;
|
|
UserService userService;
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "验证用户是否存在", notes = "验证用户是否存在")
|
|
|
|
+ @RequestMapping(value = "/exist/{phone}", method = RequestMethod.GET)
|
|
|
|
+ public Response exist(@PathVariable String phone) {
|
|
|
|
+ MgrUser byPhone = userService.getByPhone(phone);
|
|
|
|
+ if (byPhone != null) {
|
|
|
|
+ return Response.ok(byPhone);
|
|
|
|
+ }
|
|
|
|
+ return Response.fail(20001, "用户不存在!");
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "用户列表", notes = "用户列表")
|
|
@ApiOperation(value = "用户列表", notes = "用户列表")
|
|
@RequestMapping(value = "/list/{organizationId}/{roleId}", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/list/{organizationId}/{roleId}", method = RequestMethod.POST)
|
|
public Response listUser(@PathVariable long organizationId, @PathVariable long roleId) {
|
|
public Response listUser(@PathVariable long organizationId, @PathVariable long roleId) {
|