pageRouter.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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("/projectListDetail", projectListDetailPage)
  16. pageRouterGroup.GET("/interfaceListPage", interfaceListPage)
  17. }
  18. }
  19. func login(context *gin.Context) {
  20. context.HTML(200, "login.html", nil)
  21. }
  22. func chooseProductPage(context *gin.Context) {
  23. context.HTML(200, "chooseProduct.html", nil)
  24. }
  25. func createUser(context *gin.Context) {
  26. context.HTML(200, "create_user.html", nil)
  27. }
  28. func userRechargePage(context *gin.Context) {
  29. context.HTML(200, "userRecharge.html", nil)
  30. }
  31. func projectDetailsPage(context *gin.Context) {
  32. context.HTML(200, "projectDetails.html", nil)
  33. }
  34. func projectListPage(context *gin.Context) {
  35. context.HTML(200, "projectList.html", nil)
  36. }
  37. func projectListDetailPage(context *gin.Context) {
  38. context.HTML(200, "projectListDetail.html", nil)
  39. }
  40. func interfaceListPage(context *gin.Context) {
  41. context.HTML(200, "interfaceList.html", nil)
  42. }