dongfeng-pay/boss/controllers/queryController.go

45 lines
981 B
Go
Raw Normal View History

2021-04-27 15:33:49 +08:00
/***************************************************
** @Desc : This file for ...
** @Time : 2019/11/6 14:03
** @Author : yuebin
** @File : query.go
** @Last Modified by : yuebin
** @Last Modified time: 2019/11/6 14:03
** @Software: GoLand
****************************************************/
package controllers
import (
2021-11-11 10:30:43 +08:00
"boss/service"
"github.com/beego/beego/v2/server/web"
2021-04-27 15:33:49 +08:00
"strings"
)
type SupplierQuery struct {
2021-11-11 10:30:43 +08:00
web.Controller
2021-04-27 15:33:49 +08:00
}
func (c *SupplierQuery) SupplierOrderQuery() {
bankOrderId := strings.TrimSpace(c.GetString("bankOrderId"))
2021-11-11 10:30:43 +08:00
se := new(service.QueryService)
keyDataJSON := se.SupplierOrderQuery(bankOrderId)
2021-04-27 15:33:49 +08:00
c.Data["json"] = keyDataJSON
2021-11-11 10:30:43 +08:00
_ = c.ServeJSON()
2021-04-27 15:33:49 +08:00
}
/*
* 向上游查询代付结果
*/
func (c *SupplierQuery) SupplierPayForQuery() {
bankOrderId := strings.TrimSpace(c.GetString("bankOrderId"))
2021-11-11 10:30:43 +08:00
se := new(service.QueryService)
keyDataJSON := se.SupplierPayForQuery(bankOrderId)
2021-04-27 15:33:49 +08:00
c.Data["json"] = keyDataJSON
2021-11-11 10:30:43 +08:00
_ = c.ServeJSON()
2021-04-27 15:33:49 +08:00
}