七月迭代短暂完结,还有很多后端的关键东西没有弄,这是一版赶时间做的东西
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s
This commit is contained in:
24
internal/routes/wecom_callback.go
Normal file
24
internal/routes/wecom_callback.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
|
||||
"github.com/break/junhong_cmp_fiber/internal/handler/callback"
|
||||
"github.com/break/junhong_cmp_fiber/internal/model/dto"
|
||||
"github.com/break/junhong_cmp_fiber/pkg/openapi"
|
||||
)
|
||||
|
||||
func registerWeComApprovalCallbackRoutes(router fiber.Router, handler *callback.WeComApprovalHandler, doc *openapi.Generator, basePath string) {
|
||||
Register(router, doc, basePath, "GET", "/wecom/approval/:application_id", handler.Verify, RouteSpec{
|
||||
Summary: "验证企业微信审批回调地址",
|
||||
Tags: []string{"企业微信审批回调"},
|
||||
Input: new(dto.WeComApprovalCallbackRequest),
|
||||
Auth: false,
|
||||
})
|
||||
Register(router, doc, basePath, "POST", "/wecom/approval/:application_id", handler.Receive, RouteSpec{
|
||||
Summary: "接收企业微信审批状态变化回调",
|
||||
Tags: []string{"企业微信审批回调"},
|
||||
Input: new(dto.WeComApprovalCallbackRequest),
|
||||
Auth: false,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user