|  | @@ -3,6 +3,7 @@ package com.zhongshu.reward.server.core.controller.wallet;
 | 
											
												
													
														|  |  import com.github.microservice.auth.security.annotations.ResourceAuth;
 |  |  import com.github.microservice.auth.security.annotations.ResourceAuth;
 | 
											
												
													
														|  |  import com.github.microservice.auth.security.type.AuthType;
 |  |  import com.github.microservice.auth.security.type.AuthType;
 | 
											
												
													
														|  |  import com.zhongshu.reward.server.core.domain.WalletReceipts;
 |  |  import com.zhongshu.reward.server.core.domain.WalletReceipts;
 | 
											
												
													
														|  | 
 |  | +import com.zhongshu.reward.server.core.service.StatisticsService;
 | 
											
												
													
														|  |  import com.zhongshu.reward.server.core.service.WalletReceiptsService;
 |  |  import com.zhongshu.reward.server.core.service.WalletReceiptsService;
 | 
											
												
													
														|  |  import io.swagger.annotations.Api;
 |  |  import io.swagger.annotations.Api;
 | 
											
												
													
														|  |  import io.swagger.v3.oas.annotations.Operation;
 |  |  import io.swagger.v3.oas.annotations.Operation;
 | 
											
										
											
												
													
														|  | @@ -10,6 +11,7 @@ import lombok.extern.slf4j.Slf4j;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.GetMapping;
 |  |  import org.springframework.web.bind.annotation.GetMapping;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.RequestMapping;
 |  |  import org.springframework.web.bind.annotation.RequestMapping;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RequestParam;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.RestController;
 |  |  import org.springframework.web.bind.annotation.RestController;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  /**
 |  |  /**
 | 
											
										
											
												
													
														|  | @@ -26,10 +28,20 @@ public class InviteController {
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      WalletReceiptsService walletReceiptsService;
 |  |      WalletReceiptsService walletReceiptsService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    StatisticsService statisticsService;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @Operation(summary = "邀请奖励明细", description = "邀请奖励明细")
 |  |      @Operation(summary = "邀请奖励明细", description = "邀请奖励明细")
 | 
											
												
													
														|  |      @ResourceAuth(value = "user", type = AuthType.User)
 |  |      @ResourceAuth(value = "user", type = AuthType.User)
 | 
											
												
													
														|  | -    @GetMapping(value = "inviteDetail")
 |  | 
 | 
											
												
													
														|  | -    public Object receiptsDetail(Integer year, Integer month){
 |  | 
 | 
											
												
													
														|  | -        return walletReceiptsService.receiptsDetail(year, month);
 |  | 
 | 
											
												
													
														|  | 
 |  | +    @GetMapping(value = "rewardDetailList")
 | 
											
												
													
														|  | 
 |  | +    public Object rewardDetailList(@RequestParam("year") Integer year, @RequestParam("month") Integer month){
 | 
											
												
													
														|  | 
 |  | +        return walletReceiptsService.rewardDetail(year, month);
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @Operation(summary = "我的邀请", description = "我的邀请")
 | 
											
												
													
														|  | 
 |  | +    @ResourceAuth(value = "user", type = AuthType.User)
 | 
											
												
													
														|  | 
 |  | +    @GetMapping(value = "myInvite")
 | 
											
												
													
														|  | 
 |  | +    public Object myInvite(){
 | 
											
												
													
														|  | 
 |  | +        return statisticsService.myInvite();
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  }
 |  |  }
 |