Commit 71412710 authored by wangp's avatar wangp

lakala

parent 3876c2ad
...@@ -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) {
......
...@@ -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) {
......
...@@ -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": "number" "type": "integer"
}, },
"trans_merchant_no": { "trans_merchant_no": {
"type": "string" "type": "string"
......
...@@ -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": "number" "type": "integer"
}, },
"trans_merchant_no": { "trans_merchant_no": {
"type": "string" "type": "string"
......
...@@ -76,7 +76,7 @@ definitions: ...@@ -76,7 +76,7 @@ definitions:
term_no: term_no:
type: string type: string
total_amount: total_amount:
type: number type: integer
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
......
# 数据分析
# 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 = "滞销商品"
...@@ -134,11 +134,11 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{}, ...@@ -134,11 +134,11 @@ 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 不支持
data["req_data"] = make(map[string]interface{}) data["req_data"] = make(map[string]interface{})
data["req_data"] = data2 data["req_data"] = data2
...@@ -166,10 +166,10 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{}, ...@@ -166,10 +166,10 @@ func UnifiedOrder(input *models.PlaceAnOrderParamInput, ip string) (interface{},
data2["out_trade_no"] = orderID //随机生成的订单号 //商户交易流水号 data2["out_trade_no"] = orderID //随机生成的订单号 //商户交易流水号
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、微信小程序
//data2["counter_param"] = "{\"pay_mode\":\"WECHAT\"}" //data2["counter_param"] = "{\"pay_mode\":\"WECHAT\"}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment