routes.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "userCenter/api/internal/svc"
  6. "github.com/zeromicro/go-zero/rest"
  7. )
  8. func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
  9. server.AddRoutes(
  10. []rest.Route{
  11. {
  12. Method: http.MethodPost,
  13. Path: "/userCenter/ent/examine",
  14. Handler: ExamineHandler(serverCtx),
  15. },
  16. {
  17. Method: http.MethodPost,
  18. Path: "/userCenter/ent/check",
  19. Handler: CheckEntHandler(serverCtx),
  20. },
  21. {
  22. Method: http.MethodPost,
  23. Path: "/userCenter/ent/auth",
  24. Handler: EntAuthHandler(serverCtx),
  25. },
  26. {
  27. Method: http.MethodPost,
  28. Path: "/userCenter/ent/list",
  29. Handler: EntListHandler(serverCtx),
  30. },
  31. {
  32. Method: http.MethodPost,
  33. Path: "/userCenter/ent/examineList",
  34. Handler: ExamineListHandler(serverCtx),
  35. },
  36. {
  37. Method: http.MethodPost,
  38. Path: "/userCenter/ent/info",
  39. Handler: EntInfoHandler(serverCtx),
  40. },
  41. {
  42. Method: http.MethodPost,
  43. Path: "/userCenter/ent/examineInfo",
  44. Handler: ExamineInfoHandler(serverCtx),
  45. },
  46. {
  47. Method: http.MethodPost,
  48. Path: "/userCenter/ent/update",
  49. Handler: UpdateEntHandler(serverCtx),
  50. },
  51. {
  52. Method: http.MethodPost,
  53. Path: "/userCenter/ent/getStatusByCode",
  54. Handler: GetStatusByCodeHandler(serverCtx),
  55. },
  56. {
  57. Method: http.MethodPost,
  58. <<<<<<< HEAD
  59. Path: "/userCenter/workDesktop/menuInfo",
  60. Handler: WorkDesktopMenuInfoHandler(serverCtx),
  61. },
  62. {
  63. Method: http.MethodPost,
  64. Path: "/userCenter/workDesktop/renew/:actionMode",
  65. Handler: WorkDesktopComprehensiveHandler(serverCtx),
  66. },
  67. {
  68. Method: http.MethodGet,
  69. Path: "/userCenter/workDesktop/clearUserInfo",
  70. Handler: WorkDesktopClearUserInfoHandler(serverCtx),
  71. =======
  72. Path: "/userCenter/user/getUserInfo",
  73. Handler: GetUserInfoHandler(serverCtx),
  74. },
  75. {
  76. Method: http.MethodPost,
  77. Path: "/userCenter/ent/userInfo",
  78. Handler: GetEntUserInfoHandler(serverCtx),
  79. >>>>>>> master
  80. },
  81. },
  82. )
  83. server.AddRoutes(
  84. []rest.Route{
  85. {
  86. Method: http.MethodPost,
  87. Path: "/userCenter/user/add",
  88. Handler: UserAddHandler(serverCtx),
  89. },
  90. {
  91. Method: http.MethodPost,
  92. Path: "/userCenter/user/updateById",
  93. Handler: UserUpdateHandler(serverCtx),
  94. },
  95. {
  96. Method: http.MethodPost,
  97. Path: "/userCenter/user/deleteById",
  98. Handler: UserDelHandler(serverCtx),
  99. },
  100. },
  101. rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
  102. )
  103. }