This commit is contained in:
sjk
2026-01-07 22:55:12 +08:00
parent cb267e8d5e
commit 4720ab2a15
76 changed files with 3110 additions and 7168 deletions

View File

@@ -115,5 +115,20 @@ func SetupRouter(r *gin.Engine) {
employee.GET("/feedback", feedbackCtrl.GetFeedbackList) // 获取反馈列表
employee.GET("/feedback/:id", feedbackCtrl.GetFeedbackDetail) // 获取反馈详情
}
// 小红书相关接口(不需要认证由Python后端或小程序调用)
xhs := api.Group("/xhs")
{
xhsCtrl := controller.NewEmployeeController()
// 扫码登录相关接口(需要token但不在employee路由下)
xhs.POST("/qrcode/start", middleware.AuthMiddleware(), xhsCtrl.StartQRCodeLogin) // 启动扫码登录
xhs.POST("/qrcode/status", middleware.AuthMiddleware(), xhsCtrl.GetQRCodeStatus) // 轮询扫码状态
xhs.POST("/qrcode/refresh", middleware.AuthMiddleware(), xhsCtrl.RefreshQRCode) // 刷新二维码
xhs.POST("/qrcode/cancel", middleware.AuthMiddleware(), xhsCtrl.CancelQRCodeLogin) // 取消扫码登录
// 保存扫码登录的绑定信息
xhs.POST("/save-qrcode-login", xhsCtrl.SaveQRCodeLogin)
}
}
}