package router import ( "github.com/gin-gonic/gin" jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth" "go-admin/app/admin/apis/migumanage" ) // registerMiGuControlManageRouter 需认证的路由代码 func registerMiGuControlManageRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) { apiMiGu := migumanage.MiGuDeployService{} api := v1.Group("/admin") { api.POST("product/list", apiMiGu.ProductList) // 查询权益产品 api.POST("product/add", apiMiGu.AddProduct) // 新增产品 //api.POST("product/update", apiMiGu.UpdateProduct) // 编辑产品 //api.POST("product/delete", apiMiGu.DeleteProduct) // 删除产品 api.POST("channel/list", apiMiGu.ChannelList) // 查询渠道列表 api.POST("channel/add", apiMiGu.AddChannel) // 新增渠道 //api.POST("channel/update", apiMiGu.UpdateChannel) // 编辑渠道 //api.POST("channel/delete", apiMiGu.DeleteChannel) // 删除渠道 api.POST("transaction/list", apiMiGu.TransactionList) // 查询交易流水记录 api.POST("order/list", apiMiGu.OrderList) // 查询订单列表 //api.POST("historical_summary/list", apiMiGu.HistoricalSummaryListNew) // 历史汇总查询 api.POST("hour_summary/list", apiMiGu.HourSummaryList) // 历史汇总查询(按小时) api.POST("realtime_summary/list", apiMiGu.RealtimeSummaryList) // 当日实时汇总 api.POST("user_retention/list", apiMiGu.UserRetentionList) // 用户留存记录 api.POST("user_day_retention/list", apiMiGu.UserDayRetentionList) // 用户留存记录(按天) api.POST("sys_channel/list", apiMiGu.SysChannelList) // 查询系统所有渠道编码 api.POST("home/data", apiMiGu.HomepageDataSummary) // 查询首页汇总数据 api.POST("home/revenue_analysis", apiMiGu.CalculateRevenueAnalysis) // 营收分析 api.POST("historical_summary/list", apiMiGu.HistoricalSummaryListOld) // 历史汇总查询 api.POST("order/import", apiMiGu.ImportExcelToMgOrderHandler) // 通过excel导入订单数据 //api.POST("order/import_update", apiMiGu.ImportExcelToMgOrderHandlerUpdate) // 通过excel导入订单退订数据 } } // registerMiGuControlManageUnAuthRouter 无需认证的路由代码 func registerMiGuControlManageUnAuthRouter(v1 *gin.RouterGroup) { }