| package com.matrix.system.app.action; | 
|   | 
| import com.matrix.core.pojo.AjaxResult; | 
| import com.matrix.system.app.vo.UserAchieveVo; | 
| import com.matrix.system.hive.service.AchieveNewService; | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiOperation; | 
| import io.swagger.annotations.ApiResponse; | 
| import io.swagger.annotations.ApiResponses; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.web.bind.annotation.*; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-12-21 | 
|  **/ | 
| @Api(value = "ApiUsersAction", tags = "用户中心接口类") | 
| @RestController | 
| @RequestMapping(value = "/api/user") | 
| public class ApiUsersAction { | 
|   | 
|     @Autowired | 
|     private AchieveNewService achieveNewService; | 
|   | 
|   | 
|     @ApiOperation(value = "个人中心--获取用户业绩接口 type 1-今日 2-昨天 3-本月 4-上月") | 
|     @ApiResponses({ | 
|             @ApiResponse(code = 200, message = "ok", response = UserAchieveVo.class) | 
|     }) | 
|     @GetMapping(value = "/findUserAchieve/{type}") | 
|     public AjaxResult findUserAchieve(@PathVariable("type") Integer type) { | 
|         UserAchieveVo achieveVo = achieveNewService.findUserAchieveByTime(type); | 
|         AjaxResult ajaxResult = AjaxResult.buildSuccessInstance("获取成功"); | 
|         ajaxResult.putInMap("achieve", achieveVo); | 
|         return ajaxResult; | 
|     } | 
|   | 
|     @PostMapping(value = "/findBeautician") | 
|     public AjaxResult findBeautician() { | 
|         return null; | 
|     } | 
|   | 
|   | 
| } |