27 lines
716 B
Go
27 lines
716 B
Go
package mainservice
|
|
|
|
import (
|
|
"f5"
|
|
v1 "main/api/v1"
|
|
)
|
|
|
|
type MainServiceRouter struct{}
|
|
|
|
func (this *MainServiceRouter) InitRouter() {
|
|
api := v1.ApiGroupApp.MainServiceApiGroup
|
|
f5.GetApp().GetGinEngine().GET("/api/service/refresh",
|
|
api.RefreshToken)
|
|
f5.GetApp().GetGinEngine().GET("/wx/purnotify/:gameid",
|
|
api.WxTNotify)
|
|
f5.GetApp().GetGinEngine().POST("/wx/purnotify/:gameid",
|
|
api.WxNotifyPurchase)
|
|
f5.GetApp().GetGinEngine().GET("/wx/msgnotify/:gameid",
|
|
api.WxMsgTNotify)
|
|
f5.GetApp().GetGinEngine().POST("/wx/msgnotify/:gameid",
|
|
api.WxMsgNotify)
|
|
f5.GetApp().GetGinEngine().GET("/wx/clicknotify",
|
|
api.WxClickNotify)
|
|
f5.GetApp().GetGinEngine().POST("/wx/paynotify/:gameid",
|
|
api.WxPayNotify)
|
|
}
|