|
@@ -4,6 +4,7 @@ import cn.com.ctop.common.module.annotation.AutoLog;
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
import cn.com.ctop.common.module.utils.QueryGenerator;
|
|
import cn.com.ctop.common.module.utils.QueryGenerator;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouProjectVideoGet;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouProjectVideoGet;
|
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouVideoGetService;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouProjectVideoGetService;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouProjectVideoGetService;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -53,6 +54,8 @@ import java.util.Map;
|
|
public class KuaishouProjectVideoGetController {
|
|
public class KuaishouProjectVideoGetController {
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaishouProjectVideoGetService kuaishouProjectVideoGetService;
|
|
private IKuaishouProjectVideoGetService kuaishouProjectVideoGetService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IKuaiShouVideoGetService videoGetService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 分页列表查询
|
|
* 分页列表查询
|
|
@@ -99,12 +102,12 @@ public class KuaishouProjectVideoGetController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/getVideoDetails")
|
|
@GetMapping(value = "/getVideoDetails")
|
|
- public Result<Object> getVideoDetails(String signature) {
|
|
|
|
|
|
+ public Result<Object> getVideoDetails(String signature, String id) {
|
|
try {
|
|
try {
|
|
- if (Check.isNull(signature)) {
|
|
|
|
- return Result.error("请选择素材");
|
|
|
|
|
|
+ if (Check.isNull(signature) || Check.isNull(id)) {
|
|
|
|
+ return Result.error("缺失参数");
|
|
}
|
|
}
|
|
- return kuaishouProjectVideoGetService.getVideoDetails(signature);
|
|
|
|
|
|
+ return kuaishouProjectVideoGetService.getVideoDetails(signature, id);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|