mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-12-13 12:39:58 +08:00
重构了boss系统,添加了逻辑
This commit is contained in:
38
boss/controllers/sendNotifyMerchantController.go
Normal file
38
boss/controllers/sendNotifyMerchantController.go
Normal file
@@ -0,0 +1,38 @@
|
||||
/***************************************************
|
||||
** @Desc : This file for ...
|
||||
** @Time : 2019/12/8 22:15
|
||||
** @Author : yuebin
|
||||
** @File : send_notify_merchant
|
||||
** @Last Modified by : yuebin
|
||||
** @Last Modified time: 2019/12/8 22:15
|
||||
** @Software: GoLand
|
||||
****************************************************/
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"boss/service"
|
||||
"github.com/beego/beego/v2/server/web"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type SendNotify struct {
|
||||
web.Controller
|
||||
}
|
||||
|
||||
func (c *SendNotify) SendNotifyToMerchant() {
|
||||
bankOrderId := strings.TrimSpace(c.GetString("bankOrderId"))
|
||||
se := new(service.SendNotifyMerchantService)
|
||||
keyDataJSON := se.SendNotifyToMerchant(bankOrderId)
|
||||
|
||||
c.Data["json"] = keyDataJSON
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
func (c *SendNotify) SelfSendNotify() {
|
||||
bankOrderId := strings.TrimSpace(c.GetString("bankOrderId"))
|
||||
|
||||
se := new(service.SendNotifyMerchantService)
|
||||
keyDataJSON := se.SelfSendNotify(bankOrderId)
|
||||
c.Data["json"] = keyDataJSON
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
Reference in New Issue
Block a user