Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"stat/api/innerapi"
|
||||
"stat/middleware/inner"
|
||||
"stat/statg"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func innerRouter(router *gin.RouterGroup) {
|
||||
plain := router.Group("/inner")
|
||||
{
|
||||
plain.POST("/appDownload", innerapi.AppDownload)
|
||||
plain.POST("/recharge/list", innerapi.InnerRechargeList)
|
||||
plain.POST("/rechargebotcmd/list", innerapi.InnerRechargeBotcmdList)
|
||||
}
|
||||
crypt := router.Group("/inner", inner.Crypt(statg.Conf.InnerKey))
|
||||
{
|
||||
crypt.POST("/botMonthStat", innerapi.BotMonthStatList)
|
||||
crypt.POST("/botStatList", innerapi.BotDailyHourList)
|
||||
crypt.POST("/botStatOne", innerapi.BotDailyHourOne)
|
||||
crypt.POST("/appList", innerapi.ListAppInfo)
|
||||
crypt.POST("/sendTgMessage", innerapi.SendTgMessage)
|
||||
///api/stat/inner/sendTgMessage
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user