|
@@ -16,6 +16,7 @@ import com.sooka.system.api.domain.SysRole;
|
|
|
import com.sooka.system.api.domain.SysUser;
|
|
|
import com.sooka.system.api.model.LoginUser;
|
|
|
import com.sooka.system.service.*;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -28,6 +29,8 @@ import java.util.List;
|
|
|
import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static org.springframework.web.bind.annotation.RequestMethod.GET;
|
|
|
+
|
|
|
/**
|
|
|
* 用户信息
|
|
|
*
|
|
@@ -280,4 +283,10 @@ public class SysUserController extends BaseController {
|
|
|
public AjaxResult deptTree(SysDept dept) {
|
|
|
return success(deptService.selectDeptTreeList(dept));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据用户编号获取详细信息远程接口", notes = "根据用户编号获取详细信息远程接口")
|
|
|
+ @RequestMapping(value = "/selectById/{userId}",method = GET)
|
|
|
+ public R<SysUser> selectById(@PathVariable("userId") Long userId) {
|
|
|
+ return R.ok(userService.selectUserById(userId));
|
|
|
+ }
|
|
|
}
|