|  | @@ -11,7 +11,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
 | 
	
		
			
				|  |  |  import io.swagger.v3.oas.annotations.Parameter;
 | 
	
		
			
				|  |  |  import io.swagger.v3.oas.annotations.Operation;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import javax.validation.constraints.*;
 | 
	
		
			
				|  |  |  import javax.validation.*;
 | 
	
		
			
				|  |  |  import javax.servlet.http.*;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
	
		
			
				|  | @@ -88,6 +87,14 @@ public class SharePathController {
 | 
	
		
			
				|  |  |          return success(BeanUtils.toBean(sharePath, SharePathRespVO.class));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @GetMapping("/getDescendants")
 | 
	
		
			
				|  |  | +    @Operation(summary = "通过推荐人获得直推人")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@ss.hasPermission('distri:duser:query')")
 | 
	
		
			
				|  |  | +    public CommonResult<PageResult<SharePathRespVO>> getDescendants(@Valid SharePathPageReqVO pageReqVO) {
 | 
	
		
			
				|  |  | +        PageResult<SharePathRespVO> descendants = sharePathService.getDescendants(pageReqVO);
 | 
	
		
			
				|  |  | +        return success(descendants);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @GetMapping("/page")
 | 
	
		
			
				|  |  |      @Operation(summary = "获得分销用户关系分页")
 | 
	
		
			
				|  |  |      @PreAuthorize("@ss.hasPermission('distri:share-path:query')")
 | 
	
	
		
			
				|  | @@ -122,13 +129,11 @@ public class SharePathController {
 | 
	
		
			
				|  |  |      @Operation(summary = "获取分销人员关系树")
 | 
	
		
			
				|  |  |      @PreAuthorize("@ss.hasPermission('distri:share-path:query')")
 | 
	
		
			
				|  |  |      public CommonResult<TreeNode> getTree(@RequestParam("userId") Long userId,
 | 
	
		
			
				|  |  | -                                          @RequestParam("minDepth") Integer minDepth,
 | 
	
		
			
				|  |  | +                                          @RequestParam(value = "minDepth",defaultValue = "1") Integer minDepth,
 | 
	
		
			
				|  |  |                                            @RequestParam("maxDepth") Integer maxDepth) {
 | 
	
		
			
				|  |  |          TreeNode sharePath = sharePathService.getTree(userId,minDepth,maxDepth);
 | 
	
		
			
				|  |  |          return success(sharePath);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  }
 |