Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
c51715c8
提交
c51715c8
编写于
9月 09, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
支付、通知Client
上级
91920d7e
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
185 行增加
和
5 行删除
+185
-5
IBZNotifyFallback.java.ftl
...java/%SYS_PKGPATH%/util/client/IBZNotifyFallback.java.ftl
+2
-2
IBZNotifyFeignClient.java.ftl
...a/%SYS_PKGPATH%/util/client/IBZNotifyFeignClient.java.ftl
+4
-3
IBZPayFallback.java.ftl
...in/java/%SYS_PKGPATH%/util/client/IBZPayFallback.java.ftl
+32
-0
IBZPayFeignClient.java.ftl
...java/%SYS_PKGPATH%/util/client/IBZPayFeignClient.java.ftl
+27
-0
MsgBody.java.ftl
.../src/main/java/%SYS_PKGPATH%/util/domain/MsgBody.java.ftl
+66
-0
PayTrade.java.ftl
...src/main/java/%SYS_PKGPATH%/util/domain/PayTrade.java.ftl
+54
-0
未找到文件。
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZNotifyFallback.java.ftl
浏览文件 @
c51715c8
...
@@ -3,7 +3,7 @@ TARGET=PSSYSTEM
...
@@ -3,7 +3,7 @@ TARGET=PSSYSTEM
</#
ibiztemplate
>
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
util
.
client
;
package
${
pub
.
getPKGCodeName
()}.
util
.
client
;
import
com
.
alibaba
.
fastjson
.
JSONArra
y
;
import
${
pub
.
getPKGCodeName
()}.
util
.
domain
.
MsgBod
y
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
stereotype
.
Component
;
import
org
.
springframework
.
stereotype
.
Component
;
...
@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
...
@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
public
class
IBZNotifyFallback
implements
IBZNotifyFeignClient
{
public
class
IBZNotifyFallback
implements
IBZNotifyFeignClient
{
@
Override
@
Override
public
Boolean
SendMsg
(
JSONObject
msg
)
{
public
Boolean
SendMsg
(
MsgBody
msg
)
{
return
null
;
return
null
;
}
}
...
...
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZNotifyFeignClient.java.ftl
浏览文件 @
c51715c8
...
@@ -3,6 +3,7 @@ TARGET=PSSYSTEM
...
@@ -3,6 +3,7 @@ TARGET=PSSYSTEM
</#
ibiztemplate
>
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
util
.
client
;
package
${
pub
.
getPKGCodeName
()}.
util
.
client
;
import
${
pub
.
getPKGCodeName
()}.
util
.
domain
.
MsgBody
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
cloud
.
openfeign
.
FeignClient
;
import
org
.
springframework
.
cloud
.
openfeign
.
FeignClient
;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
...
@@ -10,9 +11,9 @@ import org.springframework.web.bind.annotation.*;
...
@@ -10,9 +11,9 @@ import org.springframework.web.bind.annotation.*;
@
FeignClient
(
value
=
"${r'${ibiz.ref.service.notify:ibznotify-api}'}"
,
fallback
=
IBZNotifyFallback
.
class
)
@
FeignClient
(
value
=
"${r'${ibiz.ref.service.notify:ibznotify-api}'}"
,
fallback
=
IBZNotifyFallback
.
class
)
public
interface
IBZNotifyFeignClient
public
interface
IBZNotifyFeignClient
{
{
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/
SendM
sg"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/
notify/sendm
sg"
)
Boolean
SendMsg
(@
RequestBody
JSONObject
msg
);
Boolean
SendMsg
(@
RequestBody
MsgBody
msg
);
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/
createMsgTemplate
"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/
notify/createmsgtempl
"
)
Boolean
createMsgTemplate
(@
RequestBody
JSONObject
template
);
Boolean
createMsgTemplate
(@
RequestBody
JSONObject
template
);
}
}
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZPayFallback.java.ftl
0 → 100644
浏览文件 @
c51715c8
<#
ibiztemplate
>
TARGET
=
PSSYSTEM
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
util
.
client
;
import
${
pub
.
getPKGCodeName
()}.
util
.
domain
.
PayTrade
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
stereotype
.
Component
;
@
Component
public
class
IBZPayFallback
implements
IBZPayFeignClient
{
@
Override
public
JSONObject
preCreate
(
PayTrade
trade
)
{
return
null
;
}
@
Override
public
JSONObject
query
(
PayTrade
trade
)
{
return
null
;
}
@
Override
public
JSONObject
cancel
(
PayTrade
trade
)
{
return
null
;
}
@
Override
public
String
pagePay
(
PayTrade
trade
)
{
return
null
;
}
}
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZPayFeignClient.java.ftl
0 → 100644
浏览文件 @
c51715c8
<#
ibiztemplate
>
TARGET
=
PSSYSTEM
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
util
.
client
;
import
${
pub
.
getPKGCodeName
()}.
util
.
domain
.
PayTrade
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
cloud
.
openfeign
.
FeignClient
;
import
org
.
springframework
.
web
.
bind
.
annotation
.
RequestBody
;
import
org
.
springframework
.
web
.
bind
.
annotation
.
RequestMapping
;
import
org
.
springframework
.
web
.
bind
.
annotation
.
RequestMethod
;
@
FeignClient
(
value
=
"${r'${ibiz.ref.service.notify:ibznotify-api}'}"
,
fallback
=
IBZPayFallback
.
class
)
public
interface
IBZPayFeignClient
{
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/pay/trade/precreate"
)
JSONObject
preCreate
(@
RequestBody
PayTrade
trade
);
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/pay/trade/query"
)
JSONObject
query
(@
RequestBody
PayTrade
trade
);
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/pay/trade/cancel"
)
JSONObject
cancel
(@
RequestBody
PayTrade
trade
);
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/pay/trade/pagepay"
)
String
pagePay
(@
RequestBody
PayTrade
trade
);
}
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/domain/MsgBody.java.ftl
0 → 100644
浏览文件 @
c51715c8
<#
ibiztemplate
>
TARGET
=
PSSYSTEM
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
util
.
domain
;
import
com
.
alibaba
.
fastjson
.
annotation
.
JSONField
;
import
com
.
fasterxml
.
jackson
.
annotation
.
JsonProperty
;
import
lombok
.
Data
;
import
java
.
io
.
Serializable
;
/**
*
消息对象
*/
@
Data
public
class
MsgBody
{
/**
*
接收用户
*/
@
JSONField
(
name
=
"to_users"
)
@
JsonProperty
(
"to_users"
)
private
String
toUsers
;
/**
*
标题
*/
@
JSONField
(
name
=
"subject"
)
@
JsonProperty
(
"subject"
)
private
String
subject
;
/**
*
内容
*/
@
JSONField
(
name
=
"content"
)
@
JsonProperty
(
"content"
)
private
String
content
;
/**
*
类型
*/
@
JSONField
(
name
=
"msg_type"
)
@
JsonProperty
(
"msg_type"
)
private
Integer
msgType
;
/**
*
模板标识
*/
@
JSONField
(
name
=
"template_id"
)
@
JsonProperty
(
"template_id"
)
private
String
templateId
;
/**
*
模板参数
*/
@
JSONField
(
name
=
"template_params"
)
@
JsonProperty
(
"template_params"
)
private
String
templateParams
;
/**
*
消息链接
*/
@
JSONField
(
name
=
"msg_link"
)
@
JsonProperty
(
"msg_link"
)
private
String
msgLink
;
/**
*
消息链接(
pc
)
*/
@
JSONField
(
name
=
"msg_link_pc"
)
@
JsonProperty
(
"msg_link_pc"
)
private
String
msgLinkPc
;
}
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/domain/PayTrade.java.ftl
0 → 100644
浏览文件 @
c51715c8
<#
ibiztemplate
>
TARGET
=
PSSYSTEM
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
util
.
domain
;
import
com
.
alibaba
.
fastjson
.
annotation
.
JSONField
;
import
com
.
baomidou
.
mybatisplus
.
annotation
.
TableField
;
import
com
.
fasterxml
.
jackson
.
annotation
.
JsonProperty
;
import
lombok
.
Data
;
/**
*
实体
[
支付交易
]
*/
@
Data
public
class
PayTrade
{
/**
*
订单标题
*/
@
TableField
(
value
=
"subject"
)
@
JSONField
(
name
=
"subject"
)
@
JsonProperty
(
"subject"
)
private
String
subject
;
/**
*
订单金额
*/
@
JSONField
(
name
=
"total_amount"
)
@
JsonProperty
(
"total_amount"
)
private
String
totalAmount
;
/**
*
支付类型
*/
@
JSONField
(
name
=
"trade_type"
)
@
JsonProperty
(
"trade_type"
)
private
String
tradeType
;
/**
*
订单号
*/
@
JSONField
(
name
=
"out_trade_no"
)
@
JsonProperty
(
"out_trade_no"
)
private
String
outTradeNo
;
/**
*
应用标识
*/
@
JSONField
(
name
=
"app_id"
)
@
JsonProperty
(
"app_id"
)
private
String
appId
;
/**
*
支付平台接入标识
*/
@
JSONField
(
name
=
"access_id"
)
@
JsonProperty
(
"access_id"
)
private
String
accessId
;
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录