You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.3 KiB
Go
24 lines
1.3 KiB
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"insure/api/h5"
|
|
"insure/utils/result"
|
|
)
|
|
|
|
func webRouteInit(r *gin.Engine) {
|
|
webGroup := r.Group("/web")
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order", result.Json(h5.GetOrder))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-sign-url", result.Json(h5.GetSignUrl))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-result", result.Json(h5.GetOrderResult))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/post-to-zking", result.Json(h5.PostToZking))
|
|
webGroup.Match([]string{"POST", "OPTIONS"}, "/update-applicant", result.Json(h5.UpdateApplicant))
|
|
webGroup.Match([]string{"POST", "OPTIONS"}, "/update-invoice", result.Json(h5.UpdateInvoice))
|
|
webGroup.Match([]string{"POST", "OPTIONS"}, "/upload-sign-file", result.Json(h5.UploadSignFile))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-pay-url", result.Json(h5.GetOrderPayUrl))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-status", result.Json(h5.GetOrderStatus))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-pay-info", result.Json(h5.GetPayInfo))
|
|
webGroup.Match([]string{"POST", "OPTIONS"}, "/generate-sign-file", result.Json(h5.GenerateSignFile))
|
|
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-no", result.Json(h5.GetOrderNo))
|
|
}
|