routes.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. Path: "/userCenter/workDesktop/menuInfo",
  59. Handler: WorkDesktopMenuInfoHandler(serverCtx),
  60. },
  61. {
  62. Method: http.MethodPost,
  63. Path: "/userCenter/workDesktop/renew/:actionMode",
  64. Handler: WorkDesktopComprehensiveHandler(serverCtx),
  65. },
  66. {
  67. Method: http.MethodPost,
  68. Path: "/userCenter/workDesktop/clearUserInfo",
  69. Handler: WorkDesktopClearUserInfoHandler(serverCtx),
  70. },
  71. },
  72. )
  73. server.AddRoutes(
  74. []rest.Route{
  75. {
  76. Method: http.MethodPost,
  77. Path: "/userCenter/user/add",
  78. Handler: UserAddHandler(serverCtx),
  79. },
  80. {
  81. Method: http.MethodPost,
  82. Path: "/userCenter/user/updateById",
  83. Handler: UserUpdateHandler(serverCtx),
  84. },
  85. {
  86. Method: http.MethodPost,
  87. Path: "/userCenter/user/deleteById",
  88. Handler: UserDelHandler(serverCtx),
  89. },
  90. },
  91. rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
  92. )
  93. }