Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
66316515
提交
66316515
authored
4月 24, 2019
作者:
chaoyanjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
4f125288
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
9 行删除
+15
-9
BgSysUserClient.java
...main/java/com/zrqx/fg/sysuser/client/BgSysUserClient.java
+7
-4
BgSysUserClientHystric.java
...va/com/zrqx/fg/sysuser/client/BgSysUserClientHystric.java
+2
-2
ResourceClient.java
.../main/java/com/zrqx/fg/sysuser/client/ResourceClient.java
+6
-3
没有找到文件。
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/client/BgSysUserClient.java
浏览文件 @
66316515
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
);
}
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/client/BgSysUserClientHystric.java
浏览文件 @
66316515
...
...
@@ -12,10 +12,10 @@ import com.zrqx.core.util.response.CallBack;
@Component
public
class
BgSysUserClientHystric
implements
BgSysUserClient
{
Logger
log
=
LoggerFactory
.
getLogger
(
Resource
ClientHystric
.
class
);
Logger
log
=
LoggerFactory
.
getLogger
(
BgSysUser
ClientHystric
.
class
);
@Override
public
CallBack
<
List
<
AuditRecord
>>
get
(
Integer
oid
)
{
log
.
info
(
"
实时查询物流信息失败:"
+
oid
);
log
.
info
(
"
查询审核不通过的原因失败:"
+
oid
);
return
CallBack
.
fail
();
}
...
...
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/client/ResourceClient.java
浏览文件 @
66316515
...
...
@@ -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
=
"
b
g-resource"
,
fallback
=
ResourceClientHystric
.
class
)
@FeignClient
(
name
=
"
f
g-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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论