package routers import ( "tmr-watch/http/handle/group" "github.com/gin-gonic/gin" ) func GroupAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) { return func(s *gin.Engine) { for _, opt := range opts { opt(s) } apiPasture := s.Group("/pasture") apiPasture.POST("feed_formula/distribute", group.DistributeFeedFormula) // 饲料配方下发 } }