| | |
| | | import com.xzx.gc.user.vo.HeadTeamVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | } |
| | | |
| | | @ApiOperation("获取团长信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = HeadInfoVo.class) |
| | | }) |
| | | @PostMapping(value = "/distrib/headInfo") |
| | | public JsonResult<HeadInfoVo> headInfo(HttpServletRequest request) { |
| | | return JsonResult.success(distribService.findHeadInfo(getUserId(request))); |
| | | } |
| | | |
| | | @ApiOperation("我的收益") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = HeadProfitListVo.class) |
| | | }) |
| | | @PostMapping(value = "/distrib/headProfit") |
| | | public JsonResult<List<HeadProfitListVo>> headProfitList(@RequestBody HeadProfitLitDto headProfitLitDto, HttpServletRequest request) { |
| | | headProfitLitDto.setUserId(getUserId(request)); |
| | |
| | | } |
| | | |
| | | @ApiOperation("我的团队") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = HeadProfitListVo.class) |
| | | }) |
| | | @PostMapping(value = "/distrib/headTeam") |
| | | public JsonResult<List<HeadTeamVo>> headTimeList(@RequestBody HeadTeamDto headTeamDto, HttpServletRequest request) { |
| | | headTeamDto.setUserId(getUserId(request)); |