| 1234567891011121314151617181920212223242526 | package routeimport (	"kpt-pasture/http/handler"	"github.com/gin-gonic/gin")func TestAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {	return func(s *gin.Engine) {		for _, opt := range opts {			opt(s)		}		// test API 组  测试接口		testRoute := authRouteGroup(s, "/api/v1/test/")		testRoute.POST("/cow/neck_ring/bound", handler.CowNeckRingBound)		testRoute.POST("/cow/neck_ring/bound2", handler.CowNeckRingBound2)		testRoute.POST("/cow/pen/update", handler.UpdateCowPen)		testRoute.GET("/data/warning", handler.DataWarning)		testRoute.GET("/neck_ring_original/sync", handler.NeckRingOriginalAsync)		testRoute.GET("/pasture/init", handler.PastureInit)		testRoute.GET("/calving/age", handler.CalvingAge)		testRoute.GET("/admission/age", handler.AdmissionAge)		testRoute.GET("/system/menu/init", handler.SystemMenuInit)	}}
 |