You've already forked FrameTour-BE
部分逻辑修改
This commit is contained in:
@ -4,6 +4,7 @@ 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;
|
||||
import com.ycwl.basic.utils.JwtTokenUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
@ -26,6 +27,8 @@ public class AppGoodsController {
|
||||
|
||||
@Autowired
|
||||
private GoodsService goodsService;
|
||||
@Autowired
|
||||
private TaskService taskService;
|
||||
|
||||
@ApiOperation("商品列表")
|
||||
@PostMapping("/goodsList")
|
||||
@ -53,14 +56,14 @@ public class AppGoodsController {
|
||||
|
||||
/**
|
||||
* 查询用户当前景区的视频合成任务状态
|
||||
* @param scenicId 景区id
|
||||
* @param faceId 景区id
|
||||
* @return 0没有任务 1 合成中 2 合成成功
|
||||
*/
|
||||
@ApiOperation("查询用户当前景区的整体视频合成任务状态 0没有任务 1 合成中 2 合成成功 ")
|
||||
@GetMapping("/getTaskStatus/{scenicId}")
|
||||
public ApiResponse<Integer> getAllTaskStatus(@PathVariable("scenicId") Long scenicId) {
|
||||
@GetMapping("/getTaskStatus/{faceId}")
|
||||
public ApiResponse<Integer> getAllTaskStatus(@PathVariable("faceId") Long faceId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.getAllTaskStatus(worker.getUserId(),scenicId);
|
||||
return goodsService.getAllTaskStatus(worker.getUserId(),faceId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,5 +78,10 @@ public class AppGoodsController {
|
||||
return goodsService.getTemplateTaskStatus(worker.getUserId(),templateId);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/submitVideoTask")
|
||||
public ApiResponse<String> submitVideoTask(@RequestBody VideoTaskReq videoTaskReq) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
taskService.autoCreateTaskByFaceIdAndTempalteId(videoTaskReq.getFaceId(),videoTaskReq.getTemplateId(),0);
|
||||
return ApiResponse.success("成功");
|
||||
}
|
||||
}
|
||||
|
@ -50,9 +50,9 @@ public class AppScenicController {
|
||||
}
|
||||
|
||||
@ApiOperation("景区视频源素材列表")
|
||||
@GetMapping("/contentList/{scenicId}")
|
||||
public ApiResponse<List<ContentPageVO>> contentList(@PathVariable Long scenicId) {
|
||||
return appScenicService.contentList(scenicId);
|
||||
@GetMapping("/contentList/{faceId}")
|
||||
public ApiResponse<List<ContentPageVO>> contentList(@PathVariable Long faceId) {
|
||||
return appScenicService.contentList(faceId);
|
||||
}
|
||||
|
||||
|
||||
|
@ -58,8 +58,8 @@ public class TemplateController {
|
||||
return templateService.update(template);
|
||||
}
|
||||
@ApiOperation("修改模板状态")
|
||||
@PostMapping("/updateStatus")
|
||||
public ApiResponse<Boolean> updateStatus(@RequestBody Long id) {
|
||||
@PostMapping("/updateStatus/{id}")
|
||||
public ApiResponse<Boolean> updateStatus(@PathVariable("id") Long id) {
|
||||
return templateService.updateStatus(id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user