提交 096dd18d authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 071e5a2f
package com.zrqx.bg.member.client;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import com.zrqx.core.constant.resource.ResourceRequestPath;
import com.zrqx.core.form.resource.bg.goods.phyresource.IdAndTypeForm;
import com.zrqx.core.model.resource.goods.phyresource.PhyResource;
import com.zrqx.core.util.response.CallBack;
import io.swagger.annotations.ApiOperation;
@FeignClient(value="bg-resource",fallback = BgResourceHystric.class)
public interface BgResourceClient {
@ApiOperation(value = "查询资源详情")
@GetMapping(ResourceRequestPath.BG + ResourceRequestPath.PHY + ResourceRequestPath.GET)
public CallBack<PhyResource> get(IdAndTypeForm form);
}
package com.zrqx.bg.member.client;
import org.springframework.stereotype.Component;
import com.zrqx.core.form.resource.bg.goods.phyresource.IdAndTypeForm;
import com.zrqx.core.model.resource.goods.phyresource.PhyResource;
import com.zrqx.core.util.response.CallBack;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Component
public class BgResourceHystric implements BgResourceClient{
@Override
public CallBack<PhyResource> get(IdAndTypeForm from) {
log.debug("获取资源详情失败");
return null;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论