package router import ( "github.com/gin-gonic/gin" "insure/api/suixing" ) func suixingRouteInit(r *gin.Engine) { sxGroup := r.Group("/suixing") sxGroup.Match([]string{"POST", "GET", "OPTIONS"}, "/gurantee/create", suixing.Create) sxGroup.Match([]string{"POST", "GET", "OPTIONS"}, "/gurantee/surrend", suixing.Surrend) sxGroup.Match([]string{"POST", "GET", "OPTIONS"}, "/gurantee/claim", suixing.Claim) sxGroup.Match([]string{"POST", "OPTIONS"}, "/upload-signed-file", suixing.UploadSignedFile) }