forked from all_user/stat_center
27 lines
998 B
Go
27 lines
998 B
Go
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)
|
|
}
|
|
}
|