package com.ytpm.feign;

import com.ytpm.app.model.YtDyzUser;
import com.ytpm.feign.fallback.RiskFeignFallBack;
import com.ytpm.general.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "risk-manage", fallback = RiskFeignFallBack.class)
public interface RiskFeign {
    @PostMapping("/public/checkRisk")
    Result<?> checkRisk(@RequestBody YtDyzUser ytDyzUser);
    @PostMapping("/public/checkAdRisk")
    Result<?> checkAdRisk(@RequestBody YtDyzUser ytDyzUser);
}
