pageRouter.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package router
  2. import (
  3. "github.com/gin-gonic/gin"
  4. )
  5. func pageRouterRegister(router *gin.Engine) {
  6. pageRouterGroup := router.Group("/page")
  7. //pageRouterGroup.Use(middleware.JwtAuth())
  8. {
  9. pageRouterGroup.GET("/login", login)
  10. pageRouterGroup.GET("/chooseProductPage", chooseProductPage)
  11. pageRouterGroup.GET("/createUser", createUser)
  12. pageRouterGroup.GET("/userRecharge", userRechargePage)
  13. pageRouterGroup.GET("/projectDetailsPage", projectDetailsPage)
  14. pageRouterGroup.GET("/projectListPage", projectListPage)
  15. pageRouterGroup.GET("/interfaceListPage", interfaceListPage)
  16. }
  17. }
  18. func login(context *gin.Context) {
  19. context.HTML(200, "login.html", nil)
  20. }
  21. func chooseProductPage(context *gin.Context) {
  22. context.HTML(200, "chooseProduct.html", nil)
  23. }
  24. func createUser(context *gin.Context) {
  25. context.HTML(200, "create_user.html", nil)
  26. }
  27. func userRechargePage(context *gin.Context) {
  28. context.HTML(200, "userRecharge.html", nil)
  29. }
  30. func projectDetailsPage(context *gin.Context) {
  31. context.HTML(200, "projectDetails.html", nil)
  32. }
  33. func projectListPage(context *gin.Context) {
  34. context.HTML(200, "projectList.html", nil)
  35. }
  36. func interfaceListPage(context *gin.Context) {
  37. context.HTML(200, "interfaceList.html", nil)
  38. }