package com.yonge.cooleshow.api.feign;

import com.yonge.cooleshow.api.feign.fallback.MallPortalFeignServiceFallback;
import com.yonge.cooleshow.common.constant.AppConstant;
import com.yonge.cooleshow.common.entity.HttpResponseResult;
import com.yonge.toolset.feign.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = AppConstant.APPLICATION_MALL_PORTAL + AppConstant.SERVER, configuration = FeignConfiguration.class,
        fallback = MallPortalFeignServiceFallback.class)
public interface MallPortalFeignService {

    /**
     * 订单轮询
     */
    @GetMapping("/task/cancelTimeOutOrder")
    Object cancelTimeOutOrder();

    /**
     * 自动收货
     */
    @GetMapping("/task/autoReceive")
    HttpResponseResult autoReceive();


    /**
     * 收货多少天后分润
     */
    @GetMapping("/task/shareProfit")
    HttpResponseResult shareProfit();
}
