feat: 完成后台Issue#9 小程序管理接口模块

This commit is contained in:
root
2026-03-09 19:26:25 +08:00
parent bd1e644ef5
commit 7591a443d9
3 changed files with 438 additions and 0 deletions
+7
View File
@@ -24,6 +24,13 @@ func registerAdminRoutes(router *gin.Engine, handler *adminhandler.Handler) {
protected.GET("/stats/overview", handler.StatsOverview)
protected.GET("/stats/mini-programs", handler.StatsMiniPrograms)
protected.GET("/stats/user-growth", handler.StatsUserGrowth)
protected.GET("/mini-programs", handler.ListMiniPrograms)
protected.GET("/mini-programs/:id", handler.GetMiniProgram)
protected.GET("/mini-programs/:id/stats", handler.GetMiniProgramStats)
protected.POST("/mini-programs", handler.CreateMiniProgram)
protected.PUT("/mini-programs/:id", handler.UpdateMiniProgram)
protected.DELETE("/mini-programs/:id", handler.DeleteMiniProgram)
}
}
}