Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
system_pay
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王沛
system_pay
Commits
71412710
Commit
71412710
authored
Jul 21, 2023
by
wangp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lakala
parent
3876c2ad
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
55 deletions
+24
-55
notice.go
controller/api/v1/pay/notice.go
+1
-1
pay.go
controller/api/v1/pay/pay.go
+2
-2
docs.go
docs/docs.go
+4
-4
swagger.json
docs/swagger.json
+4
-4
swagger.yaml
docs/swagger.yaml
+4
-4
bp.toml
i18n/bp.toml
+0
-31
pay.go
repository/pay/pay.go
+9
-9
No files found.
controller/api/v1/pay/notice.go
View file @
71412710
...
@@ -30,7 +30,7 @@ type NoticeController struct {
...
@@ -30,7 +30,7 @@ type NoticeController struct {
// @Accept application/json
// @Accept application/json
// @Produce application/json
// @Produce application/json
// @Param body body models.WxNoticeInput true "参数"
// @Param body body models.WxNoticeInput true "参数"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文"
// @Success 200
// @Success 200
// @router /api/v1/pay/wx_notice [post]
// @router /api/v1/pay/wx_notice [post]
func
(
l
*
PayController
)
WxNotice
(
c
*
gin
.
Context
)
{
func
(
l
*
PayController
)
WxNotice
(
c
*
gin
.
Context
)
{
...
...
controller/api/v1/pay/pay.go
View file @
71412710
...
@@ -20,7 +20,7 @@ type PayController struct {
...
@@ -20,7 +20,7 @@ type PayController struct {
// @Accept application/json
// @Accept application/json
// @Produce application/json
// @Produce application/json
// @Param body body models.PlaceAnOrderParamInput true "参数"
// @Param body body models.PlaceAnOrderParamInput true "参数"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文"
// @Success 200
// @Success 200
// @router /api/v1/pay/unified_order [post]
// @router /api/v1/pay/unified_order [post]
func
(
l
*
PayController
)
UnifiedOrder
(
c
*
gin
.
Context
)
{
func
(
l
*
PayController
)
UnifiedOrder
(
c
*
gin
.
Context
)
{
...
@@ -57,7 +57,7 @@ func (l *PayController) UnifiedOrder(c *gin.Context) {
...
@@ -57,7 +57,7 @@ func (l *PayController) UnifiedOrder(c *gin.Context) {
// @Accept application/json
// @Accept application/json
// @Produce application/json
// @Produce application/json
// @Param body body models.RefundParamInput true "参数"
// @Param body body models.RefundParamInput true "参数"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文"
// @Success 200
// @Success 200
// @router /api/v1/pay/unified_refund [post]
// @router /api/v1/pay/unified_refund [post]
func
(
l
*
PayController
)
UnifiedRefund
(
c
*
gin
.
Context
)
{
func
(
l
*
PayController
)
UnifiedRefund
(
c
*
gin
.
Context
)
{
...
...
docs/docs.go
View file @
71412710
...
@@ -48,7 +48,7 @@ var doc = `{
...
@@ -48,7 +48,7 @@ var doc = `{
},
},
{
{
"type": "string",
"type": "string",
"description": "语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文",
"description": "语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文",
"name": "language",
"name": "language",
"in": "header"
"in": "header"
}
}
...
@@ -85,7 +85,7 @@ var doc = `{
...
@@ -85,7 +85,7 @@ var doc = `{
},
},
{
{
"type": "string",
"type": "string",
"description": "语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文",
"description": "语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文",
"name": "language",
"name": "language",
"in": "header"
"in": "header"
}
}
...
@@ -122,7 +122,7 @@ var doc = `{
...
@@ -122,7 +122,7 @@ var doc = `{
},
},
{
{
"type": "string",
"type": "string",
"description": "语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文",
"description": "语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文",
"name": "language",
"name": "language",
"in": "header"
"in": "header"
}
}
...
@@ -252,7 +252,7 @@ var doc = `{
...
@@ -252,7 +252,7 @@ var doc = `{
"type": "string"
"type": "string"
},
},
"total_amount": {
"total_amount": {
"type": "
numb
er"
"type": "
integ
er"
},
},
"trans_merchant_no": {
"trans_merchant_no": {
"type": "string"
"type": "string"
...
...
docs/swagger.json
View file @
71412710
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
},
},
{
{
"type"
:
"string"
,
"type"
:
"string"
,
"description"
:
"语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文"
,
"description"
:
"语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文"
,
"name"
:
"language"
,
"name"
:
"language"
,
"in"
:
"header"
"in"
:
"header"
}
}
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
},
},
{
{
"type"
:
"string"
,
"type"
:
"string"
,
"description"
:
"语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文"
,
"description"
:
"语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文"
,
"name"
:
"language"
,
"name"
:
"language"
,
"in"
:
"header"
"in"
:
"header"
}
}
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
},
},
{
{
"type"
:
"string"
,
"type"
:
"string"
,
"description"
:
"语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文"
,
"description"
:
"语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文"
,
"name"
:
"language"
,
"name"
:
"language"
,
"in"
:
"header"
"in"
:
"header"
}
}
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
"type"
:
"string"
"type"
:
"string"
},
},
"total_amount"
:
{
"total_amount"
:
{
"type"
:
"
numb
er"
"type"
:
"
integ
er"
},
},
"trans_merchant_no"
:
{
"trans_merchant_no"
:
{
"type"
:
"string"
"type"
:
"string"
...
...
docs/swagger.yaml
View file @
71412710
...
@@ -76,7 +76,7 @@ definitions:
...
@@ -76,7 +76,7 @@ definitions:
term_no
:
term_no
:
type
:
string
type
:
string
total_amount
:
total_amount
:
type
:
numb
er
type
:
integ
er
trans_merchant_no
:
trans_merchant_no
:
type
:
string
type
:
string
trans_term_no
:
trans_term_no
:
...
@@ -100,7 +100,7 @@ paths:
...
@@ -100,7 +100,7 @@ paths:
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/models.PlaceAnOrderParamInput'
$ref
:
'
#/definitions/models.PlaceAnOrderParamInput'
-
description
:
语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文
-
description
:
语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文
in
:
header
in
:
header
name
:
language
name
:
language
type
:
string
type
:
string
...
@@ -124,7 +124,7 @@ paths:
...
@@ -124,7 +124,7 @@ paths:
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/models.RefundParamInput'
$ref
:
'
#/definitions/models.RefundParamInput'
-
description
:
语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文
-
description
:
语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文
in
:
header
in
:
header
name
:
language
name
:
language
type
:
string
type
:
string
...
@@ -148,7 +148,7 @@ paths:
...
@@ -148,7 +148,7 @@ paths:
required
:
true
required
:
true
schema
:
schema
:
$ref
:
'
#/definitions/models.WxNoticeInput'
$ref
:
'
#/definitions/models.WxNoticeInput'
-
description
:
语言类型 zh-CN简体中文 en-US英文 ja
日文 默认中文
-
description
:
语言类型 zh-CN简体中文 en-US英文 ja
-JP
日文 默认中文
in
:
header
in
:
header
name
:
language
name
:
language
type
:
string
type
:
string
...
...
i18n/bp.toml
deleted
100755 → 0
View file @
3876c2ad
# 数据分析
# 9000 = ""
# 9001 = "数据概览"
# 9002 = "顾客分析"
# 9003 = "会员卡分析"
# 9004 = "次卡分析"
# 9005 = "病历量分析"
# 9006 = "医疗消费分析"
# 9007 = "商品分析"
# 9008 = "员工分析"
#
# 9100 = ""
# 9101 = "新增用户"
# 9102 = "到店消费"
# 9103 = "新客消费"
# 9104 = "老客消费"
# 9105 = "新增办卡数"
# 9106 = "会员卡充值额度"
# 9107 = "赠额充值额度"
# 9108 = "会员卡消费次数"
# 9109 = "会员卡消费金额"
# 9110 = "就诊量"
# 9111 = "新客户初诊"
# 9112 = "老客户初诊"
# 9113 = "新客户复诊"
# 9114 = "老客户复诊"
# 9115 = "销量下跌"
# 9116 = "滞销商品"
repository/pay/pay.go
View file @
71412710
...
@@ -136,7 +136,7 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
...
@@ -136,7 +136,7 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
data2
[
"order_efficient_time"
]
=
date_time2
//订单有效期 格式yyyyMMddHHmmss,最大支持下单时间+2天
data2
[
"order_efficient_time"
]
=
date_time2
//订单有效期 格式yyyyMMddHHmmss,最大支持下单时间+2天
data2
[
"notify_url"
]
=
input
.
NoticeURL
//订单支付成功后商户接收订单通知的地址 http://xxx.xxx.com
data2
[
"notify_url"
]
=
input
.
NoticeURL
//订单支付成功后商户接收订单通知的地址 http://xxx.xxx.com
data2
[
"callback_url"
]
=
input
.
ReturnURL
//客户端下单完成支付后返回的商户网页跳转地址
data2
[
"callback_url"
]
=
input
.
ReturnURL
//客户端下单完成支付后返回的商户网页跳转地址
data2
[
"order_info"
]
=
"必康测试订单标题2"
//订单标题,在使用收银台扫码支付时必输入,交易时送往账户端
data2
[
"order_info"
]
=
input
.
PlatformInfo
//订单标题,在使用收银台扫码支付时必输入,交易时送往账户端
//data2["goods_mark"] = input.AttachInfo //商品信息标识 (1:含商品信息,不填默认不含商品信息)
//data2["goods_mark"] = input.AttachInfo //商品信息标识 (1:含商品信息,不填默认不含商品信息)
data2
[
"support_refund"
]
=
1
//是否支持退款 默认0 不支持
data2
[
"support_refund"
]
=
1
//是否支持退款 默认0 不支持
...
@@ -168,7 +168,7 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
...
@@ -168,7 +168,7 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
data2
[
"order_efficient_time"
]
=
date_time2
//订单有效期 格式yyyyMMddHHmmss,最大支持下单时间+2天
data2
[
"order_efficient_time"
]
=
date_time2
//订单有效期 格式yyyyMMddHHmmss,最大支持下单时间+2天
data2
[
"notify_url"
]
=
input
.
NoticeURL
//订单支付成功后商户接收订单通知的地址 http://xxx.xxx.com
data2
[
"notify_url"
]
=
input
.
NoticeURL
//订单支付成功后商户接收订单通知的地址 http://xxx.xxx.com
data2
[
"callback_url"
]
=
input
.
ReturnURL
//客户端下单完成支付后返回的商户网页跳转地址
data2
[
"callback_url"
]
=
input
.
ReturnURL
//客户端下单完成支付后返回的商户网页跳转地址
data2
[
"order_info"
]
=
"必康测试订单标题2"
//订单标题,在使用收银台扫码支付时必输入,交易时送往账户端
data2
[
"order_info"
]
=
input
.
PlatformInfo
//订单标题,在使用收银台扫码支付时必输入,交易时送往账户端
//data2["goods_mark"] = input.AttachInfo //商品信息标识 (1:含商品信息,不填默认不含商品信息)
//data2["goods_mark"] = input.AttachInfo //商品信息标识 (1:含商品信息,不填默认不含商品信息)
//微信JSAPI、微信小程序
//微信JSAPI、微信小程序
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment