You've already forked FrameTour-BE
feat(goods): 添加视频更新检查功能
Some checks failed
ZhenTu-BE/pipeline/head There was a failure building this commit
Some checks failed
ZhenTu-BE/pipeline/head There was a failure building this commit
- 在 AppGoodsController 中添加视频更新检查接口 - 在 GoodsService 接口中添加 checkVideoUpdate 方法 - 在 GoodsServiceImpl 中实现视频更新检查逻辑 - 在 VideoGoodsDetailVO 中添加 templateId 字段
This commit is contained in:
@@ -99,4 +99,16 @@ public class AppGoodsController {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return ApiResponse.success(goodsService.getTaskStatusByTemplateId(faceId, templateId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查视频是否可更新
|
||||
*
|
||||
* @param videoId 视频ID
|
||||
* @return 视频更新检查结果
|
||||
*/
|
||||
@GetMapping("/video/{videoId}/updateCheck")
|
||||
public ApiResponse<VideoUpdateCheckVO> checkVideoUpdate(@PathVariable("videoId") Long videoId) {
|
||||
VideoUpdateCheckVO result = goodsService.checkVideoUpdate(videoId);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user