yuleduiPay/controller/pay.go

20 lines
349 B
Go
Raw Permalink Normal View History

2024-11-05 08:32:10 +08:00
package controller
import (
"yuleduiPay/service"
"github.com/gogf/gf/v2/net/ghttp"
)
// 路由控制类
type Pay struct {
2024-11-18 09:15:45 +08:00
payService service.Pay
wxService service.Wx
2024-11-05 08:32:10 +08:00
}
2024-11-08 15:19:11 +08:00
// 扫码,支付接口
2024-11-05 08:32:10 +08:00
func (t *Pay) RouterGroup(group *ghttp.RouterGroup) {
2024-11-18 09:15:45 +08:00
group.POST("/login", t.wxService.Login)
2024-11-05 08:32:10 +08:00
group.POST("/payQrCode", t.payService.PayQrCode)
}