Commit 02b8607b authored by 刘基明's avatar 刘基明

线下活动

parent a02546a3
...@@ -16,19 +16,20 @@ public class FeignBackClientForActivity implements FallbackFactory<FeignClientFo ...@@ -16,19 +16,20 @@ public class FeignBackClientForActivity implements FallbackFactory<FeignClientFo
public FeignClientForActivity create(Throwable throwable) { public FeignClientForActivity create(Throwable throwable) {
return new FeignClientForActivity() { return new FeignClientForActivity() {
@Override @Override
public CommonResp<OfflineActivitySimpleResp> offlineActivityDetail(String activityId) { public CommonResp<List<OfflineActivitySimpleResp>> simpleListByIds(List<String> activityIds) {
log.error("请求信息", throwable); log.error("请求信息", throwable);
log.error("FeignClientForActivity.offlineActivityDetail-查询活动ids:{}", activityId); log.error("FeignClientForActivity.offlineActivityDetail-查询活动ids:{}", activityIds);
return CommonResp.error(); return CommonResp.error();
} }
@Override @Override
public CommonResp<List<OfflineActivitySimpleResp>> getSimpleList(List<String> activityIds) { public CommonResp<List<OfflineActivitySimpleResp>> simpleListByOrgid(String orgId) {
log.error("请求信息", throwable); log.error("请求信息", throwable);
log.error("FeignClientForActivity.offlineActivityDetail-查询活动ids:{}", activityIds); log.error("FeignClientForActivity.offlineActivityDetail-查询活动orgId:{}", orgId);
return CommonResp.error(); return CommonResp.error();
} }
}; };
} }
} }
...@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
@FeignClient(value = "service-jifen", contextId = "jifne", fallbackFactory = FeignBackClientForActivity.class, url = "http://tp-tamp-jifen-svc", path = "/jifen") @FeignClient(value = "service-jifen", contextId = "jifen", fallbackFactory = FeignBackClientForActivity.class, url = "http://tp-tamp-jifen-svc", path = "/jifen")
// @FeignClient(value = "service-jifen", contextId = "jifen", fallbackFactory = FeignBackClientForActivity.class, url = "http://127.0.0.1:8202/community") // @FeignClient(value = "service-jifen", contextId = "jifen", fallbackFactory = FeignBackClientForActivity.class, url = "http://127.0.0.1:8202/community")
public interface FeignClientForActivity { public interface FeignClientForActivity {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment