forked from all_user/stat_center
Initial commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user