pageRouter.go 1.7 KB

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