|
@@ -44,6 +44,7 @@ import (
|
|
|
whatsapp "wechat-api/internal/handler/whatsapp"
|
|
|
whatsapp_channel "wechat-api/internal/handler/whatsapp_channel"
|
|
|
work_experience "wechat-api/internal/handler/work_experience"
|
|
|
+ wp_wecom "wechat-api/internal/handler/wp_wecom"
|
|
|
wxcard "wechat-api/internal/handler/wxcard"
|
|
|
wxcarduser "wechat-api/internal/handler/wxcarduser"
|
|
|
wxcardvisit "wechat-api/internal/handler/wxcardvisit"
|
|
@@ -2037,4 +2038,19 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
),
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
)
|
|
|
+
|
|
|
+ server.AddRoutes(
|
|
|
+ []rest.Route{
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/wp/wecom/send_msg",
|
|
|
+ Handler: wp_wecom.SendMsgHandler(serverCtx),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/wp/wecom/send_msg_by_chan",
|
|
|
+ Handler: wp_wecom.SendMsgByChanHandler(serverCtx),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ )
|
|
|
}
|