forked from all_user/stat_center
28 lines
759 B
Go
28 lines
759 B
Go
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
|
|
}
|
|
}
|