pageRouter.go 1.5 KB

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