Explorar o código

Merge branch 'dev2.9.1' of http://192.168.3.207:10080/qmx/qfw into dev2.9.1

weixianghui %!s(int64=5) %!d(string=hai) anos
pai
achega
c54b1f2f7d
Modificáronse 2 ficheiros con 43 adicións e 4 borrados
  1. 0 4
      common/src/qfw/util/rpc/follow.go
  2. 43 0
      common/src/qfw/util/rpc/order.go

+ 0 - 4
common/src/qfw/util/rpc/follow.go

@@ -6,7 +6,3 @@ type FollowData struct {
 	Server      string `json:"server"`
 	Projectname string `json:"projectname"`
 }
-type DateExportData struct {
-	ImgSrc    string `json:"imgSrc"`
-	OrderCode string `json:"orderCode"`
-}

+ 43 - 0
common/src/qfw/util/rpc/order.go

@@ -0,0 +1,43 @@
+package rpc
+
+//数据导出线下支付
+type DateExportData struct {
+	ImgSrc    string `json:"imgSrc"`
+	OrderCode string `json:"orderCode"`
+}
+
+//创建订单
+type JyPayOrderParam struct {
+	Price       int                    `json:"price"`
+	ProductType string                 `json:"productType"`
+	Ip          string                 `json:"ip"`
+	Openid      string                 `json:"openid"`
+	PayWay      string                 `json:"payWay"`
+	Userid      string                 `json:"userid"`
+	Detail      map[string]interface{} `json:"detail"`
+}
+
+//修改订单
+type JyPayOrderChangeParam struct {
+	ProductType string `json:"productType"`
+	OrderCode   string `json:"orderCode"`
+	PayWay      string `json:"payWay"`
+	Openid      string `json:"openid"`
+	Ip          string `json:"ip"`
+}
+
+//关闭订单
+type JyPayOrderCloseParam struct {
+	ProductType string `json:"productType"`
+	OrderCode   string `json:"orderCode"`
+}
+
+/*
+code -1:失败
+err  错误信息
+*/
+type JyPayOrderResult struct {
+	Status    int    `json:"status"`
+	Err       string `json:"err"`
+	OrderCode string `json:"orderCode"`
+}