package shop.alien.job.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import shop.alien.entity.second.SecondGoods;

@FeignClient(name = "alien-second", url = "${feign.alienSecond.url}")
public interface SecondGoodsFeign {
    
    /**
     * 处理视频审核结果
     * 
     * @param taskId 任务ID
     * @return 处理结果
     */
    @GetMapping("/secondGoods/processVideoResult")
    boolean processVideoResult(@RequestParam("taskId") String taskId);

    /**
     * 处理单个视频审核任务
     *
     * @param taskId 任务ID
     * @return 处理结果
     */
    @GetMapping("/video/moderation/processTask")
    boolean processTask(@RequestParam("taskId") String taskId);

    @GetMapping("/secondGoods/approveAndListGoods")
    boolean approveAndListGoods(SecondGoods goods);

    /**
     * 获取AI商品审核结果
     * @return 处理结果
     */
    @GetMapping("/secondGoods/getAiGoodsCheckResult")
    shop.alien.entity.result.R<String> getAiGoodsCheckResult();

    /**
     * 处理所有待处理的视频审核任务
     * @return 处理结果
     */
    @GetMapping("/secondGoods/processVideoModerationResult")
    shop.alien.entity.result.R<String> processVideoModerationResult();
}