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.

23 lines
1.2 KiB
Go

5 months ago
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))
5 months ago
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-result", result.Json(h5.GetOrderResult))
webGroup.Match([]string{"GET", "OPTIONS"}, "/post-to-zking", result.Json(h5.PostToZking))
5 months ago
webGroup.Match([]string{"POST", "OPTIONS"}, "/update-applicant", result.Json(h5.UpdateApplicant))
4 months ago
webGroup.Match([]string{"POST", "OPTIONS"}, "/update-invoice", result.Json(h5.UpdateInvoice))
5 months ago
webGroup.Match([]string{"POST", "OPTIONS"}, "/upload-sign-file", result.Json(h5.UploadSignFile))
5 months ago
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-pay-url", result.Json(h5.GetOrderPayUrl))
4 months ago
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-order-status", result.Json(h5.GetOrderStatus))
4 months ago
webGroup.Match([]string{"GET", "OPTIONS"}, "/get-pay-info", result.Json(h5.GetPayInfo))
4 months ago
webGroup.Match([]string{"POST", "OPTIONS"}, "/generate-sign-file", result.Json(h5.GenerateSignFile))
5 months ago
}