Files
jx-print/routers/v3_app_router.go
邹宗楠 03069ce0fe 1
2022-10-18 10:30:37 +08:00

28 lines
1.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package routers
import (
"git.rosy.net.cn/jx-print/controllers/app"
"github.com/gin-gonic/gin"
)
// InitV3App 小程序端不需要token
func InitV3App(v1 *gin.RouterGroup) {
appNo := v1.Group("/app_no")
appNo.POST("/getUserPhone", app.Auth2ControllerController.GetUserPhoneByWeChat) // 获取微信用户电话
appNo.POST("/login", app.Auth2ControllerController.Login) // 微信登录
appNo.POST("/loginMobile", app.Auth2ControllerController.Login4Mobile) // 短信登录
// 获取短信
appNo.POST("/sendVerifyCode", app.VerificationController.SendVerifyCode) // 获取短信验证码
appNo.GET("/getPrintIsUse", app.PrintController.GetPrintIsUse) // 查询打印机是否被使用
// 支付回调
appNo.POST("/payCallBack", app.Auth2ControllerController.PayCallBack)
// 门店失去授权回调
appNo.POST("/loseAuthorize", app.PrinterBindStoreController.LoseStoreAuthorize)
// 获取小程序跳转连接
appNo.GET("/getMinJupLink", app.Auth2ControllerController.MiniProgramSortLink)
}