You've already forked FrameTour-BE
修改
This commit is contained in:
@ -3,7 +3,6 @@ package com.ycwl.basic.controller.mobile;
|
||||
import com.ycwl.basic.constant.BaseContextHandler;
|
||||
import com.ycwl.basic.model.jwt.JwtInfo;
|
||||
import com.ycwl.basic.model.mobile.goods.*;
|
||||
import com.ycwl.basic.model.pc.source.resp.SourceRespVO;
|
||||
import com.ycwl.basic.service.mobile.GoodsService;
|
||||
import com.ycwl.basic.service.task.TaskService;
|
||||
import com.ycwl.basic.utils.ApiResponse;
|
||||
@ -58,28 +57,34 @@ public class AppGoodsController {
|
||||
|
||||
/**
|
||||
* 查询用户当前景区的视频合成任务状态
|
||||
* @param faceId 景区id
|
||||
*
|
||||
* @return 0没有任务 1 合成中 2 合成成功
|
||||
*/
|
||||
@ApiOperation("查询用户当前景区的整体视频合成任务状态 0没有任务 1 合成中 2 合成成功 ")
|
||||
@GetMapping("/getTaskStatus/{faceId}")
|
||||
public ApiResponse<Integer> getAllTaskStatus(@PathVariable("faceId") Long faceId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.getAllTaskStatus(worker.getUserId(),faceId);
|
||||
}
|
||||
@GetMapping("/getTaskStatus/")
|
||||
public ApiResponse<Integer> getAllTaskStatus() {
|
||||
public ApiResponse<VideoTaskStatusVO> getAllTaskStatus() {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.getAllTaskStatus(worker.getUserId());
|
||||
}
|
||||
|
||||
@GetMapping("/task/face/{faceId}")
|
||||
public ApiResponse<VideoTaskStatusVO> getTaskStatusByFaceId(@PathVariable("faceId") Long faceId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.getTaskStatusByFaceId(worker.getUserId(), faceId);
|
||||
}
|
||||
@GetMapping("/task/scenic/{scenicId}")
|
||||
public ApiResponse<VideoTaskStatusVO> getAllTaskStatusByScenicId(@PathVariable("scenicId") Long scenicId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.getTaskStatusByScenicId(worker.getUserId(), scenicId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户当前景区的具体模版视频合成任务状态
|
||||
* @param templateId 模版id
|
||||
* @return 1 合成中 2 合成成功
|
||||
*/
|
||||
@ApiOperation("查询用户当前景区的具体模版视频合成任务状态 1 合成中 2 合成成功 ")
|
||||
@GetMapping("/getTemplateTaskStatus/{templateId}")
|
||||
@GetMapping("/task/template/{templateId}")
|
||||
public ApiResponse<Integer> getTemplateTaskStatus(@PathVariable("templateId") Long templateId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.getTemplateTaskStatus(worker.getUserId(),templateId);
|
||||
|
Reference in New Issue
Block a user