提交 66316515 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 4f125288
package com.zrqx.fg.sysuser.client;
import java.util.List;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.websocket.server.PathParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.zrqx.core.constant.BaseRequestPath;
import com.zrqx.core.constant.resource.ResourceRequestPath;
import com.zrqx.core.constant.sysuser.SysUserRequestPath;
import com.zrqx.core.model.sysuser.AuditRecord;
import com.zrqx.core.util.response.CallBack;
......@@ -20,9 +23,9 @@ import com.zrqx.core.util.response.CallBack;
public interface BgSysUserClient {
/**
* 根据活动id查审核不通过的原因@PathVariable(BaseRequestPath.OBJECTID)
* 根据活动id查审核不通过的原因@PathVariable(BaseRequestPath.OBJECTID)
*/
@ApiOperation("根据活动id查审核不通过的原因")
@GetMapping(SysUserRequestPath.BG + SysUserRequestPath.AUDIT_RECORD + SysUserRequestPath.GET)
public CallBack<List<AuditRecord>> get(Integer oid);
public CallBack<List<AuditRecord>> get(@PathVariable("oid") Integer oid);
}
......@@ -12,10 +12,10 @@ import com.zrqx.core.util.response.CallBack;
@Component
public class BgSysUserClientHystric implements BgSysUserClient{
Logger log = LoggerFactory.getLogger(ResourceClientHystric.class);
Logger log = LoggerFactory.getLogger(BgSysUserClientHystric.class);
@Override
public CallBack<List<AuditRecord>> get(Integer oid) {
log.info("实时查询物流信息失败:"+oid);
log.info("查询审核不通过的原因失败:"+ oid);
return CallBack.fail();
}
......
......@@ -2,16 +2,19 @@ package com.zrqx.fg.sysuser.client;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.zrqx.core.constant.resource.ResourceRequestPath;
import com.zrqx.core.form.GoodsForm;
import com.zrqx.core.util.response.CallBack;
import com.zrqx.core.vo.sysuser.fg.collections.GoodsVo;
@FeignClient(name = "bg-resource", fallback = ResourceClientHystric.class)
@FeignClient(name = "fg-resource", fallback = ResourceClientHystric.class)
public interface ResourceClient {
// TODO 远程调用 资源服务,获取商品信息
@GetMapping(ResourceRequestPath.BG)
public CallBack<GoodsVo> get(GoodsForm form);
@PostMapping(ResourceRequestPath.FG + ResourceRequestPath.RESOURCE + ResourceRequestPath.GET)
public CallBack<GoodsVo> get(@PathVariable("form") GoodsForm form);
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论