获取当前生效的appid
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m46s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m46s
This commit is contained in:
@@ -22,6 +22,15 @@ func RegisterPersonalCustomerRoutes(router fiber.Router, doc *openapi.Generator,
|
||||
authBasePath := "/auth"
|
||||
|
||||
// === 公开路由(无需认证)===
|
||||
Register(router, doc, basePath, "GET", "/wechat/appid", handlers.ClientWechat.GetAppID, RouteSpec{
|
||||
Summary: "获取当前生效的公众号 AppID",
|
||||
Description: "用于 C 端免登录场景获取当前生效微信配置中的公众号 AppID,响应仅返回 app_id 字段",
|
||||
Tags: []string{"个人客户 - 微信"},
|
||||
Auth: false,
|
||||
Input: nil,
|
||||
Output: &dto.WechatAppIDResponse{},
|
||||
})
|
||||
|
||||
Register(router, doc, basePath, "GET", "/wechat/jssdk-config", handlers.ClientWechat.GetJSSDKConfig, RouteSpec{
|
||||
Summary: "获取微信 JSSDK 签名配置",
|
||||
Description: "前端调用 wx.config() 初始化微信 JS-SDK 时所需的签名参数,需传入当前页面完整 URL",
|
||||
|
||||
Reference in New Issue
Block a user