|
|
@@ -12,6 +12,8 @@ import com.yingyangfly.core.security.util.TokenUtil;
|
|
|
import com.yingyangfly.core.service.GameTaskService;
|
|
|
import com.yingyangfly.core.util.EntityConverter;
|
|
|
import com.yingyangfly.core.vo.GameTaskVo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -27,6 +29,7 @@ import java.util.*;
|
|
|
@RestController
|
|
|
@RequestMapping("/app/task")
|
|
|
@CrossOrigin
|
|
|
+@Api(tags = "专属训练")
|
|
|
public class GameTaskController {
|
|
|
|
|
|
@Autowired
|
|
|
@@ -45,6 +48,7 @@ public class GameTaskController {
|
|
|
|
|
|
@PostMapping(value = "/findMyCurrentTask")
|
|
|
@TraceLog
|
|
|
+ @ApiOperation("查询是否有进行中的任务")
|
|
|
public ResultResponse findMyCurrentTask() {
|
|
|
AppCurrentLoginUser appCurrentLoginUser = tokenUtil.getAppCurrentLoginUser();
|
|
|
GameTask gameTask = gameTaskService.findMyCurrentTask(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,new Date()), appCurrentLoginUser.getId(),"1");
|
|
|
@@ -61,7 +65,7 @@ public class GameTaskController {
|
|
|
* 根据疗程id查询我所有的任务
|
|
|
* @return
|
|
|
*/
|
|
|
-
|
|
|
+ @ApiOperation("获取疗程列表")
|
|
|
@PostMapping(value = "/findMyTask")
|
|
|
@TraceLog
|
|
|
public ResultResponse findMyTask(Long treatmentId ) {
|
|
|
@@ -76,6 +80,7 @@ public class GameTaskController {
|
|
|
* 查询我所有的任务
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("查询理疗报告列表")
|
|
|
@PostMapping(value = "/findMyAllTask")
|
|
|
@TraceLog
|
|
|
public ResultResponse findMyAllTask(@RequestBody BaseEntity baseEntity) {
|
|
|
@@ -90,6 +95,7 @@ public class GameTaskController {
|
|
|
* 脑力值变化趋势图
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("脑力值变化趋势图")
|
|
|
@PostMapping(value = "/variationTendency")
|
|
|
@TraceLog
|
|
|
public ResultResponse variationTendency(@RequestBody Map<String,String> map) {
|
|
|
@@ -101,6 +107,7 @@ public class GameTaskController {
|
|
|
* 根据gameType值统计脑力值变化趋势图
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("脑能力值")
|
|
|
@PostMapping(value = "/variationTendencyByType")
|
|
|
@TraceLog
|
|
|
public ResultResponse variationTendencyByType() {
|
|
|
@@ -115,6 +122,7 @@ public class GameTaskController {
|
|
|
* 每日训练时长趋势图
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("每日训练时长趋势图")
|
|
|
@PostMapping(value = "/durationVariationTendency")
|
|
|
@TraceLog
|
|
|
public ResultResponse durationVariationTendency(@RequestBody Map<String,String> map) {
|
|
|
@@ -169,6 +177,7 @@ public class GameTaskController {
|
|
|
/**
|
|
|
* 查询任务详情
|
|
|
*/
|
|
|
+ @ApiOperation("获取训练内容详情")
|
|
|
@PostMapping(value = "/selectTaskDetailById")
|
|
|
@TraceLog
|
|
|
public ResultResponse selectTaskDetailById(Long taskId) {
|