Initial commit

This commit is contained in:
2026-05-20 16:13:58 +08:00
commit ceffbe382e
500 changed files with 157469 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package router
import (
"github.com/gin-gonic/gin"
"stat/api/agentApi"
"stat/api/channelApi"
)
func agentRouter(router *gin.RouterGroup) {
agent := router.Group("/agent")
{
agent.POST("/login", agentApi.AgentLogin)
agent.POST("/channel/add", agentApi.AddAgentChannel)
agent.POST("/imgVerify", agentApi.AgentImgVerifyCode)
agent.POST("/channel/list", agentApi.AgentChannelList)
agent.POST("/channel/stat", agentApi.GetAgentChannelStat)
agent.POST("/summary/home", agentApi.GetAgentSummaryStatHome)
agent.POST("/summary/child", agentApi.GetAgentSummaryStatChild)
agent.POST("/channel/landpage", agentApi.ChannelAppInfo)
agent.POST("/channel/rule/update", agentApi.AgentChannelRuleUpdate)
agent.POST("/channel/info/update", agentApi.AgentChannelInfoUpdate)
agent.POST("/channel/password/update", agentApi.AgentChannelPasswordUpdate)
agent.POST("/channel/password/reset", agentApi.AgentChannelPasswordReset)
agent.POST("/channel/applies", channelApi.GetApplyForm)
}
}