Browse Source

test

master
huangjiajun 1 year ago
parent
commit
27d29647d8
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      recharge/recharge.go

+ 7
- 7
recharge/recharge.go View File

@@ -5,7 +5,7 @@ import "fmt"
/***
查询用户信息
*/
func getUser(apiKey string, param map[string]string) (string, error) {
func GetUser(apiKey string, param map[string]string) (string, error) {
s, err := send("index/user", apiKey, param)
fmt.Println(s)
fmt.Println(err)
@@ -17,7 +17,7 @@ func getUser(apiKey string, param map[string]string) (string, error) {
type int 1 false 产品类型ID,非必须
cate_id int 10 false 分类ID,非必须
*/
func getProduct(apiKey string, param map[string]string) (string, error) {
func GetProduct(apiKey string, param map[string]string) (string, error) {
s, err := send("index/product", apiKey, param)
fmt.Println(s)
fmt.Println(err)
@@ -28,7 +28,7 @@ func getProduct(apiKey string, param map[string]string) (string, error) {
产品ID查询【新增】
id int 1 true 产品ID
*/
func getPrice(apiKey string, param map[string]string) (string, error) {
func GetPrice(apiKey string, param map[string]string) (string, error) {
s, err := send("index/price", apiKey, param)
fmt.Println(s)
fmt.Println(err)
@@ -38,7 +38,7 @@ func getPrice(apiKey string, param map[string]string) (string, error) {
/***
获取产品类型和产品分类
*/
func getProductCate(apiKey string, param map[string]string) (string, error) {
func GetProductCate(apiKey string, param map[string]string) (string, error) {
s, err := send("index/typecate", apiKey, param)
fmt.Println(s)
fmt.Println(err)
@@ -49,7 +49,7 @@ func getProductCate(apiKey string, param map[string]string) (string, error) {
自发查询订单状态
out_trade_nums string CZH668877,CZH9988666 true 商户订单号;多个用英文,分割
*/
func getOrder(apiKey string, param map[string]string) (string, error) {
func GetOrder(apiKey string, param map[string]string) (string, error) {
s, err := send("index/check", apiKey, param)
fmt.Println(s)
fmt.Println(err)
@@ -59,7 +59,7 @@ func getOrder(apiKey string, param map[string]string) (string, error) {
/***
电费支持地区查询
*/
func getArea(apiKey string, param map[string]string) (string, error) {
func GetArea(apiKey string, param map[string]string) (string, error) {
s, err := send("index/elecity", apiKey, param)
fmt.Println(s)
fmt.Println(err)
@@ -83,7 +83,7 @@ param1 string * false 扩展参数,后台查看提交的产品类目是否需
param2 string * false 扩展参数,后台查看提交的产品类目是否需要提交此参数
param3 string * false 扩展参数,后台查看提交的产品类目是否需要提交此参数
*/
func pay(apiKey string, param map[string]string) (string, error) {
func Pay(apiKey string, param map[string]string) (string, error) {
s, err := send("index/recharge", apiKey, param)
fmt.Println(s)
fmt.Println(err)


Loading…
Cancel
Save