...
|
...
|
@@ -6,6 +6,7 @@ import ( |
|
|
|
|
|
article "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/article"
|
|
|
comment "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/comment"
|
|
|
common "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/common"
|
|
|
company "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/company"
|
|
|
department "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/department"
|
|
|
message "gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/handler/message"
|
...
|
...
|
@@ -22,6 +23,17 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/sms/code",
|
|
|
Handler: common.CommonSmsCodeHandler(serverCtx),
|
|
|
},
|
|
|
},
|
|
|
rest.WithPrefix("/v1/common"),
|
|
|
)
|
|
|
|
|
|
server.AddRoutes(
|
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/article_comment",
|
|
|
Handler: comment.MiniCreateArticleCommentHandler(serverCtx),
|
|
|
},
|
...
|
...
|
@@ -104,8 +116,13 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/mini/message/business",
|
|
|
Handler: message.MiniBusinessHandler(serverCtx),
|
|
|
Path: "/mini/message/comment",
|
|
|
Handler: message.MiniCommentHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/mini/message/like",
|
|
|
Handler: message.MiniLikeHandler(serverCtx),
|
|
|
},
|
|
|
},
|
|
|
rest.WithJwt(serverCtx.Config.MiniAuth.AccessSecret),
|
...
|
...
|
|